diff --git a/src/write_to_vtk.cc b/src/write_to_vtk.cc index 9ae6bb6..c8c55f9 100644 --- a/src/write_to_vtk.cc +++ b/src/write_to_vtk.cc @@ -50,8 +50,8 @@ int writeToVtk(const Mesh& mesh, const float runtime, const std::string vtkType){ - const double* vertexCoordinates = mesh.points.toArray(); - const unsigned* triangles = mesh.trianglePointIndices.toArray(); + const std::vector vertexCoordinates = mesh.points.toVector(); + const std::vector triangles = mesh.trianglePointIndices.toVector(); const float thicknessOfLevel = mesh.thickness; const unsigned verticesPerLevel = mesh.numberOfPoints; const unsigned trianglesPerLevel= mesh.numberOfTriangles;