]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
To fix an error to allow write multi-components MED fields
authorapo <apo@opencascade.com>
Fri, 2 Jun 2006 12:04:19 +0000 (12:04 +0000)
committerapo <apo@opencascade.com>
Fri, 2 Jun 2006 12:04:19 +0000 (12:04 +0000)
src/MEDWrapper/V2_1/Wrapper/MED_V2_1_Wrapper.cxx
src/MEDWrapper/V2_2/MED_V2_2_Wrapper.cxx

index ba75525053d90cfc73f7adafc797a8c1e3e38a03..50bd0fdc0b798fb7f0ed8c1671d27b46090c120d 100644 (file)
@@ -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();
        
index 58aea049bce37e41c0d9493f7d45b5b138f446d4..f1409f9a7082ababfbb8c8b0dac988e10ae87511 100644 (file)
@@ -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();