From: apo Date: Fri, 2 Jun 2006 12:04:19 +0000 (+0000) Subject: To fix an error to allow write multi-components MED fields X-Git-Tag: T3_2_0b2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=35cd6df981e6b70c1e4b8ad983fca6c47a082317;p=modules%2Fmed.git To fix an error to allow write multi-components MED fields --- diff --git a/src/MEDWrapper/V2_1/Wrapper/MED_V2_1_Wrapper.cxx b/src/MEDWrapper/V2_1/Wrapper/MED_V2_1_Wrapper.cxx index ba7552505..50bd0fdc0 100644 --- a/src/MEDWrapper/V2_1/Wrapper/MED_V2_1_Wrapper.cxx +++ b/src/MEDWrapper/V2_1/Wrapper/MED_V2_1_Wrapper.cxx @@ -1148,7 +1148,7 @@ namespace MED MED::TProfileInfo& aProfileInfo = aGeom2Profile[aGeom]; med_int aNbGauss = aTimeStampInfo.GetNbGauss(aGeom); - med_int aNbVal = aMeshValue.myNbElem / aFieldInfo.myNbComp; + med_int aNbVal = aMeshValue.myNbElem * aMeshValue.myNbGauss; TValue& aValue = aMeshValue.myValue; TInt anEnd = aValue.size(); diff --git a/src/MEDWrapper/V2_2/MED_V2_2_Wrapper.cxx b/src/MEDWrapper/V2_2/MED_V2_2_Wrapper.cxx index 58aea049b..f1409f9a7 100644 --- a/src/MEDWrapper/V2_2/MED_V2_2_Wrapper.cxx +++ b/src/MEDWrapper/V2_2/MED_V2_2_Wrapper.cxx @@ -1861,7 +1861,7 @@ namespace MED strcpy(&aProfileName[0],&aProfileInfo->myName[0]); } - med_int aNbVal = aMeshValue.myNbElem / aFieldInfo.myNbComp; + med_int aNbVal = aMeshValue.myNbElem * aMeshValue.myNbGauss; TValue& aValue = aMeshValue.myValue; TInt anEnd = aValue.size();