aMesh->myMeshInfo = aMeshInfo;
aMesh->myNamedPointCoords(new TMEDNamedPointCoords());
+ INITMSG(MYDEBUG,"aMeshName = '"<<aMeshName<<
+ "; aDim = "<<aDim<<"\n");
+
if(aType == MED::eNON_STRUCTURE){
- MED::PNodeInfo aNodeInfo = aMed->GetPNodeInfo(aMeshInfo);
-
- MED::TEntityInfo anEntityInfo = aMed->GetEntityInfo(aMeshInfo);
+ if(MED::PNodeInfo aNodeInfo = aMed->GetPNodeInfo(aMeshInfo)){
+ MED::TEntityInfo anEntityInfo = aMed->GetEntityInfo(aMeshInfo);
- aMesh->myNbPoints = aNodeInfo->GetNbElem();
- aMesh->myEntityInfo = anEntityInfo;
+ aMesh->myNbPoints = aNodeInfo->GetNbElem();
+ aMesh->myEntityInfo = anEntityInfo;
- INITMSG(MYDEBUG,"aMeshName = '"<<aMeshName<<
- "'; myNbPoints = "<<aMesh->myNbPoints<<
- "; aDim = "<<aDim<<"\n");
#ifndef _DEXCEPT_
- try{
+ try{
#endif
- BEGMSG(MYDEBUG,"anEntityInfo.size() = "<<anEntityInfo.size()<<"\n");
-
- BuildMeshOnEntityMap(aMesh,
- anEntityInfo,
- aNodeInfo,
+ INITMSG(MYDEBUG,"myNbPoints = "<<aMesh->myNbPoints<<
+ "; anEntityInfo.size() = "<<anEntityInfo.size()<<
+ "\n");
+
+ BuildMeshOnEntityMap(aMesh,
+ anEntityInfo,
+ aNodeInfo,
aMed);
-
+
#ifndef _DEXCEPT_
- }catch(std::exception& exc){
- MSG(MYDEBUG,"Follow exception was occured in:\n"<<exc.what());
- }catch(...){
- MSG(MYDEBUG,"Unknown exception !!!");
- }
+ }catch(std::exception& exc){
+ MSG(MYDEBUG,"Follow exception was occured in:\n"<<exc.what());
+ }catch(...){
+ MSG(MYDEBUG,"Unknown exception !!!");
+ }
#endif
+ }
} // NON STRUCTURED MESH
else {
MED::PGrilleInfo aGrilleInfo = aMed->GetPGrilleInfo(aMeshInfo);