From 5ee1bfe9189fd824bcef3699c861baf16b13fb78 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 12 Sep 2017 14:14:19 +0200 Subject: [PATCH] For warriors having white spaces at the end of their field names. --- src/Plugins/MEDWriter/IO/vtkMEDWriter.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Plugins/MEDWriter/IO/vtkMEDWriter.cxx b/src/Plugins/MEDWriter/IO/vtkMEDWriter.cxx index eaf455e9..9367b114 100644 --- a/src/Plugins/MEDWriter/IO/vtkMEDWriter.cxx +++ b/src/Plugins/MEDWriter/IO/vtkMEDWriter.cxx @@ -388,7 +388,10 @@ void AppendToFields(MEDCoupling::TypeOfField tf, MEDCouplingMesh *mesh, const Da std::string fieldName(dadPtr->getName()); MCAuto< typename Traits::FieldType > f(Traits::FieldType::New(tf)); f->setTime(timeStep,tsId,0); - f->setName(fieldName); + { + std::string fieldNameForChuckNorris(MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::FieldNameToMEDFileConvention(fieldName)); + f->setName(fieldNameForChuckNorris); + } if(!n2oPtr) f->setArray(dadPtr); else -- 2.39.2