Skip to content

Commit 27c1d9e

Browse files
committed
Add rectilinear grid information in GenerateRectilinearMeshFromFile
1 parent 6f1b783 commit 27c1d9e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/GenerateRectilinearMeshFromFile.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,14 @@ try {
311311
}
312312
}
313313

314+
mesh.vecGridDimSize.resize(2);
315+
mesh.vecGridDimSize[0] = lDim0Size;
316+
mesh.vecGridDimSize[1] = lDim1Size;
317+
318+
mesh.vecGridDimName.resize(2);
319+
mesh.vecGridDimName[0] = varLon->get_dim(0)->name();
320+
mesh.vecGridDimName[1] = varLon->get_dim(1)->name();
321+
314322
AnnounceEndBlock("Done");
315323

316324
AnnounceEndBlock("Done");

0 commit comments

Comments
 (0)