Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
567ae55e
Commit
567ae55e
authored
Jan 23, 2019
by
Mark OLESEN
Browse files
STYLE: improve input check on gmshToFoam
parent
856f45a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/conversion/gmshToFoam/gmshToFoam.C
View file @
567ae55e
...
...
@@ -297,8 +297,7 @@ void readPoints(IFstream& inFile, pointField& points, Map<label>& mshToFoam)
Info
<<
"Vertices to be read:"
<<
nVerts
<<
endl
;
points
.
setSize
(
nVerts
);
mshToFoam
.
resize
(
2
*
nVerts
);
points
.
resize
(
nVerts
);
for
(
label
pointi
=
0
;
pointi
<
nVerts
;
pointi
++
)
{
...
...
@@ -351,8 +350,6 @@ void readPhysNames(IFstream& inFile, Map<word>& physicalNames)
Info
<<
"Physical names:"
<<
nNames
<<
endl
;
physicalNames
.
resize
(
nNames
);
for
(
label
i
=
0
;
i
<
nNames
;
i
++
)
{
label
regionI
;
...
...
@@ -391,6 +388,10 @@ void readPhysNames(IFstream& inFile, Map<word>& physicalNames)
<<
word
::
validate
(
regionName
)
<<
endl
;
}
}
else
{
continue
;
}
physicalNames
.
insert
(
regionI
,
word
::
validate
(
regionName
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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