Add logging in ebos

With this .PRT and .DBG files are created also for ebos
This commit is contained in:
Tor Harald Sandve
2019-10-07 14:51:23 +02:00
parent 4ddb8e8d56
commit 86ef30950d
12 changed files with 270 additions and 18 deletions

View File

@@ -30,6 +30,8 @@
#include <opm/models/blackoil/blackoilnewtonmethod.hh>
#include <opm/models/utils/signum.hh>
#include <opm/common/OpmLog/OpmLog.hpp>
#include <opm/material/common/Unused.hpp>
@@ -227,6 +229,16 @@ public:
+std::to_string(double(newtonMaxError)));
}
void endIteration_(SolutionVector& nextSolution,
const SolutionVector& currentSolution)
{
ParentType::endIteration_(nextSolution, currentSolution);
OpmLog::debug( "Newton iteration " + std::to_string(this->numIterations_) + ""
+ " error: " + std::to_string(double(this->error_))
+ this->endIterMsg().str());
this->endIterMsg().str("");
}
private:
Scalar errorPvFraction_;
Scalar errorSum_;