Commit a1a4bfb9 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: improve input check on gmshToFoam

parent 75b20bb1
......@@ -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));
}
......
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