From 0741131eb7badfbaebbc6d9f3ca7ea8cc70b8476 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Thu, 3 Jun 2021 00:04:00 +0200 Subject: [PATCH] [PL] Rename deactivated subdomain's function. --- ProcessLib/DeactivatedSubdomain.cpp | 2 +- ProcessLib/DeactivatedSubdomain.h | 4 +++- ProcessLib/ProcessVariable.cpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ProcessLib/DeactivatedSubdomain.cpp b/ProcessLib/DeactivatedSubdomain.cpp index 8ddd1edfbd5..5de3ba3ad05 100644 --- a/ProcessLib/DeactivatedSubdomain.cpp +++ b/ProcessLib/DeactivatedSubdomain.cpp @@ -49,7 +49,7 @@ DeactivatedSubdomain::DeactivatedSubdomain( { } -bool DeactivatedSubdomain::includesTimeOf(double const t) const +bool DeactivatedSubdomain::isInTimeSupportInterval(double const t) const { return time_interval.getSupportMin() <= t && t <= time_interval.getSupportMax(); diff --git a/ProcessLib/DeactivatedSubdomain.h b/ProcessLib/DeactivatedSubdomain.h index df1327167ba..faf562022c0 100644 --- a/ProcessLib/DeactivatedSubdomain.h +++ b/ProcessLib/DeactivatedSubdomain.h @@ -76,7 +76,9 @@ struct DeactivatedSubdomain deactivated_subdomain_meshes_, ParameterLib::Parameter<double> const* boundary_value_parameter); - bool includesTimeOf(double const t) const; + /// \returns true if the given time is included in the subdomains time + /// support interval. + bool isInTimeSupportInterval(double const t) const; /// \returns true if the point is in the deactivated part of the subdomain. /// The domain is split into two parts by a plane defined as a normal plane diff --git a/ProcessLib/ProcessVariable.cpp b/ProcessLib/ProcessVariable.cpp index b88cd1e9504..9b03c01720f 100644 --- a/ProcessLib/ProcessVariable.cpp +++ b/ProcessLib/ProcessVariable.cpp @@ -290,7 +290,7 @@ void ProcessVariable::updateDeactivatedSubdomains(double const time) auto is_active_in_subdomain = [&](std::size_t const i, DeactivatedSubdomain const& ds) -> bool { - if (!ds.includesTimeOf(time)) + if (!ds.isInTimeSupportInterval(time)) { return true; } -- GitLab