Fix VTK witer

parent 3af18e4a
...@@ -75,7 +75,7 @@ void io::VtkWriter::writeTimeStep( ...@@ -75,7 +75,7 @@ void io::VtkWriter::writeTimeStep(
<< "<DataArray NumberOfComponents=\"3\" type=\"Float32\" format=\"ascii\">" << std::endl; << "<DataArray NumberOfComponents=\"3\" type=\"Float32\" format=\"ascii\">" << std::endl;
//Grid points //Grid points
for (int j=0; j < nX+1; j++) for (int j=0; j < nY+1; j++)
for (int i=0; i < nX+1; i++) for (int i=0; i < nX+1; i++)
vtkFile << (offsetX+i)*dX << " " << (offsetY+j)*dY <<" 0" << std::endl; vtkFile << (offsetX+i)*dX << " " << (offsetY+j)*dY <<" 0" << std::endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment