# | Line 35 | Line 35 | |
---|---|---|
35 | * | |
36 | * [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). | |
37 | * [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). | |
38 | < | * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). |
38 | > | * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 234107 (2008). |
39 | * [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). | |
40 | * [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). | |
41 | */ | |
# | Line 50 | Line 50 | |
50 | #include "utils/simError.h" | |
51 | ||
52 | #include "applications/dynamicProps/DynamicPropsCmd.h" | |
53 | + | #include "applications/dynamicProps/SelectionCorrFunc.hpp" |
54 | #include "applications/dynamicProps/DipoleCorrFunc.hpp" | |
55 | #include "applications/dynamicProps/RCorrFunc.hpp" | |
56 | #include "applications/dynamicProps/VCorrFunc.hpp" | |
# | Line 62 | Line 63 | |
63 | #include "applications/dynamicProps/SystemDipoleCorrFunc.hpp" | |
64 | #include "applications/dynamicProps/MomentumCorrFunc.hpp" | |
65 | ||
65 | – | |
66 | – | |
66 | using namespace OpenMD; | |
67 | ||
68 | int main(int argc, char* argv[]){ | |
# | Line 99 | Line 98 | int main(int argc, char* argv[]){ | |
98 | ||
99 | if (args_info.sele2_given) { | |
100 | sele2 = args_info.sele2_arg; | |
101 | < | }else { |
101 | > | } else { |
102 | char* sele2Env = getenv("SELECTION2"); | |
103 | if (sele2Env) { | |
104 | sele2 = sele2Env; | |
# | Line 121 | Line 120 | int main(int argc, char* argv[]){ | |
120 | SimCreator creator; | |
121 | SimInfo* info = creator.createSim(dumpFileName, false); | |
122 | ||
124 | – | |
123 | TimeCorrFunc* corrFunc; | |
124 | if(args_info.sdcorr_given){ | |
125 | corrFunc = new SystemDipoleCorrFunc(info, dumpFileName, sele1, sele2, memSize); | |
126 | + | } else if (args_info.selecorr_given){ |
127 | + | corrFunc = new SelectionCorrFunc(info, dumpFileName, sele1, sele2, memSize); |
128 | } else if (args_info.dcorr_given){ | |
129 | corrFunc = new DipoleCorrFunc(info, dumpFileName, sele1, sele2, memSize); | |
130 | } else if (args_info.rcorr_given) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |