|
Opm::NewtonIterationContext Struct Reference Context for iteration-dependent decisions in the Newton solver. More...
Detailed DescriptionContext for iteration-dependent decisions in the Newton solver. Provides explicit state for iteration-dependent behavior:
For domain-local solves, Constructor & Destructor Documentation◆ NewtonIterationContext()
Member Function Documentation◆ advanceIteration()
Advance the current iteration counter. Advances the local iteration during domain-local solves, and the global iteration otherwise. Referenced by Opm::FvBaseProblem< TypeTag >::advanceIteration(). ◆ forLocalSolve()
Create a context for a domain-local solve. Preserves global iteration, resets local iteration to 0. Referenced by Opm::LocalContextGuard< Problem >::LocalContextGuard(). ◆ inLocalSolve()
Whether we are inside a domain-local solve (NLDD). ◆ isFirstGlobalIteration()
Is this the first iteration of the global solve (not a local solve)? Use for one-time-per-timestep logic ◆ iteration()
Getters. Current iteration number (0-based). Returns the local iteration during domain-local solves, and the global iteration otherwise. Referenced by shouldRelax(). ◆ markTimestepInitialized()
State Mutations. Mark timestep initialization as complete. Referenced by Opm::FvBaseProblem< TypeTag >::markTimestepInitialized(). ◆ needsTimestepInit()
Semantic Queries. Should timestep initialization run? True only on first global iteration before initialization is done. ◆ resetForNewTimestep()
Reset all state for a new timestep. Referenced by Opm::FvBaseProblem< TypeTag >::resetIterationForNewTimestep(). ◆ shouldRelax()
Should tolerances be relaxed based on iteration count? Uses local iteration for local solves, global otherwise. References iteration(). ◆ shouldRunInnerWellIterations()
Whether inner well iterations should run. Returns false during local solves, otherwise true while below maxIter. ◆ timestepInitialized()
Whether timestep initialization has been performed. ◆ withinNupcol()
Are we within the NUPCOL iteration window? Always uses global iteration regardless of local solve state. The documentation for this struct was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||