Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
third-party
moab
Commits
edbd2e77
Commit
edbd2e77
authored
Nov 23, 2016
by
Rajeev Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MPAS reader helper function to read a .nc file if dimension nVertLevel is not specified
parent
30834235
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/io/NCHelperMPAS.cpp
src/io/NCHelperMPAS.cpp
+1
-1
No files found.
src/io/NCHelperMPAS.cpp
View file @
edbd2e77
...
...
@@ -111,7 +111,7 @@ ErrorCode NCHelperMPAS::init_mesh_vals()
if
((
vit
=
std
::
find
(
dimNames
.
begin
(),
dimNames
.
end
(),
"nVertLevels"
))
!=
dimNames
.
end
())
idx
=
vit
-
dimNames
.
begin
();
else
{
MB_SET_ERR
(
MB_FAILURE
,
"Couldn't find 'nVertLevels' dimension"
);
std
::
cerr
<<
"Warning: dimension nVertLevels not found in header.
\n
The file may contain just the mesh"
<<
std
::
endl
;
}
levDim
=
idx
;
nLevels
=
dimLens
[
idx
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment