- Timestamp:
- Apr 23, 2021, 8:31:23 PM (5 years ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- d40189
- Parents:
- 26062f
- git-author:
- Frederik Heber <frederik.heber@…> (04/24/19 21:30:35)
- git-committer:
- Frederik Heber <frederik.heber@…> (04/23/21 20:31:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/FragmentationAction/AnalyseFragmentationResultsAction.cpp
r26062f rcbbb6a 115 115 */ 116 116 void printReceivedCycleResults( 117 const FragmentationShortRangeResults &results) 117 const FragmentationShortRangeResults &results, 118 const std::string &_prefix) 118 119 { 119 120 typedef boost::mpl::remove< … … 126 127 LOG(2, "DEBUG: Energy table with cycles is \n" << energyresult); 127 128 std::string filename; 128 filename += FRAGMENTPREFIX+ std::string("_CycleEnergy.dat");129 filename += _prefix + std::string("_CycleEnergy.dat"); 129 130 writeToFile(filename, energyresult); 130 131 } … … 135 136 */ 136 137 void printReceivedShortResultsPerIndex( 137 const FragmentationShortRangeResults &results) 138 const FragmentationShortRangeResults &results, 139 const std::string &_prefix) 138 140 { 139 141 // print tables per keyset(without eigenvalues, they go extra) … … 147 149 LOG(2, "DEBUG: Indexed Energy table is \n" << energyresult); 148 150 std::string filename; 149 filename += FRAGMENTPREFIX+ std::string("_IndexedEnergy.dat");151 filename += _prefix + std::string("_IndexedEnergy.dat"); 150 152 writeToFile(filename, energyresult); 151 153 } … … 156 158 */ 157 159 void printReceivedShortResults( 158 const FragmentationShortRangeResults &results) 160 const FragmentationShortRangeResults &results, 161 const std::string &_prefix) 159 162 { 160 163 // print tables (without eigenvalues, they go extra) … … 169 172 LOG(1, "DEBUG: Energy table is \n" << energyresult); 170 173 std::string filename; 171 filename += FRAGMENTPREFIX+ std::string("_Energy.dat");174 filename += _prefix + std::string("_Energy.dat"); 172 175 writeToFile(filename, energyresult); 173 176 } … … 182 185 LOG(2, "DEBUG: Eigenvalue table is \n" << eigenvalueresult); 183 186 std::string filename; 184 filename += FRAGMENTPREFIX+ std::string("_Eigenvalues.dat");187 filename += _prefix + std::string("_Eigenvalues.dat"); 185 188 writeToFile(filename, eigenvalueresult); 186 189 } … … 195 198 LOG(2, "DEBUG: Eigenhistogram table is \n" << eigenhistogramresult); 196 199 std::string filename; 197 filename += FRAGMENTPREFIX+ std::string("_Eigenhistogram.dat");200 filename += _prefix + std::string("_Eigenhistogram.dat"); 198 201 writeToFile(filename, eigenhistogramresult); 199 202 } … … 208 211 LOG(2, "DEBUG: Eigenvalue table is \n" << eigenvalueresult); 209 212 std::string filename; 210 filename += FRAGMENTPREFIX+ std::string("_Eigenvalues.dat");213 filename += _prefix + std::string("_Eigenvalues.dat"); 211 214 writeToFile(filename, eigenvalueresult); 212 215 } … … 218 221 LOG(2, "DEBUG: Force table is \n" << forceresult); 219 222 std::string filename; 220 filename += FRAGMENTPREFIX+ std::string("_Forces.dat");223 filename += _prefix + std::string("_Forces.dat"); 221 224 writeToFile(filename, forceresult); 222 225 } … … 233 236 LOG(2, "DEBUG: Times table is \n" << timesresult); 234 237 std::string filename; 235 filename += FRAGMENTPREFIX+ std::string("_Times.dat");238 filename += _prefix + std::string("_Times.dat"); 236 239 writeToFile(filename, timesresult); 237 240 } … … 245 248 */ 246 249 void printReceivedFullResults( 247 const FragmentationLongRangeResults &results) 250 const FragmentationLongRangeResults &results, 251 const std::string &_prefix) 248 252 { 249 253 // print tables per keyset(without grids, they go extra) … … 255 259 LOG(2, "DEBUG: VMG table is \n" << gridresult); 256 260 std::string filename; 257 filename += FRAGMENTPREFIX+ std::string("_VMGEnergy.dat");261 filename += _prefix + std::string("_VMGEnergy.dat"); 258 262 writeToFile(filename, gridresult); 259 263 } … … 265 269 LOG(2, "DEBUG: Force table is \n" << forceresult); 266 270 std::string filename; 267 filename += FRAGMENTPREFIX+ std::string("_VMGForces.dat");271 filename += _prefix + std::string("_VMGForces.dat"); 268 272 writeToFile(filename, forceresult); 269 273 } … … 275 279 LOG(2, "DEBUG: LongRange table is \n" << gridresult); 276 280 std::string filename; 277 filename += FRAGMENTPREFIX+ std::string("_LongRangeEnergy.dat");281 filename += _prefix + std::string("_LongRangeEnergy.dat"); 278 282 writeToFile(filename, gridresult); 279 283 } … … 285 289 LOG(2, "DEBUG: ForcesLongRange table is \n" << forceresult); 286 290 std::string filename; 287 filename += FRAGMENTPREFIX+ std::string("_LongRangeForces.dat");291 filename += _prefix + std::string("_LongRangeForces.dat"); 288 292 writeToFile(filename, forceresult); 289 293 } … … 511 515 const KeySetsContainer &cycles, 512 516 const FragmentationShortRangeResults::edges_per_fragment_t &edges_per_fragment, 513 const FragmentationShortRangeResults &shortrangeresults) 517 const FragmentationShortRangeResults &shortrangeresults, 518 const std::string &_prefix) 514 519 { 515 520 // copy the shortrangeresults such that private MaxLevel is set in … … 582 587 localresults.Result_Force_fused.back(); 583 588 } 584 printReceivedCycleResults(cycleresults );589 printReceivedCycleResults(cycleresults, _prefix); 585 590 } 586 591 … … 594 599 const IndexedVectors::vector_t &forcevector = iter->second; 595 600 ASSERT( forcevector.size() == NDIM, 596 " printReceivedShortResults() - obtained force vector has incorrect dimension.");601 "setForces() - obtained force vector has incorrect dimension."); 597 602 // note that mpqc calculates a gradient, hence force pointing into opposite direction 598 603 // we have to mind different units here: MPQC has a_o, while we may have angstroem … … 633 638 shortrangedata, keysets, forcekeysets, edges_per_fragment, ValueMask); 634 639 shortrangeresults(shortrangedata); 635 printReceivedShortResults(shortrangeresults );636 printReceivedShortResultsPerIndex(shortrangeresults );640 printReceivedShortResults(shortrangeresults, params.prefix.get()); 641 printReceivedShortResultsPerIndex(shortrangeresults, params.prefix.get()); 637 642 // add summed results to container 638 643 container.addShortRangeSummedResults(shortrangeresults.getSummedShortRangeResults()); … … 678 683 cycles, 679 684 edges_per_fragment, 680 shortrangeresults); 685 shortrangeresults, 686 params.prefix.get()); 681 687 } 682 688 … … 751 757 zero_globalgrid, 752 758 implicit_indices); 753 printReceivedFullResults(longrangeresults );759 printReceivedFullResults(longrangeresults, params.prefix.get()); 754 760 } 755 761
Note:
See TracChangeset
for help on using the changeset viewer.
