if(aGaussIter != aGeom2Gauss.end()){
PGaussInfo aGaussInfo = aGaussIter->second;
+ aGauss->myGaussInfo = aGaussInfo;
+
aName = aGaussInfo->GetName();
aGauss->myName = aName;
const MED::TGeom2Size& theGeom2Size,
VISU::TMEDValForTime& theValForTime)
{
+ INITMSG(MYDEBUG,"InitGaussProfile"<<endl);
// The order of the function calls is important
InitProfile(theTimeStampVal,theMeshOnEntity,theGeom2Size,theValForTime);
InitGaussMesh(theTimeStampVal,theMeshOnEntity,theGeom2Size,theValForTime);
//---------------------------------------------------------------
void
-LoadGaussMesh(MED::TTimeStampVal& theTimeStampVal,
+LoadGaussMesh(const MED::PWrapper& theMed,
+ VISU::PMEDMesh theMesh,
+ MED::TTimeStampVal& theTimeStampVal,
VISU::TMEDValForTime& theValForTime,
VISU::TMEDMeshOnEntity& theMeshOnEntity)
{
if(aGaussMesh->myIsInitialized)
return;
+ const PMeshInfo& aMeshInfo = theMesh->myMeshInfo;
+ PNodeInfo aNodeInfo = theMed->GetPNodeInfo(aMeshInfo);
+
+ TEntity aVEntity = theMeshOnEntity.myEntity;
+ EEntiteMaillage aMEntity = VTKEntityToMED(aVEntity);
+
const TGeom2GaussSubMesh& aGeom2GaussSubMesh = aGaussMesh->myGeom2GaussSubMesh;
const TTimeStampInfo& aTimeStampInfo = theTimeStampVal.GetTimeStampInfo();
const TGeom2Gauss& aGeom2Gauss = aTimeStampInfo.GetGeom2Gauss();
TGeom2GaussSubMesh::const_iterator anIter2 = aGeom2GaussSubMesh.find(aVGeom);
if(anIter2 != aGeom2GaussSubMesh.end()){
PMEDGaussSubMesh aGaussSubMesh = anIter2->second;
+
+ PMEDGauss aGauss = aGaussSubMesh->myGauss;
+ MED::PGaussInfo aGaussInfo = aGauss->myGaussInfo;
PMEDSubProfile aSubProfile = aGaussSubMesh->mySubProfile;
+
+ if(aGaussInfo){
+ MED::PCellInfo aCellInfo = theMed->GetPCellInfo(aMeshInfo,
+ aMEntity,
+ aMGeom);
+ TElemNum anElemNum = aSubProfile->mySubMeshID;
+
+ MED::TGaussCoord aGaussCoord;
+ MED::GetGaussCoord3D(aGaussInfo,
+ aCellInfo,
+ aNodeInfo,
+ aGaussCoord,
+ anElemNum);
+
+ TPoints& aPoints = aGaussSubMesh->myPoints;
+
+ INITMSG(MYDEBUG,
+ "- aVGeom = "<<aVGeom<<
+ "; aStatus = "<<aGaussSubMesh->myStatus<<
+ "; aNbCells = "<<aSubProfile->mySubMeshID.size()<<
+ "; aNbElem = "<<aGaussCoord.size()<<
+ endl);
+
+ }else{
- INITMSG(MYDEBUG,
- "- aVGeom = "<<aVGeom<<
- "; aStatus = "<<aGaussSubMesh->myStatus<<
- "; aNbCells = "<<aSubProfile->mySubMeshID.size()<<
- endl);
+ INITMSG(MYDEBUG,
+ "- aVGeom = "<<aVGeom<<
+ "; aStatus = "<<aGaussSubMesh->myStatus<<
+ "; aNbCells = "<<aSubProfile->mySubMeshID.size()<<
+ endl);
+ }
}
}
}
theValForTime,
theMeshOnEntity);
- LoadGaussMesh(aTimeStampVal,
+ LoadGaussMesh(theMed,
+ theMesh,
+ aTimeStampVal,
theValForTime,
theMeshOnEntity);