| 52 |  | #include "applications/dynamicProps/DipoleCorrFunc.hpp" | 
| 53 |  | #include "applications/dynamicProps/RCorrFunc.hpp" | 
| 54 |  | #include "applications/dynamicProps/VCorrFunc.hpp" | 
| 55 | + | #include "applications/dynamicProps/LegendreCorrFunc.hpp" | 
| 56 |  |  | 
| 57 | + |  | 
| 58 |  | using namespace oopse; | 
| 59 |  |  | 
| 60 |  | int main(int argc, char* argv[]){ | 
| 72 |  |  | 
| 73 |  | //get the dumpfile name and meta-data file name | 
| 74 |  | std::string dumpFileName = args_info.input_arg; | 
| 73 | – |  | 
| 74 | – | std::string mdFileName = dumpFileName.substr(0, dumpFileName.rfind(".")) + ".md"; | 
| 75 | – |  | 
| 75 |  |  | 
| 76 |  | std::string sele1; | 
| 77 |  | std::string sele2; | 
| 104 |  |  | 
| 105 |  | //parse md file and set up the system | 
| 106 |  | SimCreator creator; | 
| 107 | < | SimInfo* info = creator.createSim(mdFileName, false); | 
| 107 | > | SimInfo* info = creator.createSim(dumpFileName, false); | 
| 108 |  |  | 
| 109 |  |  | 
| 110 |  | TimeCorrFunc* corrFunc; | 
| 115 |  | } | 
| 116 |  | else if (args_info.vcorr_given) { | 
| 117 |  | corrFunc = new VCorrFunc(info, dumpFileName, sele1, sele2); | 
| 118 | + | } else if (args_info.lcorr_given) { | 
| 119 | + | int order; | 
| 120 | + | if (args_info.order_given) | 
| 121 | + | order = args_info.order_arg; | 
| 122 | + | else { | 
| 123 | + | sprintf( painCave.errMsg, | 
| 124 | + | "--order must be set if --lcoor is set\n"); | 
| 125 | + | painCave.severity = OOPSE_ERROR; | 
| 126 | + | painCave.isFatal = 1; | 
| 127 | + | simError(); | 
| 128 | + | } | 
| 129 | + |  | 
| 130 | + | corrFunc = new LegendreCorrFunc(info, dumpFileName, sele1, sele2, order); | 
| 131 |  | } | 
| 132 |  |  | 
| 133 |  | if (args_info.output_given) { |