Skip to content

Commit

Permalink
patch test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyoungbq committed Aug 20, 2024
1 parent b129329 commit 3e3244d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/H5Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ void CreateVertexGeometry(DataStructure& dataStructure)
nx::core::Result result = nx::core::CreateArray<float>(dataStructure, {vertexCount}, {3}, path, IDataAction::Mode::Execute);
REQUIRE(result.valid());
auto vertexArray = nx::core::ArrayFromPath<float>(dataStructure, path);
CsvParser::ReadFile<float, float>(inputFile, *vertexArray, skipLines, delimiter);
CsvParser::ReadFile<float, float>(inputFile, vertexArray->getDataStoreRef(), skipLines, delimiter);
vertexGeometry->setVertices(*vertexArray);
REQUIRE(vertexGeometry->getNumberOfVertices() == 144);

Expand Down Expand Up @@ -221,7 +221,7 @@ void CreateTriangleGeometry(DataStructure& dataStructure)
nx::core::Result result = nx::core::CreateArray<MeshIndexType>(dataStructure, {faceCount}, {3}, path, IDataAction::Mode::Execute);
REQUIRE(result.valid());
auto dataArray = nx::core::ArrayFromPath<MeshIndexType>(dataStructure, path);
CsvParser::ReadFile<MeshIndexType, MeshIndexType>(inputFile, *dataArray, skipLines, delimiter);
CsvParser::ReadFile<MeshIndexType, MeshIndexType>(inputFile, dataArray->getDataStoreRef(), skipLines, delimiter);
triangleGeom->setFaceList(*dataArray);

// Create the Vertex Array with a component size of 3
Expand All @@ -232,7 +232,7 @@ void CreateTriangleGeometry(DataStructure& dataStructure)
result = nx::core::CreateArray<float>(dataStructure, {vertexCount}, {3}, path, IDataAction::Mode::Execute);
REQUIRE(result.valid());
auto vertexArray = nx::core::ArrayFromPath<float>(dataStructure, path);
CsvParser::ReadFile<float, float>(inputFile, *vertexArray, skipLines, delimiter);
CsvParser::ReadFile<float, float>(inputFile, vertexArray->getDataStoreRef(), skipLines, delimiter);
triangleGeom->setVertices(*vertexArray);
}

Expand All @@ -255,7 +255,7 @@ void CreateQuadGeometry(DataStructure& dataStructure)
nx::core::Result result = nx::core::CreateArray<MeshIndexType>(dataStructure, {faceCount}, {4}, path, IDataAction::Mode::Execute);
REQUIRE(result.valid());
auto dataArray = nx::core::ArrayFromPath<MeshIndexType>(dataStructure, path);
CsvParser::ReadFile<MeshIndexType, MeshIndexType>(inputFile, *dataArray, skipLines, delimiter);
CsvParser::ReadFile<MeshIndexType, MeshIndexType>(inputFile, dataArray->getDataStoreRef(), skipLines, delimiter);
geometry->setFaceList(*dataArray);

// Create the Vertex Array with a component size of 3
Expand All @@ -266,7 +266,7 @@ void CreateQuadGeometry(DataStructure& dataStructure)
result = nx::core::CreateArray<float>(dataStructure, {vertexCount}, {3}, path, IDataAction::Mode::Execute);
REQUIRE(result.valid());
auto vertexArray = nx::core::ArrayFromPath<float>(dataStructure, path);
CsvParser::ReadFile<float, float>(inputFile, *vertexArray, skipLines, delimiter);
CsvParser::ReadFile<float, float>(inputFile, vertexArray->getDataStoreRef(), skipLines, delimiter);
geometry->setVertices(*vertexArray);
}

Expand All @@ -289,7 +289,7 @@ void CreateEdgeGeometry(DataStructure& dataStructure)
nx::core::Result result = nx::core::CreateArray<MeshIndexType>(dataStructure, {faceCount}, {2}, path, IDataAction::Mode::Execute);
REQUIRE(result.valid());
auto dataArray = nx::core::ArrayFromPath<MeshIndexType>(dataStructure, path);
CsvParser::ReadFile<MeshIndexType, MeshIndexType>(inputFile, *dataArray, skipLines, delimiter);
CsvParser::ReadFile<MeshIndexType, MeshIndexType>(inputFile, dataArray->getDataStoreRef(), skipLines, delimiter);
geometry->setEdgeList(*dataArray);

// Create the Vertex Array with a component size of 3
Expand All @@ -300,7 +300,7 @@ void CreateEdgeGeometry(DataStructure& dataStructure)
result = nx::core::CreateArray<float>(dataStructure, {vertexCount}, {3}, path, IDataAction::Mode::Execute);
REQUIRE(result.valid());
auto vertexArray = nx::core::ArrayFromPath<float>(dataStructure, path);
CsvParser::ReadFile<float, float>(inputFile, *vertexArray, skipLines, delimiter);
CsvParser::ReadFile<float, float>(inputFile, vertexArray->getDataStoreRef(), skipLines, delimiter);
geometry->setVertices(*vertexArray);
}

Expand All @@ -323,7 +323,7 @@ void CreateTetrahedralGeometry(DataStructure& dataStructure)
nx::core::Result result = nx::core::CreateArray<MeshIndexType>(dataStructure, {faceCount}, {4}, path, IDataAction::Mode::Execute);
REQUIRE(result.valid());
auto dataArray = nx::core::ArrayFromPath<MeshIndexType>(dataStructure, path);
CsvParser::ReadFile<MeshIndexType, MeshIndexType>(inputFile, *dataArray, skipLines, delimiter);
CsvParser::ReadFile<MeshIndexType, MeshIndexType>(inputFile, dataArray->getDataStoreRef(), skipLines, delimiter);
geometry->setPolyhedraList(*dataArray);

// Create the Vertex Array with a component size of 3
Expand All @@ -334,7 +334,7 @@ void CreateTetrahedralGeometry(DataStructure& dataStructure)
result = nx::core::CreateArray<float>(dataStructure, {vertexCount}, {3}, path, IDataAction::Mode::Execute);
REQUIRE(result.valid());
auto vertexArray = nx::core::ArrayFromPath<float>(dataStructure, path);
CsvParser::ReadFile<float, float>(inputFile, *vertexArray, skipLines, delimiter);
CsvParser::ReadFile<float, float>(inputFile, vertexArray->getDataStoreRef(), skipLines, delimiter);
geometry->setVertices(*vertexArray);
}

Expand All @@ -357,7 +357,7 @@ void CreateHexahedralGeometry(DataStructure& dataStructure)
nx::core::Result result = nx::core::CreateArray<MeshIndexType>(dataStructure, {faceCount}, {8}, path, IDataAction::Mode::Execute);
REQUIRE(result.valid());
auto dataArray = nx::core::ArrayFromPath<MeshIndexType>(dataStructure, path);
CsvParser::ReadFile<MeshIndexType, MeshIndexType>(inputFile, *dataArray, skipLines, delimiter);
CsvParser::ReadFile<MeshIndexType, MeshIndexType>(inputFile, dataArray->getDataStoreRef(), skipLines, delimiter);
geometry->setPolyhedraList(*dataArray);

// Create the Vertex Array with a component size of 3
Expand All @@ -368,7 +368,7 @@ void CreateHexahedralGeometry(DataStructure& dataStructure)
result = nx::core::CreateArray<float>(dataStructure, {vertexCount}, {3}, path, IDataAction::Mode::Execute);
REQUIRE(result.valid());
auto vertexArray = nx::core::ArrayFromPath<float>(dataStructure, path);
CsvParser::ReadFile<float, float>(inputFile, *vertexArray, skipLines, delimiter);
CsvParser::ReadFile<float, float>(inputFile, vertexArray->getDataStoreRef(), skipLines, delimiter);
geometry->setVertices(*vertexArray);
}

Expand Down

0 comments on commit 3e3244d

Please sign in to comment.