Ignore:
Timestamp:
May 31, 2010, 5:32:27 PM (16 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, Candidate_v1.7.0, 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:
e08c46
Parents:
42af9e (diff), a7b761b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Frederik Heber <heber@…> (05/31/10 17:29:30)
git-committer:
Frederik Heber <heber@…> (05/31/10 17:32:27)
Message:

Merge commit 'jupiter/MoleculeStartEndSwitch' into CommandLineActionMapping

Conflicts:

molecuilder/src/Makefile.am
molecuilder/src/builder.cpp
molecuilder/src/config.cpp
molecuilder/src/helpers.hpp
molecuilder/src/molecule.cpp
molecuilder/src/molecule_dynamics.cpp
molecuilder/src/molecule_fragmentation.cpp
molecuilder/src/molecule_geometry.cpp
molecuilder/src/molecule_graph.cpp
molecuilder/src/moleculelist.cpp
molecuilder/src/unittests/AnalysisCorrelationToPointUnitTest.cpp
molecuilder/src/unittests/listofbondsunittest.cpp

Integration of MoleculeStartEndSwitch had the following consequences:

  • no more AtomCount -> getAtomCount()
  • no more start/end -> begin(), end() and iterator
  • no more decent ordering in atomic ids (hence, Simple_configuration/8 and Domain/5, Domain/6 now check by comparing sorted xyz, not confs)

There is still a huge problem with bonds. One test runs into an endless loop.

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp

    r42af9e r1024cb  
    2525#include "tesselation.hpp"
    2626#include "World.hpp"
     27#include "Helpers/Assert.hpp"
    2728
    2829#include "Helpers/Assert.hpp"
     
    3940void AnalysisCorrelationToSurfaceUnitTest::setUp()
    4041{
    41   //ASSERT_DO(Assert::Throw);
     42  ASSERT_DO(Assert::Throw);
    4243
    4344  atom *Walker = NULL;
     
    5455  hydrogen = World::getInstance().getPeriode()->FindElement(1);
    5556  TestSurfaceMolecule = World::getInstance().createMolecule();
     57
    5658  Walker = World::getInstance().createAtom();
    5759  Walker->type = hydrogen;
    5860  *Walker->node = Vector(1., 0., 1. );
    59 
    60   TestSurfaceMolecule->AddAtom(Walker);
     61  TestSurfaceMolecule->AddAtom(Walker);
     62
    6163  Walker = World::getInstance().createAtom();
    6264  Walker->type = hydrogen;
    6365  *Walker->node = Vector(0., 1., 1. );
    6466  TestSurfaceMolecule->AddAtom(Walker);
     67
    6568  Walker = World::getInstance().createAtom();
    6669  Walker->type = hydrogen;
    6770  *Walker->node = Vector(1., 1., 0. );
    6871  TestSurfaceMolecule->AddAtom(Walker);
     72
    6973  Walker = World::getInstance().createAtom();
    7074  Walker->type = hydrogen;
     
    7377
    7478  // check that TestMolecule was correctly constructed
    75   CPPUNIT_ASSERT_EQUAL( TestSurfaceMolecule->AtomCount, 4 );
     79  CPPUNIT_ASSERT_EQUAL( TestSurfaceMolecule->getAtomCount(), 4 );
    7680
    7781  TestList = World::getInstance().getMolecules();
     
    9195  *Walker->node = Vector(4., 0., 4. );
    9296  TestSurfaceMolecule->AddAtom(Walker);
     97
    9398  Walker = World::getInstance().createAtom();
    9499  Walker->type = carbon;
    95100  *Walker->node = Vector(0., 4., 4. );
    96101  TestSurfaceMolecule->AddAtom(Walker);
     102
    97103  Walker = World::getInstance().createAtom();
    98104  Walker->type = carbon;
    99105  *Walker->node = Vector(4., 4., 0. );
    100106  TestSurfaceMolecule->AddAtom(Walker);
     107
    101108  // add inner atoms
    102109  Walker = World::getInstance().createAtom();
     
    104111  *Walker->node = Vector(0.5, 0.5, 0.5 );
    105112  TestSurfaceMolecule->AddAtom(Walker);
     113
    106114  TestSurfaceMolecule->ActiveFlag = true;
    107115  TestList->insert(TestSurfaceMolecule);
     
    133141void AnalysisCorrelationToSurfaceUnitTest::SurfaceTest()
    134142{
    135   CPPUNIT_ASSERT_EQUAL( 4, TestSurfaceMolecule->AtomCount );
     143  CPPUNIT_ASSERT_EQUAL( 4, TestSurfaceMolecule->getAtomCount() );
    136144  CPPUNIT_ASSERT_EQUAL( (size_t)2, TestList->ListOfMolecules.size() );
    137145  CPPUNIT_ASSERT_EQUAL( (size_t)4, Surface->PointsOnBoundary.size() );
Note: See TracChangeset for help on using the changeset viewer.