Skip to content
Snippets Groups Projects
Commit 0741131e authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL] Rename deactivated subdomain's function.

parent 92578a09
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ DeactivatedSubdomain::DeactivatedSubdomain( ...@@ -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 && return time_interval.getSupportMin() <= t &&
t <= time_interval.getSupportMax(); t <= time_interval.getSupportMax();
......
...@@ -76,7 +76,9 @@ struct DeactivatedSubdomain ...@@ -76,7 +76,9 @@ struct DeactivatedSubdomain
deactivated_subdomain_meshes_, deactivated_subdomain_meshes_,
ParameterLib::Parameter<double> const* boundary_value_parameter); 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. /// \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 /// The domain is split into two parts by a plane defined as a normal plane
......
...@@ -290,7 +290,7 @@ void ProcessVariable::updateDeactivatedSubdomains(double const time) ...@@ -290,7 +290,7 @@ void ProcessVariable::updateDeactivatedSubdomains(double const time)
auto is_active_in_subdomain = [&](std::size_t const i, auto is_active_in_subdomain = [&](std::size_t const i,
DeactivatedSubdomain const& ds) -> bool { DeactivatedSubdomain const& ds) -> bool {
if (!ds.includesTimeOf(time)) if (!ds.isInTimeSupportInterval(time))
{ {
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment