mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 17:02:02 -05:00
log the message to OpmLog.
This commit is contained in:
1 parent
ec06eebc06
commit
6256199176
1 file changed
+2
-1
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <opm/common/OpmLog/OpmLog.hpp>
|
||||||
#include <opm/polymer/PolymerInflow.hpp>
|
#include <opm/polymer/PolymerInflow.hpp>
|
||||||
#include <opm/core/wells.h>
|
#include <opm/core/wells.h>
|
||||||
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
||||||
@@ -55,7 +56,7 @@ namespace Opm
|
|||||||
if (step_start + eps >= stime_ && step_end - eps <= etime_) {
|
if (step_start + eps >= stime_ && step_end - eps <= etime_) {
|
||||||
std::fill(poly_inflow_c.begin(), poly_inflow_c.end(), amount_);
|
std::fill(poly_inflow_c.begin(), poly_inflow_c.end(), amount_);
|
||||||
} else if (step_start + eps <= etime_ && step_end - eps >= stime_) {
|
} else if (step_start + eps <= etime_ && step_end - eps >= stime_) {
|
||||||
OPM_MESSAGE("Warning: polymer injection set to change inside timestep. Using value at start of step.");
|
OpmLog::warning("polymer injection set to change inside timestep. Using value at start of step.");
|
||||||
std::fill(poly_inflow_c.begin(), poly_inflow_c.end(), amount_);
|
std::fill(poly_inflow_c.begin(), poly_inflow_c.end(), amount_);
|
||||||
} else {
|
} else {
|
||||||
std::fill(poly_inflow_c.begin(), poly_inflow_c.end(), 0.0);
|
std::fill(poly_inflow_c.begin(), poly_inflow_c.end(), 0.0);
|
||||||
|
|||||||
Reference in new issue
Block a user