--- trunk/OOPSE/staticProps/staticProps.cpp 2003/10/17 21:19:07 810 +++ trunk/OOPSE/staticProps/staticProps.cpp 2003/12/19 15:12:23 885 @@ -120,6 +120,64 @@ int main(int argC,char* argV[]){ pair2 = argV[i]; pairType = gofr; + theList.push_back(PairCorrList( pairType, pair1, pair2 )); + havePairCorrs = true; + } + + if( !strcmp( argV[i], "--gofrTheta" ) ){ + + i++; + if( i>=argC ){ + sprintf( painCave.errMsg, + "\n" + "not enough arguments for --gofrTheta\n"); + usage(); + painCave.isFatal = 1; + simError(); + } + pair1 = argV[i]; + + i++; + if( i>=argC ){ + sprintf( painCave.errMsg, + "\n" + "not enough arguments for --gofrTheta\n"); + usage(); + painCave.isFatal = 1; + simError(); + } + pair2 = argV[i]; + + pairType = gofrTheta; + theList.push_back(PairCorrList( pairType, pair1, pair2 )); + havePairCorrs = true; + } + + if( !strcmp( argV[i], "--gofrOmega" ) ){ + + i++; + if( i>=argC ){ + sprintf( painCave.errMsg, + "\n" + "not enough arguments for --gofrOmega\n"); + usage(); + painCave.isFatal = 1; + simError(); + } + pair1 = argV[i]; + + i++; + if( i>=argC ){ + sprintf( painCave.errMsg, + "\n" + "not enough arguments for --gofrOmega\n"); + usage(); + painCave.isFatal = 1; + simError(); + } + pair2 = argV[i]; + + pairType = gofrOmega; theList.push_back(PairCorrList( pairType, pair1, pair2 )); havePairCorrs = true; } @@ -443,10 +501,14 @@ void usage(){ "\n" " long:\n" " -----\n" - " --gofr g(r) for atom1 and atom2\n" - " *note: \"_ALL_\" matches all atoms\n" - " --version displays the version number\n" - " --help displays this help message.\n" + " --gofr g(r) for atom1 and atom2\n" + " *note: \"_ALL_\" matches all atoms\n" + " --gofrTheta g(r, theta) for atom1 and atom2\n" + " *note: \"_ALL_\" matches all atoms\n" + " --gofrOmega g(r, omega) for atom1 and atom2\n" + " *note: \"_ALL_\" matches all atoms\n" + " --version displays the version number\n" + " --help displays this help message.\n" "\n" "\n",