- Timestamp:
- Jun 11, 2012, 9:53:19 AM (13 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:
- 95f965
- Parents:
- b9c69d
- git-author:
- Michael Ankele <ankele@…> (04/24/12 13:55:16)
- git-committer:
- Frederik Heber <heber@…> (06/11/12 09:53:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MoleculeAction/FillVoidWithMoleculeAction.cpp
rb9c69d rf10b0c 46 46 /** =========== define the function ====================== */ 47 47 Action::state_ptr MoleculeFillVoidWithMoleculeAction::performCall() { 48 if (!boost::filesystem::exists(params.fillername )) {49 ELOG(1, "File with filler molecule " << params.fillername << " does not exist!");48 if (!boost::filesystem::exists(params.fillername.get())) { 49 ELOG(1, "File with filler molecule " << params.fillername.get() << " does not exist!"); 50 50 return Action::failure; 51 51 } 52 52 53 53 LOG(1, "INFO: Filling Box with water molecules, " 54 << " minimum distance to molecules" << params.boundary 55 << ", random atom displacement " << params.RandAtomDisplacement 56 << ", random molecule displacement " << params.RandMoleculeDisplacement 57 << ", distances between fillers (" << params.distances [0] << "," << params.distances[1] << "," << params.distances[2]58 << "), MinDistance " << params.MinDistance 59 << ", DoRotate " << params.DoRotate << ".");54 << " minimum distance to molecules" << params.boundary.get() 55 << ", random atom displacement " << params.RandAtomDisplacement.get() 56 << ", random molecule displacement " << params.RandMoleculeDisplacement.get() 57 << ", distances between fillers (" << params.distances.get()[0] << "," << params.distances.get()[1] << "," << params.distances.get()[2] 58 << "), MinDistance " << params.MinDistance.get() 59 << ", DoRotate " << params.DoRotate.get() << "."); 60 60 // construct water molecule 61 61 std::vector<molecule *> presentmolecules = World::getInstance().getAllMolecules(); 62 62 // LOG(0, presentmolecules.size() << " molecules initially are present."); 63 std::string FilenameSuffix = params.fillername. string().substr(params.fillername.string().find_last_of('.')+1, params.fillername.string().length());63 std::string FilenameSuffix = params.fillername.get().string().substr(params.fillername.get().string().find_last_of('.')+1, params.fillername.get().string().length()); 64 64 ifstream input; 65 input.open(params.fillername. string().c_str());65 input.open(params.fillername.get().string().c_str()); 66 66 ParserTypes type = FormatParserStorage::getInstance().getTypeFromSuffix(FilenameSuffix); 67 67 FormatParserInterface &parser = FormatParserStorage::getInstance().get(type); … … 72 72 ASSERT(filler != NULL, 73 73 "MoleculeFillVoidWithMoleculeAction::performCall() - no last molecule found, nothing parsed?."); 74 filler->SetNameFromFilename(params.fillername. string().c_str());74 filler->SetNameFromFilename(params.fillername.get().string().c_str()); 75 75 World::AtomComposite Set = filler->getAtomSet(); 76 76 World::getInstance().getBondGraph()->CreateAdjacency(Set); … … 79 79 double distance[NDIM]; 80 80 for (int i=0;i<NDIM;i++) 81 distance[i] = params.distances [i];81 distance[i] = params.distances.get()[i]; 82 82 FillVoidWithMolecule( 83 83 filler, 84 84 *(World::getInstance().getConfig()), 85 85 distance, 86 params.boundary ,87 params.RandAtomDisplacement ,88 params.RandMoleculeDisplacement ,89 params.MinDistance ,90 params.DoRotate );86 params.boundary.get(), 87 params.RandAtomDisplacement.get(), 88 params.RandMoleculeDisplacement.get(), 89 params.MinDistance.get(), 90 params.DoRotate.get()); 91 91 92 92 // generate list of newly created molecules
Note:
See TracChangeset
for help on using the changeset viewer.