Changeset 305e7e for src/Parser/unittests/ParserTremoloUnitTest.cpp
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.