--- trunk/src/applications/staticProps/StaticProps.cpp 2011/03/03 20:32:49 1542 +++ trunk/src/applications/staticProps/StaticProps.cpp 2012/08/22 18:43:27 1785 @@ -36,14 +36,14 @@ * [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). * [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). - * [4] Vardeman & Gezelter, in progress (2009). + * [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). + * [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). */ #include #include #include -#include "brains/Register.hpp" #include "brains/SimCreator.hpp" #include "brains/SimInfo.hpp" #include "io/DumpReader.hpp" @@ -69,20 +69,18 @@ #include "applications/staticProps/pAngle.hpp" #include "applications/staticProps/BondAngleDistribution.hpp" #include "applications/staticProps/NanoVolume.hpp" +#include "applications/staticProps/NanoLength.hpp" #if defined(HAVE_FFTW_H) || defined(HAVE_DFFTW_H) || defined(HAVE_FFTW3_H) #include "applications/staticProps/Hxy.hpp" #endif #include "applications/staticProps/RhoR.hpp" #include "applications/staticProps/AngleR.hpp" -#include "applications/staticProps/RhoAngleR.hpp" #include "applications/staticProps/TetrahedralityParam.hpp" - +#include "applications/staticProps/TetrahedralityParamZ.hpp" using namespace OpenMD; int main(int argc, char* argv[]){ - //register force fields - registerForceFields(); gengetopt_args_info args_info; @@ -95,8 +93,6 @@ int main(int argc, char* argv[]){ std::string dumpFileName = args_info.input_arg; std::string sele1; std::string sele2; - bool userSpecifiedSelect1; - bool userSpecifiedSelect2; // check the first selection argument, or set it to the environment // variable, or failing that, set it to "select all" @@ -122,7 +118,11 @@ int main(int argc, char* argv[]){ if (sele2Env) { sele2 = sele2Env; } else { - sele2 = "select all"; + //It seems likely (from previous discussions) that if sele2 is not specified, then the default behavior + //should not be 'select all' but rather what is already intended for sele1 + //JRM 8/22/12 + sele2 = sele1; + //sele2 = "select all"; } } @@ -272,6 +272,18 @@ int main(int argc, char* argv[]){ painCave.isFatal = 1; simError(); } + } else if (args_info.tet_param_z_given) { + if (args_info.rcut_given) { + analyser = new TetrahedralityParamZ(info, dumpFileName, sele1, + args_info.rcut_arg, + args_info.nbins_arg); + } else { + sprintf( painCave.errMsg, + "A cutoff radius (rcut) must be specified when calculating Tetrahedrality Parameters"); + painCave.severity = OPENMD_ERROR; + painCave.isFatal = 1; + simError(); + } } else if (args_info.bor_given){ if (args_info.rcut_given) { analyser = new BOPofR(info, dumpFileName, sele1, args_info.rcut_arg, @@ -328,6 +340,8 @@ int main(int argc, char* argv[]){ } } else if (args_info.hullvol_given) { analyser = new NanoVolume(info, dumpFileName, sele1); + } else if (args_info.rodlength_given) { + analyser = new NanoLength(info, dumpFileName, sele1); } else if (args_info.angle_r_given) { analyser = new AngleR(info, dumpFileName, sele1, maxLen,args_info.nbins_arg); } @@ -338,7 +352,7 @@ int main(int argc, char* argv[]){ if (args_info.step_given) { analyser->setStep(args_info.step_arg); } - + analyser->process(); delete analyser;