--- trunk/OOPSE/staticProps/staticProps.cpp 2003/10/10 17:10:22 803 +++ trunk/OOPSE/staticProps/staticProps.cpp 2003/10/17 21:19:07 810 @@ -39,6 +39,10 @@ int main(int argC,char* argV[]){ bool haveMaxLength; double maxLength; + bool separateOut; + bool havePairCorrs; + bool haveStaticCorrs; + int nBins; vector theList; @@ -59,8 +63,7 @@ int main(int argC,char* argV[]){ // first things first, all of the initializations - printf("Initializing stuff ....\n"); - fflush(sdtout); + fflush(stdout); srand48( 1337 ); // the random number generator. initSimError(); // the error handler @@ -72,11 +75,15 @@ int main(int argC,char* argV[]){ havePrefix = false; haveMaxLength = false; + + haveStaticCorrs = false; + havePairCorrs = false; + separateOut = false; maxLength = 1.0; nBins = 100; - programName = argv[0]; /*save the program name in case we need it*/ + programName = argV[0]; /*save the program name in case we need it*/ for( i = 1; i < argC; i++){ @@ -114,6 +121,7 @@ int main(int argC,char* argV[]){ pairType = gofr; theList.push_back(PairCorrList( pairType, pair1, pair2 )); + havePairCorrs = true; } else if( !strcmp( argV[i], "--version") ){ @@ -242,7 +250,13 @@ int main(int argC,char* argV[]){ } done = true; + + break; + + case 's': + // -s turn on separate output files + separateOut = true; break; case 'n': @@ -394,7 +408,8 @@ int main(int argC,char* argV[]){ theCorrs.setNbins( nBins ); theCorrs.setFrames( infoArray, nFrames, reader ); theCorrs.setPairCorrList( theList ); - theCorrs.initCorrelations( outPrefix ); + theCorrs.initCorrelations( outPrefix, separateOut, havePairCorrs, + haveStaticCorrs ); printf("done\n"); fflush(stdout); @@ -429,7 +444,7 @@ void usage(){ " long:\n" " -----\n" " --gofr g(r) for atom1 and atom2\n" - " *note: \"_ALL_\" matches all atoms/n" + " *note: \"_ALL_\" matches all atoms\n" " --version displays the version number\n" " --help displays this help message.\n"