]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Tue, 21 Jul 2009 16:14:30 +0000 (16:14 +0000)
committerageay <ageay>
Tue, 21 Jul 2009 16:14:30 +0000 (16:14 +0000)
src/ParaMEDMEM/DEC.cxx
src/ParaMEDMEM/ICoCoMEDField.cxx

index a49a7c3d9473820076ec565522b6c0284d84233a..c488d6b8d857f1dff9749a5f1efe342c465ee9fa 100644 (file)
@@ -161,7 +161,8 @@ namespace ParaMEDMEM
           localgroup=_source_group;
         else
           localgroup=_target_group;
-        //delete _icoco_field;
+        delete _icoco_field;
+        
         _icoco_field=new ICoCo::MEDField(*const_cast<ICoCo::TrioField* >(triofield), *localgroup);
         attachLocalField(_icoco_field);
         return;
index f2e68709113af24102cb174a594b55fdd686dcea..05b0d862bd7912371a96d8eb56c9da776f276d69 100644 (file)
@@ -109,6 +109,7 @@ namespace ICoCo
     if (triofield._field!=0)
       {
         _field =  new ParaMEDMEM::ParaFIELD(ParaMEDMEM::ON_CELLS,ParaMEDMEM::ONE_TIME,_mesh, *_comp_topology );
+        _field->getField()->setNature(ParaMEDMEM::ConservativeVolumic);
         ParaMEDMEM::DataArrayDouble *fieldArr=_field->getField()->getArray();
         _field->getField()->setName(triofield.getName().c_str());
         _field->getField()->setTime(triofield._time1,0,triofield._itnumber);
@@ -123,6 +124,7 @@ namespace ICoCo
       {
      //   _field =  new ParaMEDMEM::ParaFIELD(ParaMEDMEM::ON_CELLS,_support, *_comp_topology );
         _field =  new ParaMEDMEM::ParaFIELD(ParaMEDMEM::ON_CELLS,ParaMEDMEM::ONE_TIME,_mesh, *_comp_topology );
+        _field->getField()->setNature(ParaMEDMEM::ConservativeVolumic);
         _field->getField()->setName(triofield.getName().c_str());
         _field->getField()->setTime(triofield._time1,0,triofield._itnumber);
         // the trio field points to the pointer inside the MED field