mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-25 03:10:32 +05:00
catch exceptions in "rate = algo->GetProgress();"
This commit is contained in:
parent
51e8f347ad
commit
a6a734f166
@ -1486,7 +1486,17 @@ double SMESH_Mesh::GetComputeProgress() const
|
||||
algoDoneCost += smToCompute[i]->GetComputeCost();
|
||||
currentSubIds.Add( smToCompute[i]->GetId() );
|
||||
}
|
||||
double rate = algo->GetProgress();
|
||||
double rate = 0;
|
||||
try
|
||||
{
|
||||
OCC_CATCH_SIGNALS;
|
||||
rate = algo->GetProgress();
|
||||
}
|
||||
catch (...) {
|
||||
#ifdef _DEBUG_
|
||||
cerr << "Exception in " << algo->GetName() << "::GetProgress()" << endl;
|
||||
#endif
|
||||
}
|
||||
if ( 0. < rate && rate < 1.001 )
|
||||
{
|
||||
computedCost += rate * ( algoDoneCost + algoNotDoneCost );
|
||||
|
Loading…
Reference in New Issue
Block a user