diff --git a/src/fileFormats/vtk/vtkUnstructuredReader.C b/src/fileFormats/vtk/vtkUnstructuredReader.C index 1f8d42e355..e6af35825d 100644 --- a/src/fileFormats/vtk/vtkUnstructuredReader.C +++ b/src/fileFormats/vtk/vtkUnstructuredReader.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -907,6 +907,19 @@ void Foam::vtkUnstructuredReader::read(ISstream& inFile) } } } + else if (tag == "METADATA") + { + // Read rest of the line + string line; + inFile.getLine(line); + + // Skip until an empty line is found + inFile.getLine(line); + while (!line.empty()) + { + inFile.getLine(line); + } + } else { FatalIOErrorInFunction(inFile)