From: ageay Date: Tue, 21 Jul 2009 16:14:30 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_1_main_FINAL~372 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bd043625e7ec45184269d01cfe87498f9cf09551;p=tools%2Fmedcoupling.git *** empty log message *** --- diff --git a/src/ParaMEDMEM/DEC.cxx b/src/ParaMEDMEM/DEC.cxx index a49a7c3d9..c488d6b8d 100644 --- a/src/ParaMEDMEM/DEC.cxx +++ b/src/ParaMEDMEM/DEC.cxx @@ -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(triofield), *localgroup); attachLocalField(_icoco_field); return; diff --git a/src/ParaMEDMEM/ICoCoMEDField.cxx b/src/ParaMEDMEM/ICoCoMEDField.cxx index f2e687091..05b0d862b 100644 --- a/src/ParaMEDMEM/ICoCoMEDField.cxx +++ b/src/ParaMEDMEM/ICoCoMEDField.cxx @@ -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