0021208: Performance issue when loading SMESH with an hdf file containing a big mesh

loadDependentMeshes() before algo->Compute()
This commit is contained in:
eap 2012-03-22 14:09:13 +00:00
parent 3ca6b8c524
commit 264238f852

View File

@ -1383,9 +1383,11 @@ bool SMESH_subMesh::ComputeStateEngine(int event)
break; break;
} }
} }
// compute // Compute
//cleanDependants(); for "UseExisting_*D" algos //cleanDependants(); for "UseExisting_*D" algos
//removeSubMeshElementsAndNodes(); //removeSubMeshElementsAndNodes();
loadDependentMeshes();
ret = false; ret = false;
_computeState = FAILED_TO_COMPUTE; _computeState = FAILED_TO_COMPUTE;
_computeError = SMESH_ComputeError::New(COMPERR_OK,"",algo); _computeError = SMESH_ComputeError::New(COMPERR_OK,"",algo);
@ -1638,6 +1640,8 @@ bool SMESH_subMesh::ComputeStateEngine(int event)
else else
_computeState = NOT_READY; _computeState = NOT_READY;
break; break;
// case SUBMESH_LOADED:
// break;
default: default:
ASSERT(0); ASSERT(0);
break; break;