mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
added mpi checking of throw in property evaluation
This commit is contained in:
parent
cfd502c0f2
commit
c73b049497
@ -61,8 +61,9 @@ public:
|
||||
|
||||
void invalidateAndUpdateIntensiveQuantities(unsigned timeIdx) const
|
||||
{
|
||||
this->invalidateIntensiveQuantitiesCache(timeIdx);
|
||||
|
||||
this->invalidateIntensiveQuantitiesCache(timeIdx);
|
||||
OPM_BEGIN_PARALLEL_TRY_CATCH()
|
||||
// loop over all elements...
|
||||
ThreadedEntityIterator<GridView, /*codim=*/0> threadedElemIt(this->gridView_);
|
||||
#ifdef _OPENMP
|
||||
@ -77,12 +78,14 @@ public:
|
||||
elemCtx.updatePrimaryIntensiveQuantities(timeIdx);
|
||||
}
|
||||
}
|
||||
OPM_END_PARALLEL_TRY_CATCH("InvalideAndUpdateIntensiveQuantities: state error", this->simulator_.vanguard().grid().comm());
|
||||
}
|
||||
|
||||
void invalidateAndUpdateIntensiveQuantitiesOverlap(unsigned timeIdx) const
|
||||
{
|
||||
// loop over all elements
|
||||
ThreadedEntityIterator<GridView, /*codim=*/0> threadedElemIt(this->gridView_);
|
||||
OPM_BEGIN_PARALLEL_TRY_CATCH()
|
||||
#ifdef _OPENMP
|
||||
#pragma omp parallel
|
||||
#endif
|
||||
@ -105,6 +108,7 @@ public:
|
||||
elemCtx.updatePrimaryIntensiveQuantities(/*timeIdx=*/0);
|
||||
}
|
||||
}
|
||||
OPM_END_PARALLEL_TRY_CATCH("InvalideAndUpdateIntensiveQuantitiesOverlap: state error", this->simulator_.vanguard().grid().comm());
|
||||
}
|
||||
|
||||
template <class GridSubDomain>
|
||||
|
Loading…
Reference in New Issue
Block a user