From 0a51611a31c09b65af775e6550b0749664ce8330 Mon Sep 17 00:00:00 2001
From: Norihiro Watanabe <norihiro.watanabe@ufz.de>
Date: Fri, 18 Nov 2016 07:07:22 +0100
Subject: [PATCH] [Utils/postLIE] convert to a linear mesh

# Conflicts:
#	Applications/Utils/PostProcessing/postLIE.cpp
---
 Applications/Utils/PostProcessing/postLIE.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Applications/Utils/PostProcessing/postLIE.cpp b/Applications/Utils/PostProcessing/postLIE.cpp
index 3d464204e76..b4075ef195e 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;
-- 
GitLab