mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: utilities: small merge of dev functionality
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -37,6 +37,11 @@ Foam::label Foam::starMesh::readVtxLabel(IFstream& is)
|
||||
|
||||
for (int i=0; i<15; i++)
|
||||
{
|
||||
if (!is.good())
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
is.get(lcs[i]);
|
||||
}
|
||||
|
||||
@ -85,12 +90,10 @@ void Foam::starMesh::readPoints(const scalar scaleFactor)
|
||||
|
||||
if (pointsFile.good())
|
||||
{
|
||||
label pointLabel;
|
||||
|
||||
maxLabel = -1;
|
||||
while (pointsFile)
|
||||
{
|
||||
pointLabel = readVtxLabel(pointsFile);
|
||||
label pointLabel = readVtxLabel(pointsFile);
|
||||
|
||||
if (!pointsFile) break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user