mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-23 07:53:29 -06:00
added more timing macros
This commit is contained in:
parent
af30df5dff
commit
122a478341
@ -27,6 +27,7 @@
|
||||
|
||||
#include <opm/common/OpmLog/OpmLog.hpp>
|
||||
#include <opm/common/utility/TimeService.hpp>
|
||||
#include <opm/common/TimingMacros.hpp>
|
||||
|
||||
#include <opm/input/eclipse/EclipseState/EclipseState.hpp>
|
||||
#include <opm/input/eclipse/Schedule/Action/ActionContext.hpp>
|
||||
@ -130,6 +131,7 @@ void EclActionHandler::applyActions(const int reportStep,
|
||||
const double sim_time,
|
||||
const TransFunc& transUp)
|
||||
{
|
||||
OPM_TIMEBLOCK(applyActions);
|
||||
const auto& actions = schedule_[reportStep].actions();
|
||||
if (actions.empty()) {
|
||||
return;
|
||||
@ -188,6 +190,7 @@ void EclActionHandler::applySimulatorUpdate(const int report_step,
|
||||
bool& commit_wellstate,
|
||||
const TransFunc& updateTrans)
|
||||
{
|
||||
OPM_TIMEBLOCK(applySimulatorUpdate);
|
||||
this->wellModel_.updateEclWells(report_step, sim_update.affected_wells, summaryState_);
|
||||
if (!sim_update.affected_wells.empty())
|
||||
commit_wellstate = true;
|
||||
|
@ -1127,7 +1127,8 @@ public:
|
||||
|
||||
// deal with DRSDT and DRVDT
|
||||
updateCompositionChangeLimits_();
|
||||
|
||||
{
|
||||
OPM_TIMEBLOCK(driftCompansation);
|
||||
if (enableDriftCompensation_) {
|
||||
const auto& residual = this->model().linearizer().residual();
|
||||
for (unsigned globalDofIdx = 0; globalDofIdx < residual.size(); globalDofIdx ++) {
|
||||
@ -1137,7 +1138,7 @@ public:
|
||||
drift_[globalDofIdx] *= this->model().dofTotalVolume(globalDofIdx);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
bool isSubStep = !EWOMS_GET_PARAM(TypeTag, bool, EnableWriteAllSolutions) && !this->simulator().episodeWillBeOver();
|
||||
eclWriter_->evalSummaryState(isSubStep);
|
||||
|
||||
@ -1155,11 +1156,12 @@ public:
|
||||
[this,gridToEquilGrid](bool global) {
|
||||
this->transmissibilities_.update(global,gridToEquilGrid);
|
||||
};
|
||||
|
||||
{
|
||||
OPM_TIMEBLOCK(applyActions);
|
||||
actionHandler_.applyActions(episodeIdx,
|
||||
simulator.time() + simulator.timeStepSize(),
|
||||
transUp);
|
||||
|
||||
}
|
||||
// deal with "clogging" for the MICP model
|
||||
if constexpr (enableMICP){
|
||||
auto& model = this->model();
|
||||
|
@ -183,6 +183,7 @@ namespace Opm {
|
||||
|
||||
void beginEpisode()
|
||||
{
|
||||
OPM_TIMEBLOCK(beginEpsiode);
|
||||
beginReportStep(ebosSimulator_.episodeIndex());
|
||||
}
|
||||
|
||||
@ -190,6 +191,7 @@ namespace Opm {
|
||||
|
||||
void beginIteration()
|
||||
{
|
||||
OPM_TIMEBLOCK(beginIteration);
|
||||
assemble(ebosSimulator_.model().newtonMethod().numIterations(),
|
||||
ebosSimulator_.timeStepSize());
|
||||
}
|
||||
@ -199,6 +201,7 @@ namespace Opm {
|
||||
|
||||
void endTimeStep()
|
||||
{
|
||||
OPM_TIMEBLOCK(endTimeStep);
|
||||
timeStepSucceeded(ebosSimulator_.time(), ebosSimulator_.timeStepSize());
|
||||
}
|
||||
|
||||
|
@ -237,6 +237,7 @@ namespace Opm {
|
||||
BlackoilWellModel<TypeTag>::
|
||||
beginTimeStep()
|
||||
{
|
||||
OPM_TIMEBLOCK(beginTimeStep);
|
||||
updatePerforationIntensiveQuantities();
|
||||
updateAverageFormationFactor();
|
||||
DeferredLogger local_deferredLogger;
|
||||
|
Loading…
Reference in New Issue
Block a user