mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
make toString() method as static.
This commit is contained in:
@@ -26,9 +26,9 @@ namespace Opm
|
|||||||
};
|
};
|
||||||
|
|
||||||
InjectionSpecification();
|
InjectionSpecification();
|
||||||
std::string toString(const ControlMode& mode);
|
static std::string toString(const ControlMode& mode);
|
||||||
std::string toString(const InjectorType& type);
|
static std::string toString(const InjectorType& type);
|
||||||
std::string toString(const GuideRateType& type);
|
static std::string toString(const GuideRateType& type);
|
||||||
InjectorType injector_type_;
|
InjectorType injector_type_;
|
||||||
ControlMode control_mode_;
|
ControlMode control_mode_;
|
||||||
double surface_flow_max_rate_;
|
double surface_flow_max_rate_;
|
||||||
|
@@ -26,9 +26,9 @@ namespace Opm
|
|||||||
};
|
};
|
||||||
|
|
||||||
ProductionSpecification();
|
ProductionSpecification();
|
||||||
std::string toString(const ControlMode& mode);
|
static std::string toString(const ControlMode& mode);
|
||||||
std::string toString(const Procedure& type);
|
static std::string toString(const Procedure& type);
|
||||||
std::string toString(const GuideRateType& type);
|
static std::string toString(const GuideRateType& type);
|
||||||
|
|
||||||
ControlMode control_mode_;
|
ControlMode control_mode_;
|
||||||
Procedure procedure_;
|
Procedure procedure_;
|
||||||
|
@@ -345,7 +345,7 @@ namespace Opm
|
|||||||
mode);
|
mode);
|
||||||
|
|
||||||
if (my_rate > target_rate) {
|
if (my_rate > target_rate) {
|
||||||
OpmLog::warning("Group " + injSpec().toString(mode)
|
OpmLog::warning("Group " + InjectionSpecification::toString(mode)
|
||||||
+ " target not met for group " + name() + "\n"
|
+ " target not met for group " + name() + "\n"
|
||||||
+ "target = " + std::to_string(target_rate) + "\n"
|
+ "target = " + std::to_string(target_rate) + "\n"
|
||||||
+ "rate = " + std::to_string(my_rate));
|
+ "rate = " + std::to_string(my_rate));
|
||||||
@@ -378,7 +378,7 @@ namespace Opm
|
|||||||
child_phases_summed.surf_prod_rates,
|
child_phases_summed.surf_prod_rates,
|
||||||
mode);
|
mode);
|
||||||
if (std::fabs(my_rate) > target_rate) {
|
if (std::fabs(my_rate) > target_rate) {
|
||||||
OpmLog::warning("Group" + prodSpec().toString(mode)
|
OpmLog::warning("Group" + ProductionSpecification::toString(mode)
|
||||||
+ " target not met for group " + name() + "\n"
|
+ " target not met for group " + name() + "\n"
|
||||||
+ "target = " + std::to_string(target_rate) + '\n'
|
+ "target = " + std::to_string(target_rate) + '\n'
|
||||||
+ "rate = " + std::to_string(my_rate));
|
+ "rate = " + std::to_string(my_rate));
|
||||||
|
Reference in New Issue
Block a user