- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Jobs/unittests/MPQCDataUnitTest.cpp
r94d5ac6 r4bc75d 46 46 #include "MPQCDataUnitTest.hpp" 47 47 48 #include "Jobs/MPQC CommandJob_MPQCData.hpp"48 #include "Jobs/MPQCData.hpp" 49 49 50 50 #include "CodePatterns/Assert.hpp" … … 67 67 data = new MPQCData; 68 68 69 data->energ y= -37.3479855;69 data->energies.total = -37.3479855; 70 70 std::vector<double> force; 71 71 std::vector< std::vector<double> > forces; … … 100 100 101 101 // construct closer and closer pendant 102 otherData.energ y= -37.3479855;102 otherData.energies.total = -37.3479855; 103 103 CPPUNIT_ASSERT( *data != otherData ); 104 104 std::vector<double> force; … … 117 117 118 118 // change energy 119 otherData.energ y= -4;119 otherData.energies.total = -4; 120 120 CPPUNIT_ASSERT( *data != otherData ); 121 otherData.energ y= -37.3479855;121 otherData.energies.total = -37.3479855; 122 122 CPPUNIT_ASSERT( *data == otherData ); 123 123 … … 129 129 130 130 // check sensibility 131 otherData.energ y-= 1e-1*std::numeric_limits<double>::epsilon();131 otherData.energies.total -= 1e-1*std::numeric_limits<double>::epsilon(); 132 132 CPPUNIT_ASSERT( *data == otherData ); 133 133 otherData.forces[1][0] -= 1e-1*std::numeric_limits<double>::epsilon();
Note:
See TracChangeset
for help on using the changeset viewer.