From 1b90b1b9b3b8938d5e18ae7ccd7a418f7313b560 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 12 Apr 2016 09:03:12 +0100 Subject: [PATCH] vtkSurfaceWriter: Changed precision of points to "double" to avoid the error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “Error when reading ascii data. Possible mismatch of datasize with declaration.” Patch contributed by Karl Meredith, FMGlobal --- src/sampling/sampledSurface/writers/vtk/vtkSurfaceWriter.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sampling/sampledSurface/writers/vtk/vtkSurfaceWriter.C b/src/sampling/sampledSurface/writers/vtk/vtkSurfaceWriter.C index 5e6c38045b..c3e5a62570 100644 --- a/src/sampling/sampledSurface/writers/vtk/vtkSurfaceWriter.C +++ b/src/sampling/sampledSurface/writers/vtk/vtkSurfaceWriter.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -55,7 +55,7 @@ void Foam::vtkSurfaceWriter::writeGeometry << "DATASET POLYDATA" << nl; // Write vertex coords - os << "POINTS " << points.size() << " float" << nl; + os << "POINTS " << points.size() << " double" << nl; forAll(points, pointI) { const point& pt = points[pointI];