mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
EclTracerModel: replace cout with OpmLog
This commit is contained in:
parent
b06f6c8ff6
commit
d5e28fe768
@ -30,12 +30,13 @@
|
|||||||
|
|
||||||
#include <ebos/eclgenerictracermodel.hh>
|
#include <ebos/eclgenerictracermodel.hh>
|
||||||
|
|
||||||
|
#include <opm/common/OpmLog/OpmLog.hpp>
|
||||||
|
|
||||||
#include <opm/models/utils/propertysystem.hh>
|
#include <opm/models/utils/propertysystem.hh>
|
||||||
|
|
||||||
#include <opm/simulators/utils/VectorVectorDataHandle.hpp>
|
#include <opm/simulators/utils/VectorVectorDataHandle.hpp>
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <iostream>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -492,8 +493,9 @@ protected:
|
|||||||
dx[tIdx] = 0.0;
|
dx[tIdx] = 0.0;
|
||||||
|
|
||||||
bool converged = this->linearSolveBatchwise_(*tr.mat, dx, tr.residual_);
|
bool converged = this->linearSolveBatchwise_(*tr.mat, dx, tr.residual_);
|
||||||
if (!converged)
|
if (!converged) {
|
||||||
std::cout << "### Tracer model: Warning, linear solver did not converge. ###" << std::endl;
|
OpmLog::warning("### Tracer model: Linear solver did not converge. ###");
|
||||||
|
}
|
||||||
|
|
||||||
for (int tIdx = 0; tIdx < tr.numTracer(); ++tIdx) {
|
for (int tIdx = 0; tIdx < tr.numTracer(); ++tIdx) {
|
||||||
tr.concentration_[tIdx] -= dx[tIdx];
|
tr.concentration_[tIdx] -= dx[tIdx];
|
||||||
|
Loading…
Reference in New Issue
Block a user