fixed: do not use Opm:: prefix when inside namespace Opm

This commit is contained in:
Arne Morten Kvarving
2021-05-05 11:59:18 +02:00
parent 6b02180ca3
commit a4c0af09d9
66 changed files with 1017 additions and 1016 deletions
+3 -3
View File
@@ -195,7 +195,7 @@ public:
tmpError2 *= dofVolume;
}
this->error_ = Opm::max(std::abs(tmpError), this->error_);
this->error_ = max(std::abs(tmpError), this->error_);
if (std::abs(tmpError) > this->tolerance_)
cnvViolated = true;
@@ -232,14 +232,14 @@ public:
// make sure that the error never grows beyond the maximum
// allowed one
if (this->error_ > newtonMaxError)
throw Opm::NumericalIssue("Newton: Error "+std::to_string(double(this->error_))
throw NumericalIssue("Newton: Error "+std::to_string(double(this->error_))
+" is larger than maximum allowed error of "
+std::to_string(double(newtonMaxError)));
// make sure that the error never grows beyond the maximum
// allowed one
if (errorSum_ > newtonMaxError)
throw Opm::NumericalIssue("Newton: Sum of the error "+std::to_string(double(errorSum_))
throw NumericalIssue("Newton: Sum of the error "+std::to_string(double(errorSum_))
+" is larger than maximum allowed error of "
+std::to_string(double(newtonMaxError)));
}