Changeset 03a589 for src/Analysis


Ignore:
Timestamp:
Apr 4, 2012, 11:30:11 AM (13 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Removed lots of remnant output functions in atom and molecule that are not used anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Analysis/unittests/CountBondsUnitTest.cpp

    rce7bfd r03a589  
    129129};
    130130
    131 void OutputTestMolecule1(molecule *mol, const char *name)
    132 {
    133   ofstream output(name);
    134   mol->OutputXYZ(&output);
    135   output.close();
    136 }
    137 
    138131/** UnitTest for CountBondsTest::HydrogenBridgeBondsTest().
    139132 */
     
    146139  Vector Translator;
    147140
    148   //OutputTestMolecule1(TestMolecule1, "testmolecule1.xyz");
    149 
    150141  // create TestMolecule2 as copy
    151142  TestMolecule2 = TestMolecule1->CopyMolecule();
     
    158149  CPPUNIT_ASSERT_EQUAL( 1 , CountHydrogenBridgeBonds(molecules, NULL, NULL) );
    159150  CPPUNIT_ASSERT_EQUAL( 0 , CountHydrogenBridgeBonds(molecules, oxygen, NULL) );
    160   //OutputTestMolecule1(TestMolecule1, "testmolecule2-1.xyz");
    161151  Translator = Vector(-3,0,0);
    162152  TestMolecule1->Translate(&Translator);
     
    166156  TestMolecule1->Translate(&Translator);
    167157  CPPUNIT_ASSERT_EQUAL( 1 , CountHydrogenBridgeBonds(molecules, NULL, NULL) );
    168   //OutputTestMolecule1(TestMolecule1, "testmolecule2-2.xyz");
    169158  Translator = Vector(0,-3,0);
    170159  TestMolecule1->Translate(&Translator);
     
    175164  TestMolecule1->Translate(&Translator);
    176165  CPPUNIT_ASSERT_EQUAL( 0 , CountHydrogenBridgeBonds(molecules, NULL, NULL) );
    177   //OutputTestMolecule1(TestMolecule1, "testmolecule2-3.xyz");
    178166  Translator = Vector(0,3,0);
    179167  TestMolecule1->Translate(&Translator);
     
    184172  TestMolecule1->Translate(&Translator);
    185173  CPPUNIT_ASSERT_EQUAL( 1 , CountHydrogenBridgeBonds(molecules, NULL, NULL) );
    186   //OutputTestMolecule1(TestMolecule1, "testmolecule2-4.xyz");
    187174  Translator = Vector(-2,-1,0);
    188175  TestMolecule1->Translate(&Translator);
     
    192179  TestMolecule1->Translate(&Translator);
    193180  CPPUNIT_ASSERT_EQUAL( 0 , CountHydrogenBridgeBonds(molecules, NULL, NULL) );
    194   //OutputTestMolecule1(TestMolecule1, "testmolecule2-5.xyz");
    195181  Translator = Vector(0,0,-3);
    196182  TestMolecule1->Translate(&Translator);
     
    201187  TestMolecule1->Translate(&Translator);
    202188  CPPUNIT_ASSERT_EQUAL( 0 , CountHydrogenBridgeBonds(molecules, NULL, NULL) );
    203   //OutputTestMolecule1(TestMolecule1, "testmolecule2-6.xyz");
    204189  Translator = Vector(3,0,0);
    205190  TestMolecule1->Translate(&Translator);
     
    211196  TestMolecule1->Translate(&Translator);
    212197  CPPUNIT_ASSERT_EQUAL( 0 , CountHydrogenBridgeBonds(molecules, NULL, NULL) );
    213   //OutputTestMolecule1(TestMolecule1, "testmolecule2-7.xyz");
    214198  Translator = Vector(-3,0,0);
    215199  TestMolecule1->Translate(&Translator);
     
    220204  TestMolecule1->Scale((const double ** const)&mirror);
    221205  TestMolecule1->Translate(&Translator);
    222   //OutputTestMolecule1(TestMolecule1, "testmolecule2-8.xyz");
    223206  CPPUNIT_ASSERT_EQUAL( 0 , CountHydrogenBridgeBonds(molecules, NULL, NULL) );
    224207  Translator = Vector(0,-3,0);
Note: See TracChangeset for help on using the changeset viewer.