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

Vishal Vaidyanathan vvishal at stanford.edu
Thu Aug 8 15:08:38 CEST 2002


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?

    Thanks in advance and sorry if this is a silly question! :)
								Vishal





More information about the gromacs.org_gmx-developers mailing list