Skip to content

Commit

Permalink
Fix typos in the Netcdf reader
Browse files Browse the repository at this point in the history
  • Loading branch information
davschneller committed Mar 6, 2024
1 parent 5dd700d commit a41c373
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/input/NetCDFMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class NetCDFMesh : public FullStorageMeshData {
std::size_t vertexOffset = 0;
for (std::size_t i = 0; i < nLocalPart; i++) {
std::copy_n(partitions[i].vertices(), partitions[i].nVertices() * 3,
geometryData.begin() + vertexOffset * 3);
verticesLocal.begin() + vertexOffset * 3);
vertexOffset += partitions[i].nVertices();
}

Expand All @@ -169,6 +169,7 @@ class NetCDFMesh : public FullStorageMeshData {
std::copy_n(filter.localVertices().begin(), nVertices * 3, geometryData.begin());

std::size_t elementOffset = 0;
vertexOffset = 0;
for (std::size_t i = 0; i < nLocalPart; i++) {
#ifdef _OPENMP
#pragma omp parallel for schedule(static)
Expand All @@ -192,6 +193,7 @@ class NetCDFMesh : public FullStorageMeshData {
groupData.begin() + elementOffset);

elementOffset += partitions[i].nElements();
vertexOffset += partitions[i].nVertices();
}

logInfo(rank) << "Converting local to global vertex identifier";
Expand Down

0 comments on commit a41c373

Please sign in to comment.