Commit e72f4ea4 authored by Rajeev Jain's avatar Rajeev Jain
Browse files

Merged in rajeeja/readNC_fix (pull request #272)

MPAS reader helper function to read a .nc file if dimension nVertLevel is not specified
parents 30834235 edbd2e77
...@@ -111,7 +111,7 @@ ErrorCode NCHelperMPAS::init_mesh_vals() ...@@ -111,7 +111,7 @@ ErrorCode NCHelperMPAS::init_mesh_vals()
if ((vit = std::find(dimNames.begin(), dimNames.end(), "nVertLevels")) != dimNames.end()) if ((vit = std::find(dimNames.begin(), dimNames.end(), "nVertLevels")) != dimNames.end())
idx = vit - dimNames.begin(); idx = vit - dimNames.begin();
else { else {
MB_SET_ERR(MB_FAILURE, "Couldn't find 'nVertLevels' dimension"); std::cerr << "Warning: dimension nVertLevels not found in header.\nThe file may contain just the mesh" << std::endl;
} }
levDim = idx; levDim = idx;
nLevels = dimLens[idx]; nLevels = dimLens[idx];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment