]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix initialize_dof_vector_t.
authorDavid Wells <drwells@email.unc.edu>
Thu, 3 Feb 2022 15:00:00 +0000 (10:00 -0500)
committerDavid Wells <drwells@email.unc.edu>
Thu, 3 Feb 2022 16:28:03 +0000 (11:28 -0500)
The correct function requires a vector reference input argument.

include/deal.II/lac/la_parallel_vector.h

index 7c37a6588e78cdd2b838014da4fadc29dbc080e9..15988bdc09f13dcffe764593c0548656bd38f16b 100644 (file)
@@ -1918,7 +1918,8 @@ namespace internal
       // void T::initialize_dof_vector(VectorType v)
       template <typename T>
       using initialize_dof_vector_t =
-        decltype(std::declval<T>().initialize_dof_vector());
+        decltype(std::declval<T>().initialize_dof_vector(
+          std::declval<LinearAlgebra::distributed::Vector<Number> &>()));
 
       template <typename T>
       static constexpr bool has_initialize_dof_vector =

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.