Changeset 305e7e
- Timestamp:
- Apr 18, 2011, 12:45:06 PM (14 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:
- 4fdc65
- Parents:
- 4217e7
- git-author:
- Frederik Heber <heber@…> (04/18/11 12:43:30)
- git-committer:
- Frederik Heber <heber@…> (04/18/11 12:45:06)
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TremoloAtomInfoContainer.cpp
r4217e7 r305e7e 32 32 imprData("-"), 33 33 GroupMeasureTypeNo("0"), 34 Type("-"),34 type("-"), 35 35 extType("-"), 36 36 name("-"), … … 63 63 GroupMeasureTypeNo = value; 64 64 break; 65 case TremoloKey:: Type :66 Type = value;65 case TremoloKey::type : 66 type = value; 67 67 break; 68 68 case TremoloKey::extType : … … 121 121 case TremoloKey::GroupMeasureTypeNo : 122 122 return GroupMeasureTypeNo; 123 case TremoloKey:: Type :124 return Type;123 case TremoloKey::type : 124 return type; 125 125 case TremoloKey::extType : 126 126 return extType; … … 161 161 out << info.get(TremoloKey::imprData) << "\t"; 162 162 out << info.get(TremoloKey::GroupMeasureTypeNo) << "\t"; 163 out << info.get(TremoloKey:: Type) << "\t";163 out << info.get(TremoloKey::type) << "\t"; 164 164 out << info.get(TremoloKey::extType) << "\t"; 165 165 out << info.get(TremoloKey::name) << "\t"; -
src/Parser/TremoloAtomInfoContainer.hpp
r4217e7 r305e7e 32 32 std::string imprData; 33 33 std::string GroupMeasureTypeNo; 34 std::string Type;34 std::string type; 35 35 std::string extType; 36 36 std::string name; -
src/Parser/TremoloKey.hpp
r4217e7 r305e7e 30 30 imprData, 31 31 GroupMeasureTypeNo, 32 Type,32 type, 33 33 extType, 34 34 name, -
src/Parser/TremoloParser.cpp
r4217e7 r305e7e 54 54 knownKeys["imprData"] = TremoloKey::imprData; 55 55 knownKeys["GroupMeasureTypeNo"] = TremoloKey::GroupMeasureTypeNo; 56 knownKeys[" Type"] = TremoloKey::Type;56 knownKeys["type"] = TremoloKey::type; 57 57 knownKeys["extType"] = TremoloKey::extType; 58 58 knownKeys["name"] = TremoloKey::name; … … 196 196 *file << currentAtom->getAtomicVelocity()[2] << "\t"; 197 197 break; 198 case TremoloKey:: Type :198 case TremoloKey::type : 199 199 if (additionalAtomData.count(currentAtom->getId())) { 200 200 if (additionalAtomData[currentAtom->getId()].get(currentField) != "-") { … … 361 361 newAtom->setAtomicVelocity(tempVector); 362 362 break; 363 case TremoloKey:: Type :363 case TremoloKey::type : 364 364 { 365 365 ASSERT(tok_iter != tokens.end(), "TremoloParser::readAtomDataLine() - no value for "+keyName+"!"); -
src/Parser/TremoloParser.hpp
r4217e7 r305e7e 53 53 54 54 /** 55 * Map to associate the elements with stuff in " Type", e.g. OC2 -> O.55 * Map to associate the elements with stuff in "type", e.g. OC2 -> O. 56 56 */ 57 57 std::map<std::string, std::string> knownTypes; -
src/Parser/unittests/ParserTremoloUnitTest.cpp
r4217e7 r305e7e 46 46 47 47 static string Tremolo_Atomdata1 = "\ 48 # ATOMDATA\tId\tname\t Type\tx=3\n";48 # ATOMDATA\tId\tname\ttype\tx=3\n"; 49 49 static string Tremolo_Atomdata2 = "\ 50 50 #\n\ 51 #ATOMDATA Id name Type x=3\n\51 #ATOMDATA Id name type x=3\n\ 52 52 1 hydrogen H 3.0 4.5 0.1\n\ 53 53 \n"; 54 54 static string Tremolo_invalidkey = "\ 55 55 #\n\ 56 #ATOMDATA Id name foo Type x=3\n\56 #ATOMDATA Id name foo type x=3\n\ 57 57 \n\n"; 58 58 static string Tremolo_velocity = "\ 59 59 #\n\ 60 #ATOMDATA Id name Type u=3\n\60 #ATOMDATA Id name type u=3\n\ 61 61 1 hydrogen H 3.0 4.5 0.1\n\ 62 62 \n"; 63 63 static string Tremolo_neighbours = "#\n\ 64 #ATOMDATA Id Type neighbors=2\n\64 #ATOMDATA Id type neighbors=2\n\ 65 65 1 H 3 0\n\ 66 66 2 H 3 0\n\ … … 68 68 static string Tremolo_improper = "\ 69 69 #\n\ 70 #ATOMDATA Id Type imprData\n\70 #ATOMDATA Id type imprData\n\ 71 71 8 H 9-10\n\ 72 72 9 H 10-8,8-10\n\ … … 74 74 static string Tremolo_torsion = "\ 75 75 #\n\ 76 #ATOMDATA Id Type torsion\n\76 #ATOMDATA Id type torsion\n\ 77 77 8 H 9-10\n\ 78 78 9 H 10-8,8-10\n\ 79 79 10 O -\n"; 80 80 static string Tremolo_full = "\ 81 # ATOMDATA\tx=3\tu=3\tF\tstress\tId\tneighbors=5\timprData\tGroupMeasureTypeNo\t Type\textType\tname\tresName\tchainID\tresSeq\toccupancy\ttempFactor\tsegID\tCharge\tcharge\tGrpTypeNo\ttorsion\n\81 # ATOMDATA\tx=3\tu=3\tF\tstress\tId\tneighbors=5\timprData\tGroupMeasureTypeNo\ttype\textType\tname\tresName\tchainID\tresSeq\toccupancy\ttempFactor\tsegID\tCharge\tcharge\tGrpTypeNo\ttorsion\n\ 82 82 0\t0\t0\t0\t0\t0\t0\t0\t1\t0\t0\t0\t0\t0\t-\t0\tH\t-\t-\t-\t0\t0\t0\t0\t0\t0\t0\t0\t-\t\n"; 83 83 … … 214 214 atom* newAtom = World::getInstance().createAtom(); 215 215 newAtom->setType(1); 216 testParser->setFieldsForSave("x=3 u=3 F stress Id neighbors=5 imprData GroupMeasureTypeNo Type extType name resName chainID resSeq occupancy tempFactor segID Charge charge GrpTypeNo torsion");216 testParser->setFieldsForSave("x=3 u=3 F stress Id neighbors=5 imprData GroupMeasureTypeNo type extType name resName chainID resSeq occupancy tempFactor segID Charge charge GrpTypeNo torsion"); 217 217 std::vector<atom *> atoms = World::getInstance().getAllAtoms(); 218 218 testParser->save(&output, atoms); -
tests/regression/Atoms/Add/post/test.data
r4217e7 r305e7e 1 # ATOMDATA Charge F GroupMeasureTypeNo GrpTypeNo Id Type chainID charge extType imprData name neighbors occupancy resName resSeq segID stress tempFactor torsionu x2 0 0 0 0 1 H 0 0 - - - 0 - 0 0 0 0 -0 0 0 10 10 101 # ATOMDATA Charge F GroupMeasureTypeNo GrpTypeNo Id chainID charge extType imprData name neighbors occupancy resName resSeq segID stress tempFactor torsion type u x 2 0 0 0 0 1 0 0 - - - 0 - 0 0 0 0 - H 0 0 0 10 10 10 -
tests/regression/Filling/FillVoidWithMolecule/post/tensid.data
r4217e7 r305e7e 1 # ATOMDATA Id name resName chainID x=3 Type neighbors=4 charge1 # ATOMDATA Id name resName chainID x=3 type neighbors=4 charge 2 2 1 NA SLES 1 17.397 20.231 11.737 Na 0 0 0 0 1.000000e+00 3 3 2 S SLES 1 16.282 18.88 14.208 S 3 4 5 6 1.330000e+00 -
tests/regression/Filling/FillVoidWithMolecule/pre/tensid.data
r4217e7 r305e7e 1 # ATOMDATA Id name resName chainID x=3 Type neighbors=4 charge1 # ATOMDATA Id name resName chainID x=3 type neighbors=4 charge 2 2 1 NA SLES 1 17.397 20.231 11.737 Na 0 0 0 0 1.000000e+00 3 3 2 S SLES 1 16.282 18.88 14.208 S 3 4 5 6 1.330000e+00 -
tests/regression/Filling/FillVoidWithMolecule/pre/water.data
r4217e7 r305e7e 1 # ATOMDATA Id name resName chainID x=3 Type neighbors=4 charge1 # ATOMDATA Id name resName chainID x=3 type neighbors=4 charge 2 2 1 - - 0 0. 0. 0. O 2 3 0 0 0 3 3 2 - - 0 0.758602 0. 0.504284 H 1 0 0 0 0 -
tests/regression/Molecules/Copy/post/tensid.data
r4217e7 r305e7e 1 # ATOMDATA Id name resName chainID x=3 Type neighbors=4 charge1 # ATOMDATA Id name resName chainID x=3 type neighbors=4 charge 2 2 1 NA SLES 1 32.397 35.231 26.737 NA 0 0 0 0 1.000000e+00 3 3 2 S SLES 1 31.282 33.88 29.208 SL 3 4 5 6 1.330000e+00 -
tests/regression/Molecules/Copy/pre/tensid.data
r4217e7 r305e7e 1 # ATOMDATA Id name resName chainID x=3 Type neighbors=4 charge1 # ATOMDATA Id name resName chainID x=3 type neighbors=4 charge 2 2 1 NA SLES 1 32.397 35.231 26.737 NA 0 0 0 0 1.000000e+00 3 3 2 S SLES 1 31.282 33.88 29.208 SL 3 4 5 6 1.330000e+00 -
tests/regression/Parser/Tremolo-Potentials/post/argon.data
r4217e7 r305e7e 1 # ATOMDATA Id name Type x=31 # ATOMDATA Id name type x=3 2 2 1 Ar1 Argon 4.72977 8 8 3 3 2 Ar2 Argon 7.3 8 8 -
tests/regression/Parser/Tremolo-Potentials/post/test.data
r4217e7 r305e7e 1 # ATOMDATA Charge F GroupMeasureTypeNo GrpTypeNo Id Type chainID charge extType imprData name neighbors occupancy resName resSeq segID stress tempFactor torsionu x2 0 0 0 0 1 Ar 0 0 - - - 0 - 1 0 0 0 -0 0 0 4.72977 8 83 0 0 0 0 2 Ar 0 0 - - - 0 - 1 0 0 0 -0 0 0 7.3 8 81 # ATOMDATA Charge F GroupMeasureTypeNo GrpTypeNo Id chainID charge extType imprData name neighbors occupancy resName resSeq segID stress tempFactor torsion type u x 2 0 0 0 0 1 0 0 - - - 0 - 1 0 0 0 - Ar 0 0 0 4.72977 8 8 3 0 0 0 0 2 0 0 - - - 0 - 1 0 0 0 - Ar 0 0 0 7.3 8 8 -
tests/regression/Parser/Tremolo-Potentials/pre/argon.data
r4217e7 r305e7e 1 # ATOMDATA Id name Type x=31 # ATOMDATA Id name type x=3 2 2 1 Ar1 Argon 4.72977074 8. 8. 3 3 2 Ar2 Argon 7.3 8. 8. -
tests/regression/Parser/Tremolo/post/argon.data
r4217e7 r305e7e 1 # ATOMDATA Id name Type x=31 # ATOMDATA Id name type x=3 2 2 1 Ar1 Ar 4.72977 8 8 3 3 2 Ar2 Ar 7.3 8 8 -
tests/regression/Parser/Tremolo/post/test.data
r4217e7 r305e7e 1 # ATOMDATA Charge F GroupMeasureTypeNo GrpTypeNo Id Type chainID charge extType imprData name neighbors occupancy resName resSeq segID stress tempFactor torsionu x2 0 0 0 0 1 H 0 0 - - - 0 - 1 0 0 0 -0 0 0 10 10 101 # ATOMDATA Charge F GroupMeasureTypeNo GrpTypeNo Id chainID charge extType imprData name neighbors occupancy resName resSeq segID stress tempFactor torsion type u x 2 0 0 0 0 1 0 0 - - - 0 - 1 0 0 0 - H 0 0 0 10 10 10 -
tests/regression/Parser/Tremolo/pre/argon.data
r4217e7 r305e7e 1 # ATOMDATA Id name Type x=31 # ATOMDATA Id name type x=3 2 2 1 Ar1 Ar 4.72977074 8. 8. 3 3 ###2 3 4 5 -
tests/regression/Parser/Tremolo/pre/test.data
r4217e7 r305e7e 1 # ATOMDATA Charge F GroupMeasureTypeNo GrpTypeNo Id Type chainID charge extType imprData name neighbors occupancy resName resSeq segID stress tempFactor torsionu x2 0 0 0 0 1 H 0 0 - - - 0 - 1 0 0 0 -0 0 0 10 10 101 # ATOMDATA Charge F GroupMeasureTypeNo GrpTypeNo Id chainID charge extType imprData name neighbors occupancy resName resSeq segID stress tempFactor torsion type u x 2 0 0 0 0 1 0 0 - - - 0 - 1 0 0 0 - H 0 0 0 10 10 10
Note:
See TracChangeset
for help on using the changeset viewer.