Changeset cd032d for src/moleculelist.cpp
- Timestamp:
- Mar 11, 2010, 2:46:41 PM (16 years ago)
- 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, Candidate_v1.7.0, 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:
- 68d781
- Parents:
- a77c96 (diff), ed58ad (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/moleculelist.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/moleculelist.cpp
ra77c96 rcd032d 215 215 // remove src 216 216 ListOfMolecules.remove(srcmol); 217 World::get ()->destroyMolecule(srcmol);217 World::getInstance().destroyMolecule(srcmol); 218 218 return true; 219 219 }; … … 750 750 void MoleculeListClass::DissectMoleculeIntoConnectedSubgraphs(const periodentafel * const periode, config * const configuration) 751 751 { 752 molecule *mol = World::get ()->createMolecule();752 molecule *mol = World::getInstance().createMolecule(); 753 753 atom *Walker = NULL; 754 754 atom *Advancer = NULL; … … 775 775 } 776 776 // remove the molecule 777 World::get ()->destroyMolecule(*MolRunner);777 World::getInstance().destroyMolecule(*MolRunner); 778 778 ListOfMolecules.erase(MolRunner); 779 779 } … … 797 797 molecule **molecules = Malloc<molecule *>(MolCount, "config::Load() - **molecules"); 798 798 for (int i=0;i<MolCount;i++) { 799 molecules[i] = World::get ()->createMolecule();799 molecules[i] = World::getInstance().createMolecule(); 800 800 molecules[i]->ActiveFlag = true; 801 801 strncpy(molecules[i]->name, mol->name, MAXSTRINGSIZE); … … 895 895 OBSERVE; 896 896 molecule *mol = NULL; 897 mol = World::get ()->createMolecule();897 mol = World::getInstance().createMolecule(); 898 898 insert(mol); 899 899 }; … … 904 904 char filename[MAXSTRINGSIZE]; 905 905 Log() << Verbose(0) << "Format should be XYZ with: ShorthandOfElement\tX\tY\tZ" << endl; 906 mol = World::get ()->createMolecule();906 mol = World::getInstance().createMolecule(); 907 907 do { 908 908 Log() << Verbose(0) << "Enter file name: "; … … 962 962 mol = *ListRunner; 963 963 ListOfMolecules.erase(ListRunner); 964 World::get ()->destroyMolecule(mol);964 World::getInstance().destroyMolecule(mol); 965 965 break; 966 966 } … … 1009 1009 // remove the leaf itself 1010 1010 if (Leaf != NULL) { 1011 World::get ()->destroyMolecule(Leaf);1011 World::getInstance().destroyMolecule(Leaf); 1012 1012 Leaf = NULL; 1013 1013 }
Note:
See TracChangeset
for help on using the changeset viewer.
