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

[PL/PV] DS; Readd special case for all active elements.

Some parts of the code expect an empty set of active elements
if all of the elements are active.
parent ff1d8c36
No related branches found
No related tags found
No related merge requests found
...@@ -286,6 +286,15 @@ void ProcessVariable::updateDeactivatedSubdomains(double const time) ...@@ -286,6 +286,15 @@ void ProcessVariable::updateDeactivatedSubdomains(double const time)
{ {
_ids_of_active_elements.clear(); _ids_of_active_elements.clear();
// If none of the deactivated subdomains is active at current time, then the
// _ids_of_active_elements remain empty.
if (std::none_of(
begin(_deactivated_subdomains), end(_deactivated_subdomains),
[&](auto const& ds) { return ds->isInTimeSupportInterval(time); }))
{
return;
}
auto const* const material_ids = MeshLib::materialIDs(_mesh); auto const* const material_ids = MeshLib::materialIDs(_mesh);
auto is_active_in_subdomain = [&](std::size_t const i, auto is_active_in_subdomain = [&](std::size_t const i,
......
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