46 #ifndef MUELU_MAXWELL_UTILS_DECL_HPP 47 #define MUELU_MAXWELL_UTILS_DECL_HPP 52 #include "Xpetra_Map_fwd.hpp" 53 #include "Xpetra_Matrix_fwd.hpp" 54 #include "Xpetra_MatrixFactory_fwd.hpp" 55 #include "Xpetra_MultiVectorFactory_fwd.hpp" 56 #include "Xpetra_VectorFactory_fwd.hpp" 57 #include "Xpetra_CrsMatrixWrap_fwd.hpp" 79 #undef MUELU_MAXWELL_UTILS_SHORT 83 typedef typename Teuchos::ScalarTraits<Scalar>::magnitudeType
magnitudeType;
89 RCP<Matrix> & D0_Matrix,
92 Kokkos::View<bool*, typename Node::device_type> & BCrowsKokkos,
93 Kokkos::View<bool*, typename Node::device_type> & BCcolsKokkos,
94 Kokkos::View<bool*, typename Node::device_type> & BCdomainKokkos,
97 Teuchos::ArrayRCP<bool> & BCrows,
98 Teuchos::ArrayRCP<bool> & BCcols,
99 Teuchos::ArrayRCP<bool> & BCdomain,
100 bool & allEdgesBoundary,
101 bool & allNodesBoundary);
105 RCP<Matrix> & D0_Matrix,
106 RCP<Matrix> & SM_Matrix,
107 RCP<Matrix> & M1_Matrix,
108 RCP<Matrix> & Ms_Matrix);
111 RCP<Matrix> & D0_Matrix,
112 RCP<Matrix> & SM_Matrix) {
118 static void setMatvecParams(Matrix& A, RCP<ParameterList> matvecParams);
122 static RCP<Xpetra::Matrix<Scalar,LocalOrdinal,GlobalOrdinal,Node> >
123 PtAPWrapper(RCP<Matrix>& A,RCP<Matrix>& P, Teuchos::ParameterList ¶ms, std::string & label);
129 #define MUELU_MAXWELL_UTILS_SHORT 130 #endif // MUELU_MAXWELL_UTILS_DECL_HPP static void removeExplicitZeros(Teuchos::ParameterList ¶meterList, RCP< Matrix > &D0_Matrix, RCP< Matrix > &SM_Matrix)
MueLu::DefaultLocalOrdinal LocalOrdinal
static void removeExplicitZeros(Teuchos::ParameterList ¶meterList, RCP< Matrix > &D0_Matrix, RCP< Matrix > &SM_Matrix, RCP< Matrix > &M1_Matrix, RCP< Matrix > &Ms_Matrix)
Remove explicit zeros.
static void detectBoundaryConditionsSM(RCP< Matrix > &SM_Matrix, RCP< Matrix > &D0_Matrix, magnitudeType rowSumTol, bool useKokkos_, Kokkos::View< bool *, typename Node::device_type > &BCrowsKokkos, Kokkos::View< bool *, typename Node::device_type > &BCcolsKokkos, Kokkos::View< bool *, typename Node::device_type > &BCdomainKokkos, int &BCedges, int &BCnodes, Teuchos::ArrayRCP< bool > &BCrows, Teuchos::ArrayRCP< bool > &BCcols, Teuchos::ArrayRCP< bool > &BCdomain, bool &allEdgesBoundary, bool &allNodesBoundary)
Detect Dirichlet boundary conditions.
Namespace for MueLu classes and methods.
Verbose class for MueLu classes.
Utility functions for Maxwell.
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Teuchos::ScalarTraits< Scalar >::magnitudeType magnitudeType
static void setMatvecParams(Matrix &A, RCP< ParameterList > matvecParams)
Sets matvec params on a matrix.
static RCP< Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > PtAPWrapper(RCP< Matrix > &A, RCP< Matrix > &P, Teuchos::ParameterList ¶ms, std::string &label)