ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/dynamicProps/DynamicProps.cpp
(Generate patch)

Comparing trunk/src/applications/dynamicProps/DynamicProps.cpp (file contents):
Revision 1933 by gezelter, Mon Jul 29 17:55:17 2013 UTC vs.
Revision 1934 by gezelter, Mon Aug 26 14:15:09 2013 UTC

# Line 63 | Line 63
63   #include "applications/dynamicProps/StressCorrFunc.hpp"
64   #include "applications/dynamicProps/SystemDipoleCorrFunc.hpp"
65   #include "applications/dynamicProps/MomentumCorrFunc.hpp"
66 + #include "applications/dynamicProps/cOHz.hpp"
67  
68   using namespace OpenMD;
69  
# Line 171 | Line 172 | int main(int argc, char* argv[]){
172          
173      corrFunc = new LegendreCorrFuncZ(info, dumpFileName, sele1, sele2, order, args_info.nzbins_arg, memSize);
174  
175 +  } else if (args_info.cohZ_given) {
176 +    int order;
177 +    if (args_info.order_given)
178 +        order = args_info.order_arg;
179 +    else {
180 +      sprintf( painCave.errMsg,
181 +               "--order must be set if --cohZ is set\n");
182 +      painCave.severity = OPENMD_ERROR;
183 +      painCave.isFatal = 1;
184 +      simError();
185 +    }
186 +        
187 +    corrFunc = new COHZ(info, dumpFileName, sele1, sele2, order, args_info.nzbins_arg, memSize);
188 +
189    }
190  
191 +
192 +
193    if (args_info.output_given) {
194      corrFunc->setOutputName(args_info.output_arg);
195    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines