Changeset 2fd80b5
- Timestamp:
- Jun 22, 2010, 3:33:06 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:
- df481f
- Parents:
- 52baf9
- Location:
- src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/MpqcParser.cpp
r52baf9 r2fd80b5 21 21 * 22 22 */ 23 MpqcParser::MpqcParser() 23 MpqcParser::MpqcParser() : HessianPresent(false) 24 24 { 25 25 -
src/Parser/PcpParser.cpp
r52baf9 r2fd80b5 282 282 case 0: // SpinDouble 283 283 ParseForParameter(verbose,FileBuffer,"MaxPsiDouble", 0, 1, 1, int_type, &(PlaneWaveSpecifics.MaxPsiDouble), 1, critical); 284 ParseForParameter(verbose,FileBuffer,"PsiMaxNoUp", 0, 1, 1, int_type, &(PlaneWaveSpecifics.PsiMaxNoUp), 1, optional); 285 ParseForParameter(verbose,FileBuffer,"PsiMaxNoDown", 0, 1, 1, int_type, &(PlaneWaveSpecifics.PsiMaxNoDown), 1, optional); 284 286 ParseForParameter(verbose,FileBuffer,"AddPsis", 0, 1, 1, int_type, &(PlaneWaveSpecifics.AddPsis), 1, optional); 285 287 break; 286 288 case 1: // SpinUpDown 287 289 if (Parallelization.ProcPEGamma % 2) Parallelization.ProcPEGamma*=2; 290 ParseForParameter(verbose,FileBuffer,"MaxPsiDouble", 0, 1, 1, int_type, &(PlaneWaveSpecifics.MaxPsiDouble), 1, optional); 288 291 ParseForParameter(verbose,FileBuffer,"PsiMaxNoUp", 0, 1, 1, int_type, &(PlaneWaveSpecifics.PsiMaxNoUp), 1, critical); 289 292 ParseForParameter(verbose,FileBuffer,"PsiMaxNoDown", 0, 1, 1, int_type, &(PlaneWaveSpecifics.PsiMaxNoDown), 1, critical); … … 450 453 PlaneWaveSpecifics.MaxPsiDouble = PlaneWaveSpecifics.PsiMaxNoDown = PlaneWaveSpecifics.PsiMaxNoUp = PlaneWaveSpecifics.PsiType = 0; 451 454 for (vector<atom *>::iterator runner = allatoms.begin(); runner != allatoms.end(); ++runner) { 452 PlaneWaveSpecifics.MaxPsiDouble += (*runner)->type-> Valence;455 PlaneWaveSpecifics.MaxPsiDouble += (*runner)->type->NoValenceOrbitals; 453 456 } 454 457 cout << PlaneWaveSpecifics.MaxPsiDouble << endl; -
src/Parser/XyzParser.cpp
r52baf9 r2fd80b5 60 60 time_t now = time((time_t *)NULL); // Get the system time and put it into 'now' as 'calender time' 61 61 comment = "\tCreated by molecuilder on "; 62 comment += ctime(&now); 62 // ctime ends in \n\0, we have to cut away the newline 63 std::string time(ctime(&now)); 64 comment += time.substr(time.find('\n')); 63 65 } 64 *file << World::getInstance().numAtoms() << endl << comment ;66 *file << World::getInstance().numAtoms() << endl << comment << endl; 65 67 66 68 vector<atom*> atoms = World::getInstance().getAllAtoms(); -
src/unittests/ParserUnitTest.cpp
r52baf9 r2fd80b5 66 66 RelEpsTotalE\t1e-07\t# relative change in total energy\n\ 67 67 RelEpsKineticE\t1e-05\t# relative change in kinetic energy\n\ 68 MaxMinStopStep\t 0\t# check every ..th steps\n\68 MaxMinStopStep\t2\t# check every ..th steps\n\ 69 69 MaxMinGapStopStep\t1\t# check every ..th steps\n\ 70 70 \n\ … … 73 73 InitRelEpsTotalE\t1e-05\t# relative change in total energy\n\ 74 74 InitRelEpsKineticE\t0.0001\t# relative change in kinetic energy\n\ 75 InitMaxMinStopStep\t 0\t# check every ..th steps\n\75 InitMaxMinStopStep\t2\t# check every ..th steps\n\ 76 76 InitMaxMinGapStopStep\t1\t# check every ..th steps\n\ 77 77 \n\ … … 86 86 RiemannTensor\t0\t# (Use metric)\n\ 87 87 PsiType\t0\t# 0 - doubly occupied, 1 - SpinUp,SpinDown\n\ 88 MaxPsiDouble\t 0\t# here: specifying both maximum number of SpinUp- and -Down-states\n\89 PsiMaxNoUp\t 0\t# here: specifying maximum number of SpinUp-states\n\90 PsiMaxNoDown\t 0\t# here: specifying maximum number of SpinDown-states\n\88 MaxPsiDouble\t2\t# here: specifying both maximum number of SpinUp- and -Down-states\n\ 89 PsiMaxNoUp\t2\t# here: specifying maximum number of SpinUp-states\n\ 90 PsiMaxNoDown\t2\t# here: specifying maximum number of SpinDown-states\n\ 91 91 AddPsis\t0\t# Additional unoccupied Psis for bandgap determination\n\ 92 92 \n\ … … 122 122 \tunit = angstrom\n\ 123 123 \t{ atoms geometry } = {\n\ 124 \t\tO [ 0\t0\t0 ]\n\125 \t\tH [ 0. 758602\t0\t0.504284 ]\n\126 \t\tH [ 0. 758602\t0\t-0.504284 ]\n\124 \t\tO [ -0.505735\t0\t0 ]\n\ 125 \t\tH [ 0.252867\t0\t0.504284 ]\n\ 126 \t\tH [ 0.252867\t0\t-0.504284 ]\n\ 127 127 \t}\n\ 128 128 )\n\ … … 131 131 \tmolecule = $:molecule\n\ 132 132 )\n"; 133 static string waterXyz = "3\nH2O: water molecule\nO\t0 .000000\t0.000000\t0.000000\nH\t0.758602\t0.000000\t0.504284\nH\t0.758602\t0.000000\t-0.504284\n";133 static string waterXyz = "3\nH2O: water molecule\nO\t0\t0\t0\nH\t0.758602\t0\t0.504284\nH\t0.758602\t0\t-0.504284\n"; 134 134 static string Tremolo_Atomdata1 = "# ATOMDATA\tId\tname\tType\tx=3\n"; 135 135 static string Tremolo_Atomdata2 = "#\n#ATOMDATA Id name Type x=3\n1 hydrogen H 3.0 4.5 0.1\n\n"; … … 321 321 322 322 // compare both configs 323 CPPUNIT_ASSERT(input.str() == output.str()); 324 } 323 string first = input.str(); 324 string second = output.str(); 325 CPPUNIT_ASSERT(first == second); 326 }
Note:
See TracChangeset
for help on using the changeset viewer.