From 887e07a3943b6833a9da4b16fbeb1ba8e87b484b Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Mon, 4 Oct 2010 09:30:24 +0200 Subject: [PATCH] define vtk dump data type Using double as vtk data type will fix some errors/warnings in Paraview about a datasize mismatch. --- FDTD/processfields.cpp | 12 ++++++------ FDTD/processfields.h | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/FDTD/processfields.cpp b/FDTD/processfields.cpp index 16c8b38..be2c7a9 100644 --- a/FDTD/processfields.cpp +++ b/FDTD/processfields.cpp @@ -305,15 +305,15 @@ void ProcessFields::WriteVTKCartesianGridHeader(ofstream &file, double const* co file << "ASCII" << endl; file << "DATASET RECTILINEAR_GRID " << endl; file << "DIMENSIONS " << numLines[0] << " " << numLines[1] << " " << numLines[2] << endl; - file << "X_COORDINATES " << numLines[0] << " float" << endl; + file << "X_COORDINATES " << numLines[0] << " " << __VTK_DATA_TYPE__ << endl; for (unsigned int i=0;i