Changeset b5d38d


Ignore:
Timestamp:
Nov 7, 2011, 4:13:01 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
567357
Parents:
bcfb77
git-author:
Frederik Heber <heber@…> (11/01/11 22:27:22)
git-committer:
Frederik Heber <heber@…> (11/07/11 16:13:01)
Message:

Moved dumpMemory() and saveAll() from module builder_init to cleanUp.

Location:
src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    rbcfb77 rb5d38d  
    2020
    2121#include "builder_init.hpp"
     22#include "cleanUp.hpp"
    2223
    2324/********************************************** Main routine **************************************/
  • src/builder_init.cpp

    rbcfb77 rb5d38d  
    141141}
    142142
    143 /** Dump current memory chunks.
    144  *
    145  */
    146 void dumpMemory()
    147 {
    148   ofstream ost("molecuilder.memdump");
    149   Memory::dumpMemory(ost);
    150 }
    151 
    152 /** Save the current World to output files and exit.
    153  *
    154  * @return retrieved from World::getExitFlag()
    155  */
    156 int saveAll()
    157 {
    158   FormatParserStorage::getInstance().SaveAll();
    159   ChangeTracker::getInstance().saveStatus();
    160 
    161   int ExitFlag = World::getInstance().getExitFlag();
    162   return (ExitFlag == 1 ? 0 : ExitFlag);
    163 }
  • src/builder_init.hpp

    rbcfb77 rb5d38d  
    2020void doUI();
    2121
    22 void dumpMemory();
    23 
    24 int saveAll();
    2522
    2623#endif /* BUILDER_INIT_HPP_ */
  • src/cleanUp.cpp

    rbcfb77 rb5d38d  
    114114  std::cout << "Total Actions called: " << Chron.SumUpTotalFunctions() << std::endl;
    115115}
     116
     117/** Dump current memory chunks.
     118 *
     119 */
     120void dumpMemory()
     121{
     122  ofstream ost("molecuilder.memdump");
     123  Memory::dumpMemory(ost);
     124}
     125
     126/** Save the current World to output files and exit.
     127 *
     128 * @return retrieved from World::getExitFlag()
     129 */
     130int saveAll()
     131{
     132  FormatParserStorage::getInstance().SaveAll();
     133  ChangeTracker::getInstance().saveStatus();
     134
     135  int ExitFlag = World::getInstance().getExitFlag();
     136  return (ExitFlag == 1 ? 0 : ExitFlag);
     137}
  • src/cleanUp.hpp

    rbcfb77 rb5d38d  
    1616void AddStaticEntitiestoIgnoreList();
    1717void cleanUp();
     18void dumpMemory();
    1819void printTimings();
     20int saveAll();
    1921
    2022#endif /* CLEANUP_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.