Skip to content

Commit

Permalink
fix paraview collection labels
Browse files Browse the repository at this point in the history
  • Loading branch information
hverhelst committed Dec 10, 2024
1 parent a6e354d commit 7096d5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gsGeoUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void plotGeometry(gsMultiPatch<T> const & domain, std::string fileName, index_t
{
collectionMesh.addPart(fileNameOnly + "_mesh.vtp",0,"Mesh",p);
if (plotJac)
collectionJac.addPart(fileNameOnly + ".vts",0,"Jac",p);
collectionJac.addPart(fileNameOnly + ".vts",0,"Solution",p);
else
res = system(("rm " + fileName + util::to_string(p) + ".vts").c_str());
GISMO_ENSURE(res == 0, "Problems with deleting files\n");
Expand All @@ -87,7 +87,7 @@ void plotGeometry(const gsMultiPatch<T> & domain, std::string const & fileName,
domain.patch(p).evaluateMesh(mesh);
std::string patchFileName = fileName + util::to_string(step) + "_" + util::to_string(p);
gsWriteParaview(mesh,patchFileName,false);
collection.addPart(gsFileManager::getFilename(patchFileName),step,"",p);
collection.addPart(gsFileManager::getFilename(patchFileName),step,"Solution",p);
}
}

Expand Down Expand Up @@ -126,7 +126,7 @@ void plotDeformation(const gsMultiPatch<T> & initDomain, const std::vector<gsMul
{
collectionMesh.addPart(fileNameOnly + util::to_string(0) + util::to_string(p) + "_mesh.vtp",0,"Mesh",p);
if (plotJac)
collectionJac.addPart(fileNameOnly + util::to_string(0) + util::to_string(p) + ".vts",0,"Jac",p);
collectionJac.addPart(fileNameOnly + util::to_string(0) + util::to_string(p) + ".vts",0,"Solution",p);
else
{
res = system(("rm " + fileName + util::to_string(0) + util::to_string(p) + ".vts").c_str());
Expand All @@ -153,7 +153,7 @@ void plotDeformation(const gsMultiPatch<T> & initDomain, const std::vector<gsMul
{
collectionMesh.addPart(fileNameOnly + util::to_string(s+1) + util::to_string(p) + "_mesh.vtp",s+1,"Mesh",p);
if (plotJac)
collectionJac.addPart(fileNameOnly + util::to_string(s+1) + util::to_string(p) + ".vts",s+1,"Jac",p);
collectionJac.addPart(fileNameOnly + util::to_string(s+1) + util::to_string(p) + ".vts",s+1,"Solution",p);
else
{
res = system(("rm " + fileName + util::to_string(s+1) + util::to_string(p) + ".vts").c_str());
Expand Down Expand Up @@ -192,7 +192,7 @@ void plotDeformation(const gsMultiPatch<T> & initDomain, const gsMultiPatch<T> &
configuration.patch(p).evaluateMesh(mesh);
std::string patchFileName = fileName + util::to_string(step) + "_" + util::to_string(p);
gsWriteParaview(mesh,patchFileName,false);
collection.addPart(gsFileManager::getFilename(patchFileName),step,"",p);
collection.addPart(gsFileManager::getFilename(patchFileName),step,"Solution",p);
}
}

Expand Down

0 comments on commit 7096d5b

Please sign in to comment.