gmshToFoam: Updated the reading of tags starting with '$' as variables rather than words
Resolves bug-report https://bugs.openfoam.org/view.php?id=3431
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -264,7 +264,7 @@ scalar readMeshFormat(IFstream& inFile)
|
||||
|
||||
inFile.getLine(line);
|
||||
IStringStream tagStr(line);
|
||||
word tag(tagStr);
|
||||
variable tag(tagStr);
|
||||
|
||||
if (tag != "$EndMeshFormat")
|
||||
{
|
||||
@ -319,7 +319,7 @@ void readPoints(IFstream& inFile, pointField& points, Map<label>& mshToFoam)
|
||||
|
||||
inFile.getLine(line);
|
||||
IStringStream tagStr(line);
|
||||
word tag(tagStr);
|
||||
variable tag(tagStr);
|
||||
|
||||
if (tag != "$ENDNOD" && tag != "$EndNodes")
|
||||
{
|
||||
@ -392,7 +392,7 @@ void readPhysNames(IFstream& inFile, Map<word>& physicalNames)
|
||||
|
||||
inFile.getLine(line);
|
||||
IStringStream tagStr(line);
|
||||
word tag(tagStr);
|
||||
variable tag(tagStr);
|
||||
|
||||
if (tag != "$EndPhysicalNames")
|
||||
{
|
||||
@ -695,7 +695,7 @@ void readCells
|
||||
|
||||
inFile.getLine(line);
|
||||
IStringStream tagStr(line);
|
||||
word tag(tagStr);
|
||||
variable tag(tagStr);
|
||||
|
||||
if (tag != "$ENDELM" && tag != "$EndElements")
|
||||
{
|
||||
@ -811,7 +811,7 @@ int main(int argc, char *argv[])
|
||||
inFile.getLine(line);
|
||||
IStringStream lineStr(line);
|
||||
|
||||
word tag(lineStr);
|
||||
variable tag(lineStr);
|
||||
|
||||
if (tag == "$MeshFormat")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user