mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: improve input check on gmshToFoam
This commit is contained in:
@ -297,8 +297,7 @@ void readPoints(IFstream& inFile, pointField& points, Map<label>& mshToFoam)
|
|||||||
|
|
||||||
Info<< "Vertices to be read:" << nVerts << endl;
|
Info<< "Vertices to be read:" << nVerts << endl;
|
||||||
|
|
||||||
points.setSize(nVerts);
|
points.resize(nVerts);
|
||||||
mshToFoam.resize(2*nVerts);
|
|
||||||
|
|
||||||
for (label pointi = 0; pointi < nVerts; pointi++)
|
for (label pointi = 0; pointi < nVerts; pointi++)
|
||||||
{
|
{
|
||||||
@ -351,8 +350,6 @@ void readPhysNames(IFstream& inFile, Map<word>& physicalNames)
|
|||||||
|
|
||||||
Info<< "Physical names:" << nNames << endl;
|
Info<< "Physical names:" << nNames << endl;
|
||||||
|
|
||||||
physicalNames.resize(nNames);
|
|
||||||
|
|
||||||
for (label i = 0; i < nNames; i++)
|
for (label i = 0; i < nNames; i++)
|
||||||
{
|
{
|
||||||
label regionI;
|
label regionI;
|
||||||
@ -391,6 +388,10 @@ void readPhysNames(IFstream& inFile, Map<word>& physicalNames)
|
|||||||
<< word::validate(regionName) << endl;
|
<< word::validate(regionName) << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
physicalNames.insert(regionI, word::validate(regionName));
|
physicalNames.insert(regionI, word::validate(regionName));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user