Use More Specific Name for 'anyFailedChecks'

The function returns whether or not there were any failed checks at
the 'Standard' level.  Make the function name reflect this.
This commit is contained in:
Bård Skaflestad
2024-10-15 16:14:40 +02:00
parent 8082e72d32
commit b5305b928d
7 changed files with 60 additions and 60 deletions

View File

@@ -104,11 +104,11 @@ SatfuncConsistencyCheckManager(const std::size_t numSamplePoints,
template <typename Scalar>
bool Opm::Satfunc::PhaseChecks::SatfuncConsistencyCheckManager<Scalar>::
anyFailedChecks() const
anyFailedStandardChecks() const
{
return std::any_of(this->curves_.begin(), this->curves_.end(),
[](const auto& curve)
{ return curve.checks.anyFailedChecks(); });
{ return curve.checks.anyFailedStandardChecks(); });
}
template <typename Scalar>

View File

@@ -141,7 +141,7 @@ namespace Opm::Satfunc::PhaseChecks {
}
/// Whether or not any checks failed at the \c Standard level.
bool anyFailedChecks() const;
bool anyFailedStandardChecks() const;
/// Whether or not any checks failed at the \c Critical level.
bool anyFailedCriticalChecks() const;

View File

@@ -162,7 +162,7 @@ collectFailures(const int root,
}
template <typename Scalar>
bool Opm::SatfuncConsistencyChecks<Scalar>::anyFailedChecks() const
bool Opm::SatfuncConsistencyChecks<Scalar>::anyFailedStandardChecks() const
{
return this->anyFailedChecks(ViolationLevel::Standard);
}

View File

@@ -217,7 +217,7 @@ namespace Opm {
void collectFailures(int root, const Parallel::Communication& comm);
/// Whether or not any checks failed at the \c Standard level.
bool anyFailedChecks() const;
bool anyFailedStandardChecks() const;
/// Whether or not any checks failed at the \c Critical level.
bool anyFailedCriticalChecks() const;