Skip to content

Commit 9965aad

Browse files
committed
FEAT: need to store grid type as string
1 parent 4ea4cf1 commit 9965aad

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/grid.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Grid::Grid(std::string gridtype) {
1616

1717
Inputs::grid_input_struct grid_input = input.get_grid_inputs(gridtype);
1818

19+
gridType = gridtype;
20+
1921
nX = grid_input.nX + nGCs * 2;
2022
nLons = nX;
2123
nY = grid_input.nY + nGCs * 2;
@@ -465,6 +467,14 @@ bool Grid::get_IsGeoGrid() {
465467
return IsGeoGrid;
466468
}
467469

470+
// --------------------------------------------------------------------------
471+
// Return grid type (neu or ion)
472+
// --------------------------------------------------------------------------
473+
474+
std::string Grid::get_gridtype() {
475+
return gridType;
476+
}
477+
468478
// --------------------------------------------------------------------------
469479
// Get whether the grid is a experimental (return true for experimental)
470480
// --------------------------------------------------------------------------

0 commit comments

Comments
 (0)