Changeset e2925fd for src/Jobs/InterfaceVMGJob.cpp
- Timestamp:
- May 3, 2013, 9:46:45 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, Candidate_v1.7.0, Candidate_v1.7.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:
- a86666
- Parents:
- 5281ff
- git-author:
- Frederik Heber <heber@…> (04/05/13 15:09:16)
- git-committer:
- Frederik Heber <heber@…> (05/03/13 09:46:45)
- File:
-
- 1 edited
-
src/Jobs/InterfaceVMGJob.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Jobs/InterfaceVMGJob.cpp
r5281ff re2925fd 71 71 vmg_float _box_end, 72 72 const int& near_field_cells, 73 const ImportParticles_t _ImportParticles, 73 74 const bool _DoPrintDebug, 74 75 int coarseningSteps, … … 80 81 returndata(_returndata), 81 82 level(levelMax), 83 ImportParticles(_ImportParticles), 82 84 DoPrintDebug(_DoPrintDebug) 83 85 { … … 134 136 VMG::MG::GetFactory().GetObjectStorageVal<int>("PARTICLE_NEAR_FIELD_CELLS"))); 135 137 136 // create smeared-out particle charges on particle_grid via splines 137 LOG(1, "INFO: Creating particle grid for " << particles.size() << " particles."); 138 for (std::list<Particle::Particle>::iterator iter = particles.begin(); 139 iter != particles.end(); ++iter) { 140 LOG(2, "DEBUG: Current particle is at " << (*iter).Pos() 141 << " with charge " << (*iter).Charge() << "."); 142 spl.SetSpline(particle_grid, *iter); 138 if (ImportParticles == DoImportParticles) { 139 // create smeared-out particle charges on particle_grid via splines 140 LOG(1, "INFO: Creating particle grid for " << particles.size() << " particles."); 141 for (std::list<Particle::Particle>::iterator iter = particles.begin(); 142 iter != particles.end(); ++iter) { 143 LOG(2, "DEBUG: Current particle is at " << (*iter).Pos() 144 << " with charge " << (*iter).Charge() << "."); 145 spl.SetSpline(particle_grid, *iter); 146 } 143 147 } 144 148 … … 155 159 grid, 156 160 sampled_input, 157 -1.);161 1.); 158 162 159 163 if (DoPrintDebug) { … … 360 364 comm.PrintStringOnce("E_total*: %e", e_long + e_short_peak + e_short_spline - e_self); 361 365 362 returndata.e_long = e; 366 returndata.nuclei_long = e_long; 367 returndata.electron_long = e_long; 363 368 }
Note:
See TracChangeset
for help on using the changeset viewer.
