diff --git a/ebos/ecloutputblackoilmodule.hh b/ebos/ecloutputblackoilmodule.hh index bf38f7dd0..1be8b76cb 100644 --- a/ebos/ecloutputblackoilmodule.hh +++ b/ebos/ecloutputblackoilmodule.hh @@ -216,6 +216,7 @@ public: */ void processElement(const ElementContext& elemCtx) { + OPM_TIMEBLOCK_LOCAL(processElement); if (!std::is_same>::value) return; @@ -857,6 +858,7 @@ public: template void processFluxes(const ElementContext& elemCtx, ActiveIndex&& activeIndex, CartesianIndex&& cartesianIndex) { + OPM_TIMEBLOCK_LOCAL(processFluxes); const auto identifyCell = [&activeIndex, &cartesianIndex](const Element& elem) -> EclInterRegFlowMap::Cell { const auto cellIndex = activeIndex(elem); @@ -983,7 +985,7 @@ private: void updateFluidInPlace_(const ElementContext& elemCtx, unsigned dofIdx) { - + OPM_TIMEBLOCK_LOCAL(updateFluidInPlace); const auto& intQuants = elemCtx.intensiveQuantities(dofIdx, /*timeIdx=*/0); const auto& fs = intQuants.fluidState(); unsigned globalDofIdx = elemCtx.globalSpaceIndex(dofIdx, /*timeIdx=*/0); diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index aeaa0d254..14ee46461 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -1198,14 +1198,15 @@ public: */ void writeOutput(bool verbose = true) { - OPM_TIMEBLOCK(writeOutput); + OPM_TIMEBLOCK(problemWriteOutput); // use the generic code to prepare the output fields and to // write the desired VTK files. ParentType::writeOutput(verbose); bool isSubStep = !EWOMS_GET_PARAM(TypeTag, bool, EnableWriteAllSolutions) && !this->simulator().episodeWillBeOver(); - if (enableEclOutput_) + if (enableEclOutput_){ eclWriter_->writeOutput(isSubStep); + } } void finalizeOutput() { diff --git a/ebos/eclwriter.hh b/ebos/eclwriter.hh index 2ea89bcd9..3e74c0b88 100644 --- a/ebos/eclwriter.hh +++ b/ebos/eclwriter.hh @@ -305,6 +305,7 @@ public: void writeOutput(bool isSubStep) { + OPM_TIMEBLOCK(writeOutput); const int reportStepNum = simulator_.episodeIndex() + 1; this->prepareLocalCellData(isSubStep, reportStepNum); this->eclOutputModule_->outputErrorLog(simulator_.gridView().comm()); @@ -500,6 +501,7 @@ private: void prepareLocalCellData(const bool isSubStep, const int reportStepNum) { + OPM_TIMEBLOCK(prepareLocalCellData); const auto& gridView = simulator_.vanguard().gridView(); const int numElements = gridView.size(/*codim=*/0); const bool log = this->collectToIORank_.isIORank(); @@ -520,6 +522,7 @@ private: void captureLocalFluxData() { + OPM_TIMEBLOCK(captureLocalData); const auto& gridView = this->simulator_.vanguard().gridView(); const auto timeIdx = 0u;