Changeset 03a589 for src/Analysis
- Timestamp:
- Apr 4, 2012, 11:30:11 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:
- 47ed3d
- Parents:
- ce7bfd
- git-author:
- Frederik Heber <heber@…> (03/26/12 07:44:19)
- git-committer:
- Frederik Heber <heber@…> (04/04/12 11:30:11)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Analysis/unittests/CountBondsUnitTest.cpp
rce7bfd r03a589 129 129 }; 130 130 131 void OutputTestMolecule1(molecule *mol, const char *name)132 {133 ofstream output(name);134 mol->OutputXYZ(&output);135 output.close();136 }137 138 131 /** UnitTest for CountBondsTest::HydrogenBridgeBondsTest(). 139 132 */ … … 146 139 Vector Translator; 147 140 148 //OutputTestMolecule1(TestMolecule1, "testmolecule1.xyz");149 150 141 // create TestMolecule2 as copy 151 142 TestMolecule2 = TestMolecule1->CopyMolecule(); … … 158 149 CPPUNIT_ASSERT_EQUAL( 1 , CountHydrogenBridgeBonds(molecules, NULL, NULL) ); 159 150 CPPUNIT_ASSERT_EQUAL( 0 , CountHydrogenBridgeBonds(molecules, oxygen, NULL) ); 160 //OutputTestMolecule1(TestMolecule1, "testmolecule2-1.xyz");161 151 Translator = Vector(-3,0,0); 162 152 TestMolecule1->Translate(&Translator); … … 166 156 TestMolecule1->Translate(&Translator); 167 157 CPPUNIT_ASSERT_EQUAL( 1 , CountHydrogenBridgeBonds(molecules, NULL, NULL) ); 168 //OutputTestMolecule1(TestMolecule1, "testmolecule2-2.xyz");169 158 Translator = Vector(0,-3,0); 170 159 TestMolecule1->Translate(&Translator); … … 175 164 TestMolecule1->Translate(&Translator); 176 165 CPPUNIT_ASSERT_EQUAL( 0 , CountHydrogenBridgeBonds(molecules, NULL, NULL) ); 177 //OutputTestMolecule1(TestMolecule1, "testmolecule2-3.xyz");178 166 Translator = Vector(0,3,0); 179 167 TestMolecule1->Translate(&Translator); … … 184 172 TestMolecule1->Translate(&Translator); 185 173 CPPUNIT_ASSERT_EQUAL( 1 , CountHydrogenBridgeBonds(molecules, NULL, NULL) ); 186 //OutputTestMolecule1(TestMolecule1, "testmolecule2-4.xyz");187 174 Translator = Vector(-2,-1,0); 188 175 TestMolecule1->Translate(&Translator); … … 192 179 TestMolecule1->Translate(&Translator); 193 180 CPPUNIT_ASSERT_EQUAL( 0 , CountHydrogenBridgeBonds(molecules, NULL, NULL) ); 194 //OutputTestMolecule1(TestMolecule1, "testmolecule2-5.xyz");195 181 Translator = Vector(0,0,-3); 196 182 TestMolecule1->Translate(&Translator); … … 201 187 TestMolecule1->Translate(&Translator); 202 188 CPPUNIT_ASSERT_EQUAL( 0 , CountHydrogenBridgeBonds(molecules, NULL, NULL) ); 203 //OutputTestMolecule1(TestMolecule1, "testmolecule2-6.xyz");204 189 Translator = Vector(3,0,0); 205 190 TestMolecule1->Translate(&Translator); … … 211 196 TestMolecule1->Translate(&Translator); 212 197 CPPUNIT_ASSERT_EQUAL( 0 , CountHydrogenBridgeBonds(molecules, NULL, NULL) ); 213 //OutputTestMolecule1(TestMolecule1, "testmolecule2-7.xyz");214 198 Translator = Vector(-3,0,0); 215 199 TestMolecule1->Translate(&Translator); … … 220 204 TestMolecule1->Scale((const double ** const)&mirror); 221 205 TestMolecule1->Translate(&Translator); 222 //OutputTestMolecule1(TestMolecule1, "testmolecule2-8.xyz");223 206 CPPUNIT_ASSERT_EQUAL( 0 , CountHydrogenBridgeBonds(molecules, NULL, NULL) ); 224 207 Translator = Vector(0,-3,0);
Note:
See TracChangeset
for help on using the changeset viewer.