From: Anthony Geay Date: Fri, 20 Jan 2017 11:04:16 +0000 (+0100) Subject: Make test work X-Git-Tag: V8_3_0a2~38^2~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ddf9fdcbbde51afa2695fef6d5aa4826d5a727f9;p=tools%2Fmedcoupling.git Make test work --- diff --git a/src/MEDLoader/MEDFileField.cxx b/src/MEDLoader/MEDFileField.cxx index 3f8a7188e..240cab8e9 100644 --- a/src/MEDLoader/MEDFileField.cxx +++ b/src/MEDLoader/MEDFileField.cxx @@ -2209,7 +2209,8 @@ void MEDFileFieldPerMesh::assignNewLeaves(const std::vector< MCAuto< MEDFileFiel { MCAuto elt=MEDFileFieldPerMeshPerType::New(this,(INTERP_KERNEL::NormalizedCellType)((*it1).second[0]->getLocId())); elt->setLeaves((*it1).second); - *it2=elt; + MCAuto elt2(DynamicCast(elt)); + *it2=elt2; } _field_pm_pt=fieldPmPt; } @@ -2444,8 +2445,9 @@ MCAuto MEDFileFieldPerMesh::Aggregate(int &start, const std } for(std::map > >::const_iterator it=m.begin();it!=m.end();it++) { - MCAuto agg(MEDFileFieldPerMeshPerType::Aggregate(start,(*it).second,dts,(*it).first,ret,extractInfo)); - ret->_field_pm_pt.push_back(agg); + MCAuto agg(MEDFileFieldPerMeshPerType::Aggregate(start,(*it).second,dts,(*it).first,ret,extractInfo)); + MCAuto agg2(DynamicCast(agg)); + ret->_field_pm_pt.push_back(agg2); } return ret; } @@ -2751,6 +2753,13 @@ MEDFileFieldPerMesh::MEDFileFieldPerMesh(med_idt fid, MEDFileAnyTypeField1TSWith _mesh_name=MEDLoaderBase::buildStringFromFortran(meshName,MED_NAME_SIZE+1); } } + if(!entities) + return ; + std::vector dynGT(entities->getDynGTAvail()); + for(std::vector::const_iterator it=dynGT.begin();it!=dynGT.end();it++) + { + std::cerr << "**** " << *it << std::endl; + } } MEDFileFieldPerMesh::MEDFileFieldPerMesh(MEDFileAnyTypeField1TSWithoutSDA *fath, const MEDCouplingMesh *mesh):_father(fath)