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

[PL/DS] Simplify return statement.

parent 50950312
No related branches found
No related tags found
No related merge requests found
...@@ -313,14 +313,8 @@ void ProcessVariable::updateDeactivatedSubdomains(double const time) ...@@ -313,14 +313,8 @@ void ProcessVariable::updateDeactivatedSubdomains(double const time)
auto is_active_in_subdomain = [&](std::size_t const element_id, auto is_active_in_subdomain = [&](std::size_t const element_id,
DeactivatedSubdomain const& ds) -> bool DeactivatedSubdomain const& ds) -> bool
{ {
if (!ds.isInTimeSupportInterval(time)) return (!ds.isInTimeSupportInterval(time)) ||
{ !ds.isDeactivated(*_mesh.getElement(element_id), time);
return true;
}
auto const& e = *_mesh.getElement(element_id);
auto ret = !ds.isDeactivated(e, time);
return ret;
}; };
auto const number_of_elements = _mesh.getNumberOfElements(); auto const number_of_elements = _mesh.getNumberOfElements();
......
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