mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Initial well iterations as a special number, output it if it is valid.
This commit is contained in:
parent
136839bd20
commit
d3e6a657cd
@ -775,7 +775,7 @@ namespace detail {
|
|||||||
asImpl().assembleMassBalanceEq(state);
|
asImpl().assembleMassBalanceEq(state);
|
||||||
|
|
||||||
// -------- Well equations ----------
|
// -------- Well equations ----------
|
||||||
IterationReport iter_report = {false, false, 0, 0};
|
IterationReport iter_report = {false, false, 0, std::numeric_limits<int>::min()};
|
||||||
if ( ! wellsActive() ) {
|
if ( ! wellsActive() ) {
|
||||||
return iter_report;
|
return iter_report;
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@ namespace Opm {
|
|||||||
asImpl().assembleMassBalanceEq(state);
|
asImpl().assembleMassBalanceEq(state);
|
||||||
|
|
||||||
// -------- Well equations ----------
|
// -------- Well equations ----------
|
||||||
IterationReport iter_report = {false, false, 0, 0};
|
IterationReport iter_report = {false, false, 0, std::numeric_limits<int>::min()};
|
||||||
if ( ! wellsActive() ) {
|
if ( ! wellsActive() ) {
|
||||||
return iter_report;
|
return iter_report;
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ namespace Opm {
|
|||||||
asImpl().assembleMassBalanceEq(state);
|
asImpl().assembleMassBalanceEq(state);
|
||||||
|
|
||||||
// -------- Well equations ----------
|
// -------- Well equations ----------
|
||||||
IterationReport iter_report = {false, false, 0, 0};
|
IterationReport iter_report = {false, false, 0, std::numeric_limits<int>::min()};
|
||||||
if ( ! wellsActive() ) {
|
if ( ! wellsActive() ) {
|
||||||
return iter_report;
|
return iter_report;
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@ namespace Opm
|
|||||||
std::ostringstream step_msg;
|
std::ostringstream step_msg;
|
||||||
boost::posix_time::time_facet* facet = new boost::posix_time::time_facet("%d-%b-%Y");
|
boost::posix_time::time_facet* facet = new boost::posix_time::time_facet("%d-%b-%Y");
|
||||||
step_msg.imbue(std::locale(std::locale::classic(), facet));
|
step_msg.imbue(std::locale(std::locale::classic(), facet));
|
||||||
step_msg << "Time step " << std::setw(4) <<timer.currentStepNum()
|
step_msg << "\nTime step " << std::setw(4) <<timer.currentStepNum()
|
||||||
<< " at day " << (double)unit::convert::to(timer.simulationTimeElapsed(), unit::day)
|
<< " at day " << (double)unit::convert::to(timer.simulationTimeElapsed(), unit::day)
|
||||||
<< "/" << (double)unit::convert::to(timer.totalTime(), unit::day)
|
<< "/" << (double)unit::convert::to(timer.totalTime(), unit::day)
|
||||||
<< ", date = " << timer.currentDateTime()
|
<< ", date = " << timer.currentDateTime()
|
||||||
@ -198,9 +198,11 @@ namespace Opm
|
|||||||
// solve for complete report step
|
// solve for complete report step
|
||||||
solver->step(timer.currentStepLength(), state, well_state);
|
solver->step(timer.currentStepLength(), state, well_state);
|
||||||
std::ostringstream iter_msg;
|
std::ostringstream iter_msg;
|
||||||
iter_msg << "Stepsize " << (double)unit::convert::to(timer.currentStepLength(), unit::day)
|
iter_msg << "Stepsize " << (double)unit::convert::to(timer.currentStepLength(), unit::day);
|
||||||
<< " days well iterations = " << solver->wellIterations()
|
if (solver->wellIterations() != std::numeric_limits<int>::min()) {
|
||||||
<< ", non-linear iterations = " << solver->nonlinearIterations()
|
iter_msg << " days well iterations = " << solver->wellIterations() << ", ";
|
||||||
|
}
|
||||||
|
iter_msg << "non-linear iterations = " << solver->nonlinearIterations()
|
||||||
<< ", total linear iterations = " << solver->linearIterations()
|
<< ", total linear iterations = " << solver->linearIterations()
|
||||||
<< "\n";
|
<< "\n";
|
||||||
OpmLog::info(iter_msg.str());
|
OpmLog::info(iter_msg.str());
|
||||||
|
@ -526,7 +526,7 @@ namespace Opm {
|
|||||||
|
|
||||||
// -------- Mass balance equations --------
|
// -------- Mass balance equations --------
|
||||||
assembleMassBalanceEq(state);
|
assembleMassBalanceEq(state);
|
||||||
IterationReport iter_report = {false, false, 0, 0};
|
IterationReport iter_report = {false, false, 0, std::numeric_limits<int>::min()};
|
||||||
// -------- Well equations ----------
|
// -------- Well equations ----------
|
||||||
if ( ! wellsActive() ) {
|
if ( ! wellsActive() ) {
|
||||||
return iter_report;
|
return iter_report;
|
||||||
|
Loading…
Reference in New Issue
Block a user