write residuals to PRT file.

This commit is contained in:
Liu Ming
2016-06-21 09:27:19 +08:00
parent d13d21231d
commit 66b8a2379b

View File

@@ -1044,9 +1044,7 @@ namespace detail {
if (converged) { if (converged) {
well_iters = it; well_iters = it;
if ( terminal_output_ ) { OpmLog::note("well converged iter: " + std::to_string(it));
OpmLog::info("well converged iter: " + std::to_string(it));
}
const int nw = wells().number_of_wells; const int nw = wells().number_of_wells;
{ {
// We will set the bhp primary variable to the new ones, // We will set the bhp primary variable to the new ones,
@@ -1842,7 +1840,7 @@ namespace detail {
msg += " W-FLUX(" + materialName(idx).substr(0, 1) + ")"; msg += " W-FLUX(" + materialName(idx).substr(0, 1) + ")";
} }
// std::cout << " WELL-CONT "; // std::cout << " WELL-CONT ";
OpmLog::info(msg); OpmLog::note(msg);
} }
std::ostringstream ss; std::ostringstream ss;
const std::streamsize oprec = ss.precision(3); const std::streamsize oprec = ss.precision(3);
@@ -1860,7 +1858,7 @@ namespace detail {
// std::cout << std::setw(11) << residualWell; // std::cout << std::setw(11) << residualWell;
ss.precision(oprec); ss.precision(oprec);
ss.flags(oflags); ss.flags(oflags);
OpmLog::info(ss.str()); OpmLog::note(ss.str());
} }
for (int idx = 0; idx < nm; ++idx) { for (int idx = 0; idx < nm; ++idx) {
@@ -1948,7 +1946,7 @@ namespace detail {
for (int idx = 0; idx < np; ++idx) { for (int idx = 0; idx < np; ++idx) {
msg += " W-FLUX(" + materialName(idx).substr(0, 1) + ")"; msg += " W-FLUX(" + materialName(idx).substr(0, 1) + ")";
} }
OpmLog::info(msg); OpmLog::note(msg);
} }
std::ostringstream ss; std::ostringstream ss;
const std::streamsize oprec = ss.precision(3); const std::streamsize oprec = ss.precision(3);
@@ -1959,7 +1957,7 @@ namespace detail {
} }
ss.precision(oprec); ss.precision(oprec);
ss.flags(oflags); ss.flags(oflags);
OpmLog::info(ss.str()); OpmLog::note(ss.str());
} }
return converged; return converged;
} }