#include "MED_Factory.hxx"
#include "MED_Algorithm.hxx"
+#include "MED_GaussUtils.hxx"
#include "MED_Utilities.hxx"
#include <vtkCellType.h>
#define _EDF_NODE_IDS_
-//#define _DEXCEPT_
+#define _DEXCEPT_
using namespace std;
using namespace VISU;
using MED::EBooleen;
#ifdef _DEBUG_
-static int MYDEBUG = 0;
+static int MYDEBUG = 1;
static int MY_FAMILY_DEBUG = 0;
static int MY_GROUP_DEBUG = 0;
#else
}
}
- //continue;
+ continue;
MED::TFamilyGroup aFamilyGroup = MED::GetFamilies(aMed,aMeshInfo);
MED::TFamilyByEntity aFamilyByEntity = MED::GetFamiliesByEntity(aMed,aElemGroup,aFamilyGroup);
PMEDSubProfile aSubProfile = aGaussSubMesh->mySubProfile;
const TSubMeshID& aSubMeshID = aSubProfile->mySubMeshID;
+ bool anIsGaussCoord3D = false;
if(!aSubMeshID.empty()){
MED::PProfileInfo aProfileInfo = aSubProfile->myProfileInfo;
const MED::TElemNum& anElemNum = aProfileInfo->myElemNum;
- MED::GetGaussCoord3D(aGaussInfo,
- aCellInfo,
- aNodeInfo,
- aGaussCoord,
- anElemNum);
+ anIsGaussCoord3D = MED::GetGaussCoord3D(aGaussInfo,
+ aCellInfo,
+ aNodeInfo,
+ aGaussCoord,
+ anElemNum);
}else
- MED::GetGaussCoord3D(aGaussInfo,
- aCellInfo,
- aNodeInfo,
- aGaussCoord);
+ anIsGaussCoord3D = MED::GetGaussCoord3D(aGaussInfo,
+ aCellInfo,
+ aNodeInfo,
+ aGaussCoord);
- if(TInt aNbGauss = aGaussCoord.GetNbGauss()){
+ if(anIsGaussCoord3D){
TPointCoords& aCoords = aGaussSubMesh->myPointCoords;
+ TInt aNbGauss = aGaussCoord.GetNbGauss();
TInt aNbElem = aGaussCoord.GetNbElem();
TInt aDim = aGaussCoord.GetDim();
vtkIdType aNbCells = aNbElem*aNbGauss;
theField->myDataSize = 0;
+ const MED::TTimeStampVal& aTimeVal = aTimeStampVal;
TGeom2SubProfile::const_iterator anIter = aGeom2SubProfile.begin();
for(; anIter != aGeom2SubProfile.end(); anIter++){
vtkIdType aVGeom = anIter->first;
aVMeshValue.Init(aNbElem,aNbGauss,aNbComp);
MED::EGeometrieElement aMGeom = VTKGeomToMED(aVGeom);
- const MED::TMeshValue& aMMeshValue = aTimeStampVal->GetMeshValue(aMGeom);
+ const MED::TMeshValue& aMMeshValue = aTimeVal.GetMeshValue(aMGeom);
for(TInt iElem = 0; iElem < aNbElem; iElem++){
TValueSliceArr aVValueSliceArr = aVMeshValue.GetGaussValueSliceArr(iElem);
MED::TCValueSliceArr aMValueSliceArr = aMMeshValue.GetValueSliceArr(iElem);