Commit 9aa87681 authored by Dmitry Yu. Naumov's avatar Dmitry Yu. 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
Pipeline #5053 passed with stages
in 25 minutes and 20 seconds
......@@ -286,6 +286,15 @@ void ProcessVariable::updateDeactivatedSubdomains(double const time)
{
_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 is_active_in_subdomain = [&](std::size_t const i,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment