Changeset e6317b for src/Actions/MoleculeAction
- Timestamp:
- Jun 16, 2010, 12:24:21 PM (15 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, 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:
- 492279
- Parents:
- f8e486 (diff), 980dd6 (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. - Location:
- src/Actions/MoleculeAction
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MoleculeAction/FillWithMoleculeAction.cpp
rf8e486 re6317b 68 68 69 69 if(dialog->display()) { 70 DoLog(1) && (Log() << Verbose(1) << "Filling Box with water molecules, lengths(" << lengths[0] << "," << lengths[1] << "," << lengths[2] << "), distances (" << distances[0] << "," << distances[1] << "," << distances[2] << "), MaxDistance " << MaxDistance << ", DoRotate " << DoRotate << "." << endl); 70 71 // construct water molecule 71 72 molecule *filler = World::getInstance().createMolecule(); 72 //if (!filler->AddXYZFile(filename)) {73 //DoeLog(0) && (eLog()<< Verbose(0) << "Could not parse filler molecule from " << filename << "." << endl);74 //}75 // filler->SetNameFromFilename(filename);73 if (!filler->AddXYZFile(filename)) { 74 DoeLog(0) && (eLog()<< Verbose(0) << "Could not parse filler molecule from " << filename << "." << endl); 75 } 76 filler->SetNameFromFilename(filename.c_str()); 76 77 molecule *Filling = NULL; 77 atom *first = NULL, *second = NULL, *third = NULL;78 first = World::getInstance().createAtom();79 first->type = World::getInstance().getPeriode()->FindElement(1);80 first->x = Vector(0.441, -0.143, 0.);81 filler->AddAtom(first);82 second = World::getInstance().createAtom();83 second->type = World::getInstance().getPeriode()->FindElement(1);84 second->x = Vector(-0.464, 1.137, 0.0);85 filler->AddAtom(second);86 third = World::getInstance().createAtom();87 third->type = World::getInstance().getPeriode()->FindElement(8);88 third->x = Vector(-0.464, 0.177, 0.);89 filler->AddAtom(third);90 filler->AddBond(first, third, 1);91 filler->AddBond(second, third, 1);78 // atom *first = NULL, *second = NULL, *third = NULL; 79 // first = World::getInstance().createAtom(); 80 // first->type = World::getInstance().getPeriode()->FindElement(1); 81 // first->x = Vector(0.441, -0.143, 0.); 82 // filler->AddAtom(first); 83 // second = World::getInstance().createAtom(); 84 // second->type = World::getInstance().getPeriode()->FindElement(1); 85 // second->x = Vector(-0.464, 1.137, 0.0); 86 // filler->AddAtom(second); 87 // third = World::getInstance().createAtom(); 88 // third->type = World::getInstance().getPeriode()->FindElement(8); 89 // third->x = Vector(-0.464, 0.177, 0.); 90 // filler->AddAtom(third); 91 // filler->AddBond(first, third, 1); 92 // filler->AddBond(second, third, 1); 92 93 World::getInstance().getConfig()->BG->ConstructBondGraph(filler); 93 filler->SetNameFromFilename("water");94 // filler->SetNameFromFilename("water"); 94 95 // call routine 95 96 double distance[NDIM]; -
src/Actions/MoleculeAction/LinearInterpolationofTrajectoriesAction.cpp
rf8e486 re6317b 60 60 61 61 dialog->queryString(NAME, &filename, MapOfActions::getInstance().getDescription(NAME)); 62 dialog->queryInt("start- mol", &start, MapOfActions::getInstance().getDescription("start"));63 dialog->queryInt("end- mol", &start, MapOfActions::getInstance().getDescription("end"));62 dialog->queryInt("start-step", &start, MapOfActions::getInstance().getDescription("start-step")); 63 dialog->queryInt("end-step", &end, MapOfActions::getInstance().getDescription("end-step")); 64 64 dialog->queryMolecule("molecule-by-id", &mol, MapOfActions::getInstance().getDescription("molecule-by-id")); 65 65 dialog->queryBoolean("id-mapping", &IdMapping, MapOfActions::getInstance().getDescription("id-mapping")); -
src/Actions/MoleculeAction/TranslateAction.cpp
rf8e486 re6317b 58 58 dialog->queryMolecule("molecule-by-id", &mol, MapOfActions::getInstance().getDescription("molecule-by-id")); 59 59 dialog->queryBoolean("periodic", &periodic, MapOfActions::getInstance().getDescription("periodic")); 60 cout << "pre-dialog" << endl; 60 61 61 62 if(dialog->display()) { 63 cout << "post-dialog" << endl; 62 64 DoLog(1) && (Log() << Verbose(1) << "Translating all ions by given vector." << endl); 63 65 if (periodic)
Note:
See TracChangeset
for help on using the changeset viewer.