Ifpack2 Templated Preconditioning Package  Version 1.0
Namespaces | Functions
Ifpack2_Details_registerLinearSolverFactory.hpp File Reference

Declaration of Ifpack2::Details::registerLinearSolverFactory. More...

#include "Ifpack2_ConfigDefs.hpp"

Go to the source code of this file.

Namespaces

 Ifpack2
 Preconditioners and smoothers for Tpetra sparse matrices.
 

Functions

void Ifpack2::Details::registerLinearSolverFactory ()
 Register Ifpack2's LinearSolverFactory with the central repository, for all enabled combinations of template parameters. More...
 

Detailed Description

Declaration of Ifpack2::Details::registerLinearSolverFactory.

Author
Mark Hoemmen

Function Documentation

◆ registerLinearSolverFactory()

void Ifpack2::Details::registerLinearSolverFactory ( )

Register Ifpack2's LinearSolverFactory with the central repository, for all enabled combinations of template parameters.

For all combinations of template parameters that Ifpack2 enables, register Ifpack2::Details::LinearSolverFactory with the central repository. This will let any clients of Trilinos::Details::getLinearSolver create Ifpack2 solvers with those template parameters.

You may call this function multiple times; it will only have an effect the first time (it is idempotent).

Users do not normally have to call this function, but see Bug

  1. Ifpack2 tries its best to register its LinearSolverFactory automatically with the central repository, for all enabled template parameter combinations. You may have to call this function if your C++ compiler does not support the necessary features for automatic registration to work, or if Trilinos was configured with automatic registration turned off (Trilinos_ENABLE_LINEAR_SOLVER_FACTORY_REGISTRATION was set to OFF). It never hurts to invoke this function manually, though, since it is idempotent.

If you need to register Ifpack2's LinearSolverFactory for a set of template parameters that is not enabled, see Ifpack2_Details_LinearSolverFactory.hpp (in this directory).