move block data extraction into shared loop

no reason to setup the element contexts twice
This commit is contained in:
Arne Morten Kvarving committed 2025-03-07 09:25:46 +01:00
1 parent 6e872c32b0
commit 20d138e3a3
1 file changed
+1 -10
+1 -10
View File
@@ -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);