added timing block to most important parts

This commit is contained in:
hnil 2023-02-15 09:40:17 +01:00
parent 1a0a9cd25e
commit f5a427a55b
2 changed files with 6 additions and 1 deletions

View File

@ -168,7 +168,7 @@ public:
void update(const ElementContext& elemCtx, unsigned dofIdx, unsigned timeIdx)
{
ParentType::update(elemCtx, dofIdx, timeIdx);
OPM_TIMEBLOCK_LOCAL(blackoilIntensiveQuanititiesUpdate);
const auto& problem = elemCtx.problem();
const auto& priVars = elemCtx.primaryVars(dofIdx, timeIdx);
const auto& linearizationType = problem.model().linearizer().getLinearizationType();

View File

@ -175,6 +175,7 @@ public:
*/
void linearizeDomain()
{
OPM_TIMEBLOCK(linearizeDomain);
// we defer the initialization of the Jacobian matrix until here because the
// auxiliary modules usually assume the problem, model and grid to be fully
// initialized...
@ -215,6 +216,7 @@ public:
*/
void linearizeAuxiliaryEquations()
{
OPM_TIMEBLOCK(linearizeAuxilaryEquations);
// flush possible local caches into matrix structure
jacobian_->commit();
@ -334,6 +336,7 @@ private:
// Construct the BCRS matrix for the Jacobian of the residual function
void createMatrix_()
{
OPM_TIMEBLOCK(createMatrix);
if (!neighborInfo_.empty()) {
// It is ok to call this function multiple times, but it
// should not do anything if already called.
@ -431,6 +434,7 @@ private:
// Initialize the flows and flores sparse tables
void createFlows_()
{
OPM_TIMEBLOCK(createFlows);
// If FLOWS/FLORES is set in any RPTRST in the schedule, then we initializate the sparse tables
const bool anyFlows = simulator_().problem().eclWriter()->eclOutputModule().anyFlows();
const bool anyFlores = simulator_().problem().eclWriter()->eclOutputModule().anyFlores();
@ -515,6 +519,7 @@ public:
private:
void linearize_()
{
OPM_TIMEBLOCK(linearize);
const bool well_local = true;
resetSystem_();
unsigned numCells = model_().numTotalDof();