Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-iob committed Nov 16, 2023
1 parent 78d29e6 commit e2d7ff6
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions test/integration_tests/levelset/test_levelset_00010.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,11 @@ int subtest_001()
restoredLevelset.restore(binaryReader.getStream());
binaryReader.close();

double restoredValue0 = object->evalCellValue(testCellId0, true);
double restoredValue1 = object->evalCellValue(testCellId1, true);
double restoredValue2 = object->evalCellValue(testCellId2, true);
bitpit::LevelSetObject *restoredObject = restoredLevelset.getObjectPtr(objectId);

double restoredValue0 = restoredObject->evalCellValue(testCellId0, true);
double restoredValue1 = restoredObject->evalCellValue(testCellId1, true);
double restoredValue2 = restoredObject->evalCellValue(testCellId2, true);

bitpit::log::cout() << " Restored levelset: levelset on cell " << testCellId0 << " is equal to " << restoredValue0 << std::endl;
bitpit::log::cout() << " Restored levelset: levelset on cell " << testCellId1 << " is equal to " << restoredValue1 << std::endl;
Expand Down Expand Up @@ -478,9 +480,11 @@ int subtest_010()
restoredLevelset.restore(binaryReader.getStream());
binaryReader.close();

double restoredValue0 = object->evalCellValue(testCellId0, true);
double restoredValue1 = object->evalCellValue(testCellId1, true);
double restoredValue2 = object->evalCellValue(testCellId2, true);
bitpit::LevelSetObject *restoredObject = restoredLevelset.getObjectPtr(objectId);

double restoredValue0 = restoredObject->evalCellValue(testCellId0, true);
double restoredValue1 = restoredObject->evalCellValue(testCellId1, true);
double restoredValue2 = restoredObject->evalCellValue(testCellId2, true);

bitpit::log::cout() << " Restored levelset: levelset on cell " << testCellId0 << " is equal to " << restoredValue0 << std::endl;
bitpit::log::cout() << " Restored levelset: levelset on cell " << testCellId1 << " is equal to " << restoredValue1 << std::endl;
Expand Down Expand Up @@ -616,9 +620,11 @@ int subtest_003()
restoredLevelset.restore(binaryReader.getStream());
binaryReader.close();

double restoredValue0 = object->evalCellValue(testCellId0, true);
double restoredValue1 = object->evalCellValue(testCellId1, true);
double restoredValue2 = object->evalCellValue(testCellId2, true);
bitpit::LevelSetObject *restoredObject = restoredLevelset.getObjectPtr(objectId);

double restoredValue0 = restoredObject->evalCellValue(testCellId0, true);
double restoredValue1 = restoredObject->evalCellValue(testCellId1, true);
double restoredValue2 = restoredObject->evalCellValue(testCellId2, true);

bitpit::log::cout() << " Restored levelset: levelset on cell " << testCellId0 << " is equal to " << restoredValue0 << std::endl;
bitpit::log::cout() << " Restored levelset: levelset on cell " << testCellId1 << " is equal to " << restoredValue1 << std::endl;
Expand Down Expand Up @@ -752,9 +758,11 @@ int subtest_004()
restoredLevelset.restore(binaryReader.getStream());
binaryReader.close();

double restoredValue0 = object->evalCellValue(testCellId0, true);
double restoredValue1 = object->evalCellValue(testCellId1, true);
double restoredValue2 = object->evalCellValue(testCellId2, true);
bitpit::LevelSetObject *restoredObject = restoredLevelset.getObjectPtr(objectId);

double restoredValue0 = restoredObject->evalCellValue(testCellId0, true);
double restoredValue1 = restoredObject->evalCellValue(testCellId1, true);
double restoredValue2 = restoredObject->evalCellValue(testCellId2, true);

bitpit::log::cout() << " Restored levelset: levelset on cell " << testCellId0 << " is equal to " << restoredValue0 << std::endl;
bitpit::log::cout() << " Restored levelset: levelset on cell " << testCellId1 << " is equal to " << restoredValue1 << std::endl;
Expand Down

0 comments on commit e2d7ff6

Please sign in to comment.