X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FDriverMED%2FDriverMED_W_SMESHDS_Mesh.cxx;h=1c602e378d794a7f33ffb819c064244c2ad4506b;hp=14512530488dc0231408c3c4cd52286d304579d5;hb=ef932e4d05a45b9a3034423e30519d15e664f2bc;hpb=8d2ecd75b04ac82778c48882c4f19d4561be0985 diff --git a/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx b/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx index 145125304..1c602e378 100644 --- a/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx +++ b/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx @@ -530,14 +530,11 @@ void DriverMED_W_SMESHDS_Mesh::Add() //MESSAGE ("********* Traitement de la Famille "<<-t); SMESHDS_SubMesh * SM = mySMESHDSMesh->MeshElements(S); - const vector& indElt = SM->GetIDElements(); - vector::const_iterator ite=indElt.begin(); - + SMDS_Iterator * ite=SM->GetElements(); bool plein = false; - for (; ite!=indElt.end(); ite++) + while(ite->more()) { - int eltId = *ite; - mapFamille[eltId] = -t; + mapFamille[ite->next()->GetID()] = -t; plein = true; } if (plein) @@ -576,12 +573,12 @@ void DriverMED_W_SMESHDS_Mesh::Add() /* allocation memoire */ connectivite = (med_int *) malloc(sizeof(med_int) * taille * nmailles[i]); - nomele = + /* nomele = (char *)malloc(sizeof(char) * MED_TAILLE_PNOM * - nmailles[i] + 1); + nmailles[i] + 1);*/ + nomele = ""; numele = (med_int *) malloc(sizeof(med_int) * nmailles[i]); nufael = (med_int *) malloc(sizeof(med_int) * nmailles[i]); - nomele = ""; nbNodes = typmai[i] % 100; for (j = 0; j < nmailles[i]; j++)