mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
added timing block to most important parts
This commit is contained in:
parent
1a0a9cd25e
commit
f5a427a55b
@ -168,7 +168,7 @@ public:
|
|||||||
void update(const ElementContext& elemCtx, unsigned dofIdx, unsigned timeIdx)
|
void update(const ElementContext& elemCtx, unsigned dofIdx, unsigned timeIdx)
|
||||||
{
|
{
|
||||||
ParentType::update(elemCtx, dofIdx, timeIdx);
|
ParentType::update(elemCtx, dofIdx, timeIdx);
|
||||||
|
OPM_TIMEBLOCK_LOCAL(blackoilIntensiveQuanititiesUpdate);
|
||||||
const auto& problem = elemCtx.problem();
|
const auto& problem = elemCtx.problem();
|
||||||
const auto& priVars = elemCtx.primaryVars(dofIdx, timeIdx);
|
const auto& priVars = elemCtx.primaryVars(dofIdx, timeIdx);
|
||||||
const auto& linearizationType = problem.model().linearizer().getLinearizationType();
|
const auto& linearizationType = problem.model().linearizer().getLinearizationType();
|
||||||
|
@ -175,6 +175,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
void linearizeDomain()
|
void linearizeDomain()
|
||||||
{
|
{
|
||||||
|
OPM_TIMEBLOCK(linearizeDomain);
|
||||||
// we defer the initialization of the Jacobian matrix until here because the
|
// we defer the initialization of the Jacobian matrix until here because the
|
||||||
// auxiliary modules usually assume the problem, model and grid to be fully
|
// auxiliary modules usually assume the problem, model and grid to be fully
|
||||||
// initialized...
|
// initialized...
|
||||||
@ -215,6 +216,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
void linearizeAuxiliaryEquations()
|
void linearizeAuxiliaryEquations()
|
||||||
{
|
{
|
||||||
|
OPM_TIMEBLOCK(linearizeAuxilaryEquations);
|
||||||
// flush possible local caches into matrix structure
|
// flush possible local caches into matrix structure
|
||||||
jacobian_->commit();
|
jacobian_->commit();
|
||||||
|
|
||||||
@ -334,6 +336,7 @@ private:
|
|||||||
// Construct the BCRS matrix for the Jacobian of the residual function
|
// Construct the BCRS matrix for the Jacobian of the residual function
|
||||||
void createMatrix_()
|
void createMatrix_()
|
||||||
{
|
{
|
||||||
|
OPM_TIMEBLOCK(createMatrix);
|
||||||
if (!neighborInfo_.empty()) {
|
if (!neighborInfo_.empty()) {
|
||||||
// It is ok to call this function multiple times, but it
|
// It is ok to call this function multiple times, but it
|
||||||
// should not do anything if already called.
|
// should not do anything if already called.
|
||||||
@ -431,6 +434,7 @@ private:
|
|||||||
// Initialize the flows and flores sparse tables
|
// Initialize the flows and flores sparse tables
|
||||||
void createFlows_()
|
void createFlows_()
|
||||||
{
|
{
|
||||||
|
OPM_TIMEBLOCK(createFlows);
|
||||||
// If FLOWS/FLORES is set in any RPTRST in the schedule, then we initializate the sparse tables
|
// 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 anyFlows = simulator_().problem().eclWriter()->eclOutputModule().anyFlows();
|
||||||
const bool anyFlores = simulator_().problem().eclWriter()->eclOutputModule().anyFlores();
|
const bool anyFlores = simulator_().problem().eclWriter()->eclOutputModule().anyFlores();
|
||||||
@ -515,6 +519,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
void linearize_()
|
void linearize_()
|
||||||
{
|
{
|
||||||
|
OPM_TIMEBLOCK(linearize);
|
||||||
const bool well_local = true;
|
const bool well_local = true;
|
||||||
resetSystem_();
|
resetSystem_();
|
||||||
unsigned numCells = model_().numTotalDof();
|
unsigned numCells = model_().numTotalDof();
|
||||||
|
Loading…
Reference in New Issue
Block a user