]> SALOME platform Git repositories - tools/medcoupling.git/blobdiff - src/MEDLoader/SauvMedConvertor.cxx
Salome HOME
Tests again and again
[tools/medcoupling.git] / src / MEDLoader / SauvMedConvertor.cxx
index b0ce566b2699e8a4954bc09ac5890a501ca057b9..1b811c49745dee500467a98eaac655c9e5014703 100644 (file)
@@ -1160,7 +1160,7 @@ ParaMEDMEM::MEDFileUMesh* IntermediateMED::makeMEDFileMesh()
 
   coords->decrRef();
 
-  if ( !mesh->getName() || strlen( mesh->getName() ) == 0 )
+  if ( !mesh->getName().c_str() || strlen( mesh->getName().c_str() ) == 0 )
     mesh->setName( "MESH" );
 
   return mesh;
@@ -2163,14 +2163,7 @@ void IntermediateMED::setTS( SauvUtilities::DoubleField*  fld,
   if ( onAll )
     fld->_curMedField->appendFieldNoProfileSBT( timeStamp );
   else
-    {
-      if(fld->getMedType()==ON_GAUSS_NE)
-        {
-          MEDCouplingAutoRefCountObjectPtr< MEDCouplingPointSet > dimMesh2 = dimMesh->buildPartOfMySelf(support->_medGroup->begin(),support->_medGroup->end(),true);
-          timeStamp->setMesh( dimMesh2 );
-        }
-      fld->_curMedField->appendFieldProfile( timeStamp, mesh, dimRel, support->_medGroup );
-    }
+    fld->_curMedField->appendFieldProfile( timeStamp, mesh, dimRel, support->_medGroup );
   timeStamp->decrRef();
 
   if ( isNewMedField ) // timeStamp must be added before this