mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
AdaptiveTimeStepping: make output more easy to read.
This commit is contained in:
parent
15c2e91730
commit
ae683efcfc
@ -111,6 +111,12 @@ namespace Opm {
|
|||||||
// initialize time step control in case current state is needed later
|
// initialize time step control in case current state is needed later
|
||||||
timeStepControl_->initialize( state );
|
timeStepControl_->initialize( state );
|
||||||
|
|
||||||
|
if( timestep_verbose_ )
|
||||||
|
{
|
||||||
|
std::cout <<"Substep( " << substepTimer.currentStepNum() << " ), try with stepsize "
|
||||||
|
<< unit::convert::to(substepTimer.currentStepLength(), unit::day) << " (days)." << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
int linearIterations = -1;
|
int linearIterations = -1;
|
||||||
try {
|
try {
|
||||||
// (linearIterations < 0 means on convergence in solver)
|
// (linearIterations < 0 means on convergence in solver)
|
||||||
@ -149,10 +155,8 @@ namespace Opm {
|
|||||||
|
|
||||||
if( timestep_verbose_ )
|
if( timestep_verbose_ )
|
||||||
{
|
{
|
||||||
std::cout << std::endl
|
std::cout << "Substep( " << substepTimer.currentStepNum()-1 // it was already advanced by ++
|
||||||
<<"Substep( " << substepTimer.currentStepNum()
|
<< " ) finished at time " << unit::convert::to(substepTimer.simulationTimeElapsed(),unit::day) << " (days)." << std::endl << std::endl;
|
||||||
<< " ): Current time (days) " << unit::convert::to(substepTimer.simulationTimeElapsed(),unit::day) << std::endl
|
|
||||||
<< " Current stepsize est (days) " << unit::convert::to(dtEstimate, unit::day) << std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// write data if outputWriter was provided
|
// write data if outputWriter was provided
|
||||||
|
Loading…
Reference in New Issue
Block a user