ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/applications/staticProps/StaticProps.cpp
(Generate patch)

Comparing branches/development/src/applications/staticProps/StaticProps.cpp (file contents):
Revision 1725 by gezelter, Sat May 26 18:13:43 2012 UTC vs.
Revision 1794 by gezelter, Thu Sep 6 19:44:06 2012 UTC

# Line 76 | Line 76
76   #include "applications/staticProps/RhoR.hpp"
77   #include "applications/staticProps/AngleR.hpp"
78   #include "applications/staticProps/TetrahedralityParam.hpp"
79 <
79 > #include "applications/staticProps/TetrahedralityParamZ.hpp"
80   using namespace OpenMD;
81  
82   int main(int argc, char* argv[]){
# Line 93 | Line 93 | int main(int argc, char* argv[]){
93    std::string dumpFileName = args_info.input_arg;
94    std::string sele1;
95    std::string sele2;
96  bool userSpecifiedSelect1;
97  bool userSpecifiedSelect2;
96    
97    // check the first selection argument, or set it to the environment
98    // variable, or failing that, set it to "select all"
# Line 120 | Line 118 | int main(int argc, char* argv[]){
118      if (sele2Env) {
119        sele2 = sele2Env;            
120      } else {
121 <      sele2 = "select all";
121 >      //It seems likely (from previous discussions) that if sele2 is not specified, then the default behavior
122 >      //should not be 'select all' but rather what is already intended for sele1
123 >      //JRM 8/22/12
124 >      sele2 = sele1;
125 >      //sele2 = "select all";
126      }
127    }
128    
# Line 261 | Line 263 | int main(int argc, char* argv[]){
263    } else if (args_info.tet_param_given) {
264      if (args_info.rcut_given) {  
265        analyser = new TetrahedralityParam(info, dumpFileName, sele1,
266 +                                         args_info.rcut_arg,
267 +                                         args_info.nbins_arg);
268 +    } else {
269 +      sprintf( painCave.errMsg,
270 +               "A cutoff radius (rcut) must be specified when calculating Tetrahedrality Parameters");
271 +      painCave.severity = OPENMD_ERROR;
272 +      painCave.isFatal = 1;
273 +      simError();
274 +    }
275 +  } else if (args_info.tet_param_z_given) {
276 +    if (args_info.rcut_given) {  
277 +      analyser = new TetrahedralityParamZ(info, dumpFileName, sele1,
278                                           args_info.rcut_arg,
279                                           args_info.nbins_arg);
280      } else {
# Line 338 | Line 352 | int main(int argc, char* argv[]){
352    if (args_info.step_given) {
353      analyser->setStep(args_info.step_arg);
354    }
355 <  
355 >
356    analyser->process();
357    
358    delete analyser;    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines