[gmx-developers] Can't understand DS_Check_Order()

David spoel at xray.bmc.uu.se
Thu Aug 8 15:34:44 CEST 2002


On Thu, 2002-08-08 at 15:08, Vishal Vaidyanathan wrote:
> Hi ,
>    I am unable to figure out how to use the set_nec() function correctly.
>    The code in DS_Check_Order() in kernel/topdirs.c is:
> 
> /*other stuff here*/
> 
>     do {
>       d0=necessary[d][i++];
>       if (DS_Search(DS,d0))
>         return TRUE;
>     } while(d0!=d_none);
> 
>   return FALSE;
> }
> 
> 
>     and it seems to me it will return true if ANY of the necessary
> directives is present. Is that the way it's meant to be or is it supposed
> to check if ALL the necessary directives are present?
Hm, this was ten years ago... I think you need *all* prerequisites to be
on the dir stack, so I would expect something recursive...

> 
>     Thanks in advance and sorry if this is a silly question! :)
> 								Vishal
Never worry about silly questions. If it's not clear, it's not clear
enough.

> 
> 
> _______________________________________________
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the 
> www interface or send it to gmx-developers-request at gromacs.org.
-- 
Groeten, David.
________________________________________________________________________
Dr. David van der Spoel, 	Biomedical center, Dept. of Biochemistry
Husargatan 3, Box 576,  	75123 Uppsala, Sweden
phone:	46 18 471 4205		fax: 46 18 511 755
spoel at xray.bmc.uu.se	spoel at gromacs.org   http://zorn.bmc.uu.se/~spoel
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



More information about the gromacs.org_gmx-developers mailing list