mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-02 20:30:55 -06:00
move block data extraction into shared loop
no reason to setup the element contexts twice
This commit is contained in:
1 parent
6e872c32b0
commit
20d138e3a3
1 file changed
+1
-10
@@ -731,22 +731,13 @@ private:
|
||||
elemCtx.updatePrimaryIntensiveQuantities(/*timeIdx=*/0);
|
||||
|
||||
this->outputModule_->processElement(elemCtx);
|
||||
this->outputModule_->processElementBlockData(elemCtx);
|
||||
}
|
||||
this->outputModule_->clearExtractors();
|
||||
|
||||
this->outputModule_->accumulateDensityParallel();
|
||||
}
|
||||
|
||||
{
|
||||
OPM_TIMEBLOCK(prepareBlockData);
|
||||
for (const auto& elem : elements(gridView, Dune::Partitions::interior)) {
|
||||
elemCtx.updatePrimaryStencil(elem);
|
||||
elemCtx.updatePrimaryIntensiveQuantities(/*timeIdx=*/0);
|
||||
|
||||
this->outputModule_->processElementBlockData(elemCtx);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
OPM_TIMEBLOCK(prepareFluidInPlace);
|
||||
|
||||
|
||||
Reference in new issue
Block a user