MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_CoupledRBMFactory_decl.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
10#ifndef MUELU_COUPLEDRBMFACTORY_DECL_HPP
11#define MUELU_COUPLEDRBMFACTORY_DECL_HPP
12
13#include <Xpetra_Matrix_fwd.hpp>
14#include <Xpetra_MultiVectorFactory_fwd.hpp>
15#include <Xpetra_VectorFactory_fwd.hpp>
16
17#include "MueLu_ConfigDefs.hpp"
20
21#include "MueLu_Level_fwd.hpp"
22
23namespace MueLu {
24
34template <class Scalar = DefaultScalar,
37 class Node = DefaultNode>
39#undef MUELU_COUPLEDRBMFACTORY_SHORT
41
42 public:
44
45
46 CoupledRBMFactory(const int numPDEs)
47 : nspName_("Nullspace")
48 , numPDEs_(numPDEs) {}
50 CoupledRBMFactory(const std::string& nspName = "Nullspace")
51 : nspName_(nspName)
52 , numPDEs_(3) {}
53
55 virtual ~CoupledRBMFactory();
56
58
60
61
67 void DeclareInput(Level& currentLevel) const;
68
70
72
73
75 void Build(Level& currentLevel) const;
76
77 void BuildRBM(RCP<Matrix>& A, RCP<MultiVector>& Coords, RCP<MultiVector>& nullspace) const;
78
80 void setNumPDEs(int numPDEs) {
81 numPDEs_ = numPDEs;
82 }
83
84 void setLastAcousticDOF(int lastDOF) {
85 lastAcousticDOF_ = lastDOF;
86 }
87
88 private:
90 std::string nspName_;
91
93
95
96}; // class CoupledRBMFactory
97
98} // namespace MueLu
99
100#define MUELU_COUPLEDRBMFACTORY_SHORT
101#endif // MUELU_COUPLEDRBMFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Nullspace Factory for coupled acoustic-elastic problems.
std::string nspName_
name of nullspace vector on finest level
void BuildRBM(RCP< Matrix > &A, RCP< MultiVector > &Coords, RCP< MultiVector > &nullspace) const
CoupledRBMFactory(const int numPDEs)
Constructor.
void Build(Level &currentLevel) const
Build an object with this factory.
CoupledRBMFactory(const std::string &nspName="Nullspace")
Constructor.
void DeclareInput(Level &currentLevel) const
Specifies the data that this class needs, and the factories that generate that data.
Class that holds all level-specific information.
Base class for factories that use one level (currentLevel).
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar