]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add documentation for initialising Trilinos AMG constant modes 7862/head
authorJean-Paul Pelteret <jppelteret@gmail.com>
Tue, 26 Mar 2019 16:04:28 +0000 (17:04 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Tue, 26 Mar 2019 16:04:28 +0000 (17:04 +0100)
include/deal.II/lac/trilinos_precondition.h

index aba329ce8a6ec1c6791d89e03c94f68bf694bafc..3b5ac1984a2a074af895c3f4fec542776194a074 100644 (file)
@@ -1369,6 +1369,25 @@ namespace TrilinosWrappers
       /**
        * Constructor. By default, we pretend to work on elliptic problems with
        * linear finite elements on a scalar equation.
+       *
+       * Making use of the DoFTools::extract_constant_modes() function, the
+       * @p constant_modes vector can be initialized for a given field in the
+       * following manner:
+       *
+       * @code
+       *   #include <deal.II/dofs/dof_tools.h>
+       *   ...
+       *
+       *   DoFHandlerType<...> dof_handler;
+       *   FEValuesExtractors::Type... field_extractor;
+       *   ...
+       *
+       *   TrilinosWrappers::PreconditionAMG::AdditionalData data;
+       *   DoFTools::extract_constant_modes(
+       *     dof_handler,
+       *     dof_handler.get_fe_collection().component_mask(field_extractor),
+       *     data.constant_modes );
+       * @endcode
        */
       AdditionalData(const bool         elliptic              = true,
                      const bool         higher_order_elements = false,

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.