Got elements and nodes from odb in the unit test

This commit is contained in:
Jacob Støren
2015-04-23 15:43:11 +02:00
parent 4737807b7b
commit 6dad519f30
5 changed files with 108 additions and 12 deletions

View File

@@ -28,7 +28,11 @@ TEST(OdbReaderTest, BasicTests)
{
cvf::ref<RifOdbReader> reader = new RifOdbReader;
cvf::ref<RigGeoMechCaseData> femData = new RigGeoMechCaseData;
reader->open("testfile.odb", femData.p());
reader->open("C:\\pfRoot\\jjsOnJacobpcCsdep\\User\\Sigurd\\OdbApiExperiments\\viewer_tutorial.odb", femData.p());
EXPECT_EQ(1, femData->partCount());
EXPECT_EQ(140, femData->part(0)->elementCount());
EXPECT_EQ(CAX4, femData->part(0)->elementType(0));
}