diff --git a/Applications/Utils/PostProcessing/postLIE.cpp b/Applications/Utils/PostProcessing/postLIE.cpp index 3d464204e76b24108d5f338377b3fa16f095fe2f..b4075ef195e71fe49ee049f4fbb404edf90e300d 100644 --- a/Applications/Utils/PostProcessing/postLIE.cpp +++ b/Applications/Utils/PostProcessing/postLIE.cpp @@ -23,6 +23,7 @@ #include "MeshLib/IO/writeMeshToFile.h" #include "MeshLib/Mesh.h" +#include "MeshLib/MeshEditing/ConvertToLinearMesh.h" #include "ProcessLib/LIE/Common/MeshUtils.h" #include "ProcessLib/LIE/Common/PostUtils.h" @@ -69,6 +70,8 @@ int main (int argc, char* argv[]) std::unique_ptr<MeshLib::Mesh const> mesh( MeshLib::IO::readMeshFromFile(org_vtu_filepath)); + if (mesh->isNonlinear()) + mesh = MeshLib::convertToLinearMesh(*mesh, mesh->getName()); // post-process std::vector<MeshLib::Element*> vec_matrix_elements;