find_vector_in_mf(const VectorType &vec,
const bool check_global_compatibility = true) const
{
- unsigned int mf_component = numbers::invalid_unsigned_int;
(void)check_global_compatibility;
for (unsigned int c = 0; c < matrix_free.n_components(); ++c)
if (
# endif
vec.get_partitioner()->is_compatible(
*matrix_free.get_dof_info(c).vector_partitioner))
- {
- mf_component = c;
- break;
- }
- return mf_component;
+ return c;
+
+ Assert(false,
+ ExcNotImplemented("Could not find partitioner that fits vector"));
+
+ return numbers::invalid_unsigned_int;
}
# ifdef DEAL_II_WITH_MPI
const unsigned int mf_component = find_vector_in_mf(vec);
- Assert(mf_component != numbers::invalid_unsigned_int,
- ExcNotImplemented());
-
const auto &part = get_partitioner(mf_component);
if (part.n_ghost_indices() == 0 && part.n_import_indices() == 0)
const unsigned int mf_component = find_vector_in_mf(vec);
- Assert(mf_component != numbers::invalid_unsigned_int,
- ExcNotImplemented());
-
const auto &part = get_partitioner(mf_component);
if (part.n_ghost_indices() != 0 || part.n_import_indices() != 0)
{
# ifdef DEAL_II_WITH_MPI
const unsigned int mf_component = find_vector_in_mf(vec);
- Assert(mf_component != numbers::invalid_unsigned_int,
- ExcNotImplemented());
const auto &part = get_partitioner(mf_component);
const unsigned int mf_component = find_vector_in_mf(vec);
- Assert(mf_component != numbers::invalid_unsigned_int,
- ExcNotImplemented());
-
const auto &part = get_partitioner(mf_component);
if (part.n_ghost_indices() == 0 && part.n_import_indices() == 0)