]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
For warriors having white spaces at the end of their field names. V8_4_0a2
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 12 Sep 2017 12:14:19 +0000 (14:14 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 12 Sep 2017 12:14:19 +0000 (14:14 +0200)
src/Plugins/MEDWriter/IO/vtkMEDWriter.cxx

index eaf455e9ebc83ef264a1f795c5c270b80b2b8452..9367b11476b0233b0588dd92fd664936b7e92e15 100644 (file)
@@ -388,7 +388,10 @@ void AppendToFields(MEDCoupling::TypeOfField tf, MEDCouplingMesh *mesh, const Da
   std::string fieldName(dadPtr->getName());
   MCAuto< typename Traits<T>::FieldType > f(Traits<T>::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