MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_Details_registerLinearSolverFactory.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// MueLu: A package for multigrid based preconditioning
4
//
5
// Copyright 2012 NTESS and the MueLu contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
13
14
#ifndef MUELU_DETAILS_REGISTERLINEARSOLVERFACTORY_HPP
15
#define MUELU_DETAILS_REGISTERLINEARSOLVERFACTORY_HPP
16
17
#include "MueLu_config.hpp"
18
19
namespace
MueLu
{
20
namespace
Details
{
21
48
void
registerLinearSolverFactory
();
49
50
}
// namespace Details
51
}
// namespace MueLu
52
53
namespace
{
// (anonymous)
54
55
// \class RegisterLinearSolverFactory
56
// \brief Register MueLu's solver factory/ies with the central registry.
57
//
58
// \warning NOT FOR USERS. ONLY FOR USE IN THIS FILE.
59
//
60
// Invoke this class' constructor to register MueLu's solver
61
// factory/ies with the central registry, for all template paramete
62
// combinations that MueLu enabled. You need not keep the instance
63
// of the class around; the constructor has a side effect if it
64
// returns. (This is the C++ way of doing
65
// <tt>__attribute__((constructor))</tt>, without actually requiring
66
// the syntax extension.)
67
class
RegisterLinearSolverFactory {
68
public
:
69
RegisterLinearSolverFactory() {
70
MueLu::Details::registerLinearSolverFactory
();
71
}
72
};
73
74
// Creating an instance of RegisterLinearSolverFactory invokes its
75
// constructor, which has the side effect of calling
76
// MueLu::Details::registerLinearSolverFactory().
77
RegisterLinearSolverFactory registerIt;
78
79
}
// namespace
80
81
#endif
// MUELU_DETAILS_REGISTERLINEARSOLVERFACTORY_HPP
MueLu::Details
Definition
MueLu_CoalesceDropFactory_def.hpp:56
MueLu::Details::registerLinearSolverFactory
void registerLinearSolverFactory()
Register MueLu's LinearSolverFactory with the central repository, for all enabled combinations of tem...
MueLu
Namespace for MueLu classes and methods.
Definition
MueLu_BrickAggregationFactory_decl.hpp:42
adapters
linear_solver_factory
MueLu_Details_registerLinearSolverFactory.hpp
Generated by
1.17.0