From a8d039adcacad349f4c98ad9df35a97a6f615133 Mon Sep 17 00:00:00 2001 From: Norihiro Watanabe <norihiro.watanabe@ufz.de> Date: Fri, 21 Oct 2016 11:23:45 +0200 Subject: [PATCH] [PCS/LIE] check MeshItemType in PostProcessTool --- .../SmallDeformationWithLIE/Common/PostUtils.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ProcessLib/SmallDeformationWithLIE/Common/PostUtils.cpp b/ProcessLib/SmallDeformationWithLIE/Common/PostUtils.cpp index 704226cf49b..8e6ac5bd398 100644 --- a/ProcessLib/SmallDeformationWithLIE/Common/PostUtils.cpp +++ b/ProcessLib/SmallDeformationWithLIE/Common/PostUtils.cpp @@ -126,6 +126,13 @@ void PostProcessTool::createProperties() name, MeshLib::MeshItemType::Cell, n_dest_comp); new_prop->resize(src_prop->size()); } + else + { + WARN( + "Property '%s' cannot be created because its mesh item type is " + "not supported.", + name.c_str()); + } } } @@ -165,6 +172,13 @@ void PostProcessTool::copyProperties() { std::copy(src_prop->begin(), src_prop->end(), dest_prop->begin()); } + else + { + WARN( + "Property '%s' cannot be created because its mesh item type is " + "not supported.", + name.c_str()); + } } } -- GitLab