diff --git a/ProcessLib/DeactivatedSubdomain.cpp b/ProcessLib/DeactivatedSubdomain.cpp index 8ddd1edfbd5213fe41d76574281f19264444245c..5de3ba3ad05c8a846c5f54c169b6ff54089c33f3 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 df1327167ba1d13c1af810b7dfb0db3a201bf628..faf562022c07084651a1f775527174fd4f6be642 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 b88cd1e95046bb838f733bbef377ec56c4a4052e..9b03c01720fd2e21ecdcba2b9f97ff6c0d135943 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; }