VISU::TValField::const_iterator aValFieldIter = aValField.begin();
for(; aValFieldIter != aValField.end(); aValFieldIter++){
int aTimeStamp = aValFieldIter->first;
- //
- vtkUnstructuredGrid *aOut;
- //int aNbNodes, aNbCells, i;
- //VISU::TGaussPointID aID;
- //
- aOut=aCon->GetTimeStampOnGaussPts(aMeshName,anEntity,aFieldName,aTimeStamp);
-
- //aNbNodes=aOut->GetNumberOfPoints();
- //aNbCells=aOut->GetNumberOfCells();
- //printf("aNbNodes =%d\n", aNbNodes);
- //printf("aNbCells =%d\n", aNbCells);
- //
- //VISU::PGaussMesh pGaussMesh=aCon->GetGaussMesh(aMeshName,anEntity,aFieldName,aTimeStamp);
- //
- //for (i=0; i<aNbCells; ++i) {
- // aID=pGaussMesh->GetObjId(i);
- // }
- //
+ if(anEntity != VISU::NODE_ENTITY)
+ aCon->GetTimeStampOnGaussPts(aMeshName,anEntity,aFieldName,aTimeStamp);
+ else
+ aCon->GetTimeStampOnMesh(aMeshName,anEntity,aFieldName,aTimeStamp);
//goto OK;
}
}
aCon->GetMeshOnEntity(aMeshName,anEntity);
}
- continue;
-
- //Importing groups
- const VISU::TGroupMap& aGroupMap = aMesh->myGroupMap;
- VISU::TGroupMap::const_iterator aGroupMapIter = aGroupMap.begin();
- for(; aGroupMapIter != aGroupMap.end(); aGroupMapIter++){
- const string& aGroupName = aGroupMapIter->first;
- aCon->GetMeshOnGroup(aMeshName,aGroupName);
- }
+ //continue;
//Import families
aMeshOnEntityMapIter = aMeshOnEntityMap.begin();
}
}
+ //Importing groups
+ const VISU::TGroupMap& aGroupMap = aMesh->myGroupMap;
+ VISU::TGroupMap::const_iterator aGroupMapIter = aGroupMap.begin();
+ for(; aGroupMapIter != aGroupMap.end(); aGroupMapIter++){
+ const string& aGroupName = aGroupMapIter->first;
+ aCon->GetMeshOnGroup(aMeshName,aGroupName);
+ }
+
}
MSG(MYDEBUG,"OK");
#ifndef _DEXCEPT_
static int MYVTKDEBUG = 0;
#ifdef _DEBUG_
-static int MYDEBUG = 1;
-static int MYDEBUGWITHFILES = 1;
+static int MYDEBUG = 0;
+static int MYDEBUGWITHFILES = 0;
#else
static int MYDEBUG = 0;
static int MYDEBUGWITHFILES = 0;
for(; aGeom2Cell2ConnectIter != aGeom2Cell2Connect.end(); aGeom2Cell2ConnectIter++){
const VISU::TCell2Connect& anArray = aGeom2Cell2ConnectIter->second;
vtkIdType aGeom = aGeom2Cell2ConnectIter->first;
- INITMSG(MYDEBUG,"aGeom = "<<aGeom<<"; anArray.size() = "<<anArray.size());
+ INITMSG(MYDEBUG,"aGeom = "<<aGeom<<"; anArray.size() = "<<anArray.size()<<"\n");
const VISU::TGeom2SubMeshID& aGeom2SubMeshID = aFamily->myGeom2SubMeshID;
if(aGeom2SubMeshID.empty())
VISU::TGeom2SubMeshID::const_iterator aGeom2SubMeshIDIter = aGeom2SubMeshID.find(aGeom);
if(aGeom2SubMeshIDIter != aGeom2SubMeshID.end()){
const VISU::TSubMeshID& aSubMeshID = aGeom2SubMeshIDIter->second;
- INITMSG(MYDEBUG,"aSubMeshID.size() = "<<aSubMeshID.size());
+ INITMSG(MYDEBUG,"aSubMeshID.size() = "<<aSubMeshID.size()<<"\n");
VISU::TSubMeshID::const_iterator aSubMeshIDIter = aSubMeshID.begin();
for(; aSubMeshIDIter != aSubMeshID.end(); aSubMeshIDIter++, i++){
PrintCells(i,aConnectivity,anArray[*aSubMeshIDIter]);
}
//Main part of code
+#ifndef _DEXCEPT_
try{
-
+#endif
if(!(*anIsInitialized)){
if(MYVTKDEBUG) aSource->DebugOn();
BEGMSG(MYVTKDEBUG,"GetCellLinks() = "<<float(aSource->GetCellLinks()->GetActualMemorySize()*1000)<<endl);
BEGMSG(MYVTKDEBUG,"GetActualMemorySize() = "<<float(aSource->GetActualMemorySize()*1000)<<endl);
}
-
+#ifndef _DEXCEPT_
}catch(...){
throw;
}
+#endif
return aSource.GetPointer();
}
//Main part of code
const TVTKSource& aSource = aGroup->GetSource();
+#ifndef _DEXCEPT_
try{
+#endif
if(!aGroup->myIsVTKDone){
LoadMeshOnGroup(aMesh,aFamilyAndEntitySet);
GetPoints(aSource,aMesh);
VISU::WriteToFile(aSource.GetPointer(),aFileName);
}
}
-
+#ifndef _DEXCEPT_
}catch(...){
throw;
}
+#endif
return aSource.GetPointer();
}
using MED::EBooleen;
#ifdef _DEBUG_
-static int MYDEBUG = 1;
+static int MYDEBUG = 0;
static int MYVALUEDEBUG = 0;
-static int MY_FAMILY_DEBUG = 1;
-static int MY_GROUP_DEBUG = 1;
+static int MY_FAMILY_DEBUG = 0;
+static int MY_GROUP_DEBUG = 0;
#else
static int MYDEBUG = 0;
static int MYVALUEDEBUG = 0;
const std::string& aMeshName = theMeshOnEntity->myMeshName;
const TEntity& anEntity = theMeshOnEntity->myEntity;
PMeshImpl aMesh = myMeshMap[aMeshName];
- int isPointsUpdated;
- if(anEntity == NODE_ENTITY)
- isPointsUpdated = LoadPoints(aMed,aMesh,theFamilyName);
- else
- isPointsUpdated = LoadPoints(aMed,aMesh);
- int isCellsOnEntityUpdated = LoadCellsOnEntity(aMed,aMesh,theMeshOnEntity,theFamilyName);
+
+ int isPointsUpdated = 0, isCellsOnEntityUpdated = 0;
+ if(anEntity == NODE_ENTITY){
+ isPointsUpdated += LoadPoints(aMed,aMesh,theFamilyName);
+ }else{
+ isPointsUpdated += LoadPoints(aMed,aMesh);
+ isCellsOnEntityUpdated += LoadCellsOnEntity(aMed,aMesh,theMeshOnEntity,theFamilyName);
+ }
return (isPointsUpdated || isCellsOnEntityUpdated);
}
const PMEDMeshOnEntity aMeshOnEntity = theMesh->myMeshOnEntityMap[anEntity];
if(anEntity == NODE_ENTITY){
isPointsUpdated += LoadPoints(aMed,theMesh,aFamilyName);
- isCellsOnEntityUpdated += LoadCellsOnEntity(aMed,theMesh,aMeshOnEntity);
}else{
isPointsUpdated += LoadPoints(aMed,theMesh);
isCellsOnEntityUpdated += LoadCellsOnEntity(aMed,theMesh,aMeshOnEntity,aFamilyName);
VISU::PValForTimeImpl theValForTime)
{
MED::PWrapper aMed = MED::CrWrapper(myFileInfo.absFilePath().latin1());
- int isPointsUpdated = LoadPoints(aMed,theMesh);
- int isCellsOnEntityUpdated = LoadCellsOnEntity(aMed,theMesh,theMeshOnEntity);
+
+ const TEntity& anEntity = theMeshOnEntity->myEntity;
+ int isPointsUpdated = 0, isCellsOnEntityUpdated = 0;
+ isPointsUpdated += LoadPoints(aMed,theMesh);
+ if(anEntity != NODE_ENTITY)
+ isCellsOnEntityUpdated += LoadCellsOnEntity(aMed,theMesh,theMeshOnEntity);
int isFieldUpdated = LoadValForTimeOnMesh(aMed,theMesh,theMeshOnEntity,theField,theValForTime);
return (isPointsUpdated || isCellsOnEntityUpdated || isFieldUpdated);
VISU::PValForTimeImpl theValForTime)
{
MED::PWrapper aMed = MED::CrWrapper(myFileInfo.absFilePath().latin1());
- int isPointsUpdated = LoadPoints(aMed,theMesh);
- int isCellsOnEntityUpdated = LoadCellsOnEntity(aMed,theMesh,theMeshOnEntity);
+
+ const TEntity& anEntity = theMeshOnEntity->myEntity;
+ int isPointsUpdated = 0, isCellsOnEntityUpdated = 0;
+ if(anEntity != NODE_ENTITY)
+ isCellsOnEntityUpdated += LoadCellsOnEntity(aMed,theMesh,theMeshOnEntity);
int isFieldUpdated = LoadValForTimeOnGaussPts(aMed,theMesh,theMeshOnEntity,theField,theValForTime);
return (isPointsUpdated || isCellsOnEntityUpdated || isFieldUpdated);
if(theMesh->myIsDone)
if(!aFamily)
return 0;
- else if(!aFamily->myIsDone)
+ else if(aFamily->myIsDone)
return 0;
INITMSG(MYDEBUG,"LoadPoints - theMesh->myIsDone = "<<theMesh->myIsDone<<
}
{
const MED::PMeshInfo& aMeshInfo = theMesh->myMeshInfo;
- MED::PNodeInfo aNodeInfo = theMed->GetPNodeInfo(aMeshInfo);
TEntity aVEntity = theMeshOnEntity.myEntity;
MED::EEntiteMaillage aMEntity = VTKEntityToMED(aVEntity);
for(; anIter != aGeom2SubProfile.end(); anIter++){
const PMEDSubProfile& aSubProfile = anIter->second;
MED::EGeometrieElement aMGeom = aSubProfile->myMGeom;
- MED::PCellInfo aCellInfo = theMed->GetPCellInfo(aMeshInfo,
- aMEntity,
- aMGeom);
+ MED::PElemInfo anElemInfo;
+ if(aMEntity == MED::eNOEUD)
+ anElemInfo = theMed->GetPNodeInfo(aMeshInfo);
+ else
+ anElemInfo = theMed->GetPCellInfo(aMeshInfo,
+ aMEntity,
+ aMGeom);
- aSubProfile->myIsElemNum = aCellInfo->IsElemNum();
+ aSubProfile->myIsElemNum = anElemInfo->IsElemNum();
if(aSubProfile->myIsElemNum)
- aSubProfile->myElemNum = aCellInfo->myElemNum;
+ aSubProfile->myElemNum = anElemInfo->myElemNum;
aSubProfile->myNamedPointCoords = theMesh->myNamedPointCoords;
}