lib/test/AMRTools/testCoarseAverage.cpp
///
// Parse the standard test options (-p -q) out of the command line.
///
Parse the standard test options (-p -q) out of the command line.
Parse the standard test options ( - p - q ) out of the command line .
void
parseTestOptions( int argc ,char* argv[] )
{
  for ( int i = 1 ; i < argc ; ++i )
  {
    if ( argv[i][0] == '-' ) 
    {
      if ( strncmp( argv[i] ,"-v" ,3 ) == 0 )
      {
        verbose = true ;
      }
      else if ( strncmp( argv[i] ,"-q" ,3 ) == 0 )
      {
        verbose = false ;
      }
    }
  }
  return ;
}
void parseTestOptions ( int argc , char * argv [ ] ) { for ( int i = 1 ; i < argc ; ++ i ) { if ( argv [ i ] [ 0 ] == ' ' ) { if ( strncmp ( argv [ i ] , " " , 3 ) == 0 ) { verbose = true ; } else if ( strncmp ( argv [ i ] , " " , 3 ) == 0 ) { verbose = false ; } } } return ; }
Parse the standard test options (-p -q) out of the command line.
Parse the standard test options ( - p - q ) out of the command line .
//if it is an option // compare 3 chars to differentiate -x from -xx // argv[i] = "" ; // argv[i] = "" ;