Skip to content
Snippets Groups Projects
Commit f06a37ff authored by Andreas Lauser's avatar Andreas Lauser
Browse files

newton method: make messages more precise

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6077 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent b62d36c2
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ protected:
uLastIter = uCurrentIter;
if (ctl.verbose()) {
std::cout << "Assembling global jacobian";
std::cout << "Assemble: r(x^k) = dS/dt + div F - q; M = grad r";
std::cout.flush();
}
......@@ -155,14 +155,22 @@ protected:
// linear solve
///////////////
// Clear the current line using an ansi escape
// sequence. for an explanation see
// http://en.wikipedia.org/wiki/ANSI_escape_code
const char clearRemainingLine[] = { 0x1b, '[', 'K', 0 };
if (ctl.verbose()) {
std::cout << "\rSolve: M deltax^k = r";
std::cout << clearRemainingLine;
std::cout.flush();
}
// solve the resulting linear equation system
solveTimer.start();
if (ctl.verbose()) {
std::cout << "\rSolve Mx = r";
// Clear the current line using an ansi escape
// sequence. for an explanation see
// http://en.wikipedia.org/wiki/ANSI_escape_code
const char clearRemainingLine[] = { 0x1b, '[', 'K', 0 };
std::cout << "\rUpdate: x^(k+1) = x^k - deltax^k";
std::cout << clearRemainingLine;
std::cout.flush();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment