From 35cd6df981e6b70c1e4b8ad983fca6c47a082317 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 2 Jun 2006 12:04:19 +0000 Subject: [PATCH] To fix an error to allow write multi-components MED fields --- src/MEDWrapper/V2_1/Wrapper/MED_V2_1_Wrapper.cxx | 2 +- src/MEDWrapper/V2_2/MED_V2_2_Wrapper.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2