make toString() method as static.

This commit is contained in:
Liu Ming
2016-05-24 09:07:28 +08:00
parent ca030efeb9
commit 7d0833f2d2
3 changed files with 8 additions and 8 deletions

View File

@@ -345,7 +345,7 @@ namespace Opm
mode);
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 = " + std::to_string(target_rate) + "\n"
+ "rate = " + std::to_string(my_rate));
@@ -378,7 +378,7 @@ namespace Opm
child_phases_summed.surf_prod_rates,
mode);
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 = " + std::to_string(target_rate) + '\n'
+ "rate = " + std::to_string(my_rate));