Changeset d66cb7 for src/unittests
- Timestamp:
- Feb 22, 2012, 11:28:41 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:
- c52e08
- Parents:
- dd067a
- git-author:
- Frederik Heber <heber@…> (01/02/12 19:04:42)
- git-committer:
- Frederik Heber <heber@…> (02/22/12 11:28:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/BoxUnitTest.cpp
rdd067a rd66cb7 896 896 VECTORSET(std::vector) res; 897 897 898 unitBox->setCondition(0,Bo x::Bounce);899 stretchedBox1->setCondition(0,Bo x::Bounce);900 stretchedBox2->setCondition(0,Bo x::Bounce);901 stretchedBox3->setCondition(0,Bo x::Bounce);902 stretchedBox4->setCondition(0,Bo x::Bounce);903 tiltedBox1->setCondition(0,Bo x::Bounce);904 tiltedBox2->setCondition(0,Bo x::Bounce);905 tiltedBox3->setCondition(0,Bo x::Bounce);906 tiltedBox4->setCondition(0,Bo x::Bounce);898 unitBox->setCondition(0,BoundaryConditions::Bounce); 899 stretchedBox1->setCondition(0,BoundaryConditions::Bounce); 900 stretchedBox2->setCondition(0,BoundaryConditions::Bounce); 901 stretchedBox3->setCondition(0,BoundaryConditions::Bounce); 902 stretchedBox4->setCondition(0,BoundaryConditions::Bounce); 903 tiltedBox1->setCondition(0,BoundaryConditions::Bounce); 904 tiltedBox2->setCondition(0,BoundaryConditions::Bounce); 905 tiltedBox3->setCondition(0,BoundaryConditions::Bounce); 906 tiltedBox4->setCondition(0,BoundaryConditions::Bounce); 907 907 908 908 { … … 994 994 } 995 995 996 unitBox->setCondition(1,Bo x::Bounce);997 stretchedBox1->setCondition(1,Bo x::Bounce);998 stretchedBox2->setCondition(1,Bo x::Bounce);999 stretchedBox3->setCondition(1,Bo x::Bounce);1000 stretchedBox4->setCondition(1,Bo x::Bounce);1001 tiltedBox1->setCondition(1,Bo x::Bounce);1002 tiltedBox2->setCondition(1,Bo x::Bounce);1003 tiltedBox3->setCondition(1,Bo x::Bounce);1004 tiltedBox4->setCondition(1,Bo x::Bounce);996 unitBox->setCondition(1,BoundaryConditions::Bounce); 997 stretchedBox1->setCondition(1,BoundaryConditions::Bounce); 998 stretchedBox2->setCondition(1,BoundaryConditions::Bounce); 999 stretchedBox3->setCondition(1,BoundaryConditions::Bounce); 1000 stretchedBox4->setCondition(1,BoundaryConditions::Bounce); 1001 tiltedBox1->setCondition(1,BoundaryConditions::Bounce); 1002 tiltedBox2->setCondition(1,BoundaryConditions::Bounce); 1003 tiltedBox3->setCondition(1,BoundaryConditions::Bounce); 1004 tiltedBox4->setCondition(1,BoundaryConditions::Bounce); 1005 1005 1006 1006 { … … 1092 1092 } 1093 1093 1094 unitBox->setCondition(2,Bo x::Bounce);1095 stretchedBox1->setCondition(2,Bo x::Bounce);1096 stretchedBox2->setCondition(2,Bo x::Bounce);1097 stretchedBox3->setCondition(2,Bo x::Bounce);1098 stretchedBox4->setCondition(2,Bo x::Bounce);1099 tiltedBox1->setCondition(2,Bo x::Bounce);1100 tiltedBox2->setCondition(2,Bo x::Bounce);1101 tiltedBox3->setCondition(2,Bo x::Bounce);1102 tiltedBox4->setCondition(2,Bo x::Bounce);1094 unitBox->setCondition(2,BoundaryConditions::Bounce); 1095 stretchedBox1->setCondition(2,BoundaryConditions::Bounce); 1096 stretchedBox2->setCondition(2,BoundaryConditions::Bounce); 1097 stretchedBox3->setCondition(2,BoundaryConditions::Bounce); 1098 stretchedBox4->setCondition(2,BoundaryConditions::Bounce); 1099 tiltedBox1->setCondition(2,BoundaryConditions::Bounce); 1100 tiltedBox2->setCondition(2,BoundaryConditions::Bounce); 1101 tiltedBox3->setCondition(2,BoundaryConditions::Bounce); 1102 tiltedBox4->setCondition(2,BoundaryConditions::Bounce); 1103 1103 1104 1104 { … … 1195 1195 VECTORSET(std::vector) res; 1196 1196 1197 unitBox->setCondition(0,Bo x::Ignore);1198 stretchedBox1->setCondition(0,Bo x::Ignore);1199 stretchedBox2->setCondition(0,Bo x::Ignore);1200 stretchedBox3->setCondition(0,Bo x::Ignore);1201 stretchedBox4->setCondition(0,Bo x::Ignore);1202 tiltedBox1->setCondition(0,Bo x::Ignore);1203 tiltedBox2->setCondition(0,Bo x::Ignore);1204 tiltedBox3->setCondition(0,Bo x::Ignore);1205 tiltedBox4->setCondition(0,Bo x::Ignore);1197 unitBox->setCondition(0,BoundaryConditions::Ignore); 1198 stretchedBox1->setCondition(0,BoundaryConditions::Ignore); 1199 stretchedBox2->setCondition(0,BoundaryConditions::Ignore); 1200 stretchedBox3->setCondition(0,BoundaryConditions::Ignore); 1201 stretchedBox4->setCondition(0,BoundaryConditions::Ignore); 1202 tiltedBox1->setCondition(0,BoundaryConditions::Ignore); 1203 tiltedBox2->setCondition(0,BoundaryConditions::Ignore); 1204 tiltedBox3->setCondition(0,BoundaryConditions::Ignore); 1205 tiltedBox4->setCondition(0,BoundaryConditions::Ignore); 1206 1206 1207 1207 { … … 1293 1293 } 1294 1294 1295 unitBox->setCondition(1,Bo x::Ignore);1296 stretchedBox1->setCondition(1,Bo x::Ignore);1297 stretchedBox2->setCondition(1,Bo x::Ignore);1298 stretchedBox3->setCondition(1,Bo x::Ignore);1299 stretchedBox4->setCondition(1,Bo x::Ignore);1300 tiltedBox1->setCondition(1,Bo x::Ignore);1301 tiltedBox2->setCondition(1,Bo x::Ignore);1302 tiltedBox3->setCondition(1,Bo x::Ignore);1303 tiltedBox4->setCondition(1,Bo x::Ignore);1295 unitBox->setCondition(1,BoundaryConditions::Ignore); 1296 stretchedBox1->setCondition(1,BoundaryConditions::Ignore); 1297 stretchedBox2->setCondition(1,BoundaryConditions::Ignore); 1298 stretchedBox3->setCondition(1,BoundaryConditions::Ignore); 1299 stretchedBox4->setCondition(1,BoundaryConditions::Ignore); 1300 tiltedBox1->setCondition(1,BoundaryConditions::Ignore); 1301 tiltedBox2->setCondition(1,BoundaryConditions::Ignore); 1302 tiltedBox3->setCondition(1,BoundaryConditions::Ignore); 1303 tiltedBox4->setCondition(1,BoundaryConditions::Ignore); 1304 1304 1305 1305 { … … 1391 1391 } 1392 1392 1393 unitBox->setCondition(2,Bo x::Ignore);1394 stretchedBox1->setCondition(2,Bo x::Ignore);1395 stretchedBox2->setCondition(2,Bo x::Ignore);1396 stretchedBox3->setCondition(2,Bo x::Ignore);1397 stretchedBox4->setCondition(2,Bo x::Ignore);1398 tiltedBox1->setCondition(2,Bo x::Ignore);1399 tiltedBox2->setCondition(2,Bo x::Ignore);1400 tiltedBox3->setCondition(2,Bo x::Ignore);1401 tiltedBox4->setCondition(2,Bo x::Ignore);1393 unitBox->setCondition(2,BoundaryConditions::Ignore); 1394 stretchedBox1->setCondition(2,BoundaryConditions::Ignore); 1395 stretchedBox2->setCondition(2,BoundaryConditions::Ignore); 1396 stretchedBox3->setCondition(2,BoundaryConditions::Ignore); 1397 stretchedBox4->setCondition(2,BoundaryConditions::Ignore); 1398 tiltedBox1->setCondition(2,BoundaryConditions::Ignore); 1399 tiltedBox2->setCondition(2,BoundaryConditions::Ignore); 1400 tiltedBox3->setCondition(2,BoundaryConditions::Ignore); 1401 tiltedBox4->setCondition(2,BoundaryConditions::Ignore); 1402 1402 1403 1403 { … … 1494 1494 VECTORSET(std::vector) res; 1495 1495 1496 unitBox->setCondition(0,Bo x::Bounce);1497 unitBox->setCondition(1,Bo x::Ignore);1498 unitBox->setCondition(2,Bo x::Wrap);1499 1500 stretchedBox1->setCondition(0,Bo x::Bounce);1501 stretchedBox1->setCondition(1,Bo x::Ignore);1502 stretchedBox1->setCondition(2,Bo x::Wrap);1503 1504 stretchedBox2->setCondition(0,Bo x::Bounce);1505 stretchedBox2->setCondition(1,Bo x::Ignore);1506 stretchedBox2->setCondition(2,Bo x::Wrap);1507 1508 stretchedBox3->setCondition(0,Bo x::Bounce);1509 stretchedBox3->setCondition(1,Bo x::Ignore);1510 stretchedBox3->setCondition(2,Bo x::Wrap);1511 1512 stretchedBox4->setCondition(0,Bo x::Bounce);1513 stretchedBox4->setCondition(1,Bo x::Ignore);1514 stretchedBox4->setCondition(2,Bo x::Wrap);1515 1516 tiltedBox1->setCondition(0,Bo x::Bounce);1517 tiltedBox1->setCondition(1,Bo x::Ignore);1518 tiltedBox1->setCondition(2,Bo x::Wrap);1519 1520 tiltedBox2->setCondition(0,Bo x::Bounce);1521 tiltedBox2->setCondition(1,Bo x::Ignore);1522 tiltedBox2->setCondition(2,Bo x::Wrap);1523 1524 tiltedBox3->setCondition(0,Bo x::Bounce);1525 tiltedBox3->setCondition(1,Bo x::Ignore);1526 tiltedBox3->setCondition(2,Bo x::Wrap);1527 1528 tiltedBox4->setCondition(0,Bo x::Bounce);1529 tiltedBox4->setCondition(1,Bo x::Ignore);1530 tiltedBox4->setCondition(2,Bo x::Wrap);1496 unitBox->setCondition(0,BoundaryConditions::Bounce); 1497 unitBox->setCondition(1,BoundaryConditions::Ignore); 1498 unitBox->setCondition(2,BoundaryConditions::Wrap); 1499 1500 stretchedBox1->setCondition(0,BoundaryConditions::Bounce); 1501 stretchedBox1->setCondition(1,BoundaryConditions::Ignore); 1502 stretchedBox1->setCondition(2,BoundaryConditions::Wrap); 1503 1504 stretchedBox2->setCondition(0,BoundaryConditions::Bounce); 1505 stretchedBox2->setCondition(1,BoundaryConditions::Ignore); 1506 stretchedBox2->setCondition(2,BoundaryConditions::Wrap); 1507 1508 stretchedBox3->setCondition(0,BoundaryConditions::Bounce); 1509 stretchedBox3->setCondition(1,BoundaryConditions::Ignore); 1510 stretchedBox3->setCondition(2,BoundaryConditions::Wrap); 1511 1512 stretchedBox4->setCondition(0,BoundaryConditions::Bounce); 1513 stretchedBox4->setCondition(1,BoundaryConditions::Ignore); 1514 stretchedBox4->setCondition(2,BoundaryConditions::Wrap); 1515 1516 tiltedBox1->setCondition(0,BoundaryConditions::Bounce); 1517 tiltedBox1->setCondition(1,BoundaryConditions::Ignore); 1518 tiltedBox1->setCondition(2,BoundaryConditions::Wrap); 1519 1520 tiltedBox2->setCondition(0,BoundaryConditions::Bounce); 1521 tiltedBox2->setCondition(1,BoundaryConditions::Ignore); 1522 tiltedBox2->setCondition(2,BoundaryConditions::Wrap); 1523 1524 tiltedBox3->setCondition(0,BoundaryConditions::Bounce); 1525 tiltedBox3->setCondition(1,BoundaryConditions::Ignore); 1526 tiltedBox3->setCondition(2,BoundaryConditions::Wrap); 1527 1528 tiltedBox4->setCondition(0,BoundaryConditions::Bounce); 1529 tiltedBox4->setCondition(1,BoundaryConditions::Ignore); 1530 tiltedBox4->setCondition(2,BoundaryConditions::Wrap); 1531 1531 1532 1532 { … … 1646 1646 1647 1647 // create update BoundaryConditionsChanged 1648 unitBox->setCondition(0, Bo x::Wrap);1648 unitBox->setCondition(0, BoundaryConditions::Wrap); 1649 1649 CPPUNIT_ASSERT_EQUAL((int)2, observer_general->updates); 1650 1650 CPPUNIT_ASSERT_EQUAL(false, observer_matrix->wasNotified);
Note:
See TracChangeset
for help on using the changeset viewer.