MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_GeometricInterpolationPFactory_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_GEOMETRICINTERPOLATIONPFACTORY_DECL_HPP
11 #define MUELU_GEOMETRICINTERPOLATIONPFACTORY_DECL_HPP
12 
13 // Teuchos includes for dense linear algebra
17 
18 #include "Xpetra_CrsGraph_fwd.hpp"
19 
20 #include "MueLu_PFactory.hpp"
21 #include "MueLu_Level_fwd.hpp"
22 #include "MueLu_Aggregates_fwd.hpp"
23 
24 namespace MueLu {
25 
26 template <class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node>
28 #undef MUELU_GEOMETRICINTERPOLATIONPFACTORY_SHORT
29 #include "MueLu_UseShortNames.hpp"
30 
31  public:
32  // Declare useful types
35 
37 
38 
41 
45 
47 
49 
50 
51  void DeclareInput(Level& fineLevel, Level& coarseLevel) const;
52 
54 
56 
57 
58  void Build(Level& fineLevel, Level& coarseLevel) const;
59  void BuildP(Level& fineLevel, Level& coarseLevel) const;
60 
62 
63  private:
64  void BuildConstantP(RCP<Matrix>& P, RCP<const CrsGraph>& prolongatorGraph, RCP<Matrix>& A) const;
65  void BuildLinearP(Level& coarseLevel,
66  RCP<Matrix>& A, RCP<const CrsGraph>& prolongatorGraph,
67  RCP<realvaluedmultivector_type>& fineCoordinates,
68  RCP<realvaluedmultivector_type>& ghostCoordinates,
69  const int numDimensions, const bool keepD2,
70  RCP<Matrix>& P) const;
71  void ComputeLinearInterpolationStencil(const int numDimensions, const int numInterpolationPoints,
72  const Array<Array<real_type> > coord,
73  Array<real_type>& stencil) const;
74  void GetInterpolationFunctions(const LO numDimensions,
75  const Teuchos::SerialDenseVector<LO, real_type> parametricCoordinates,
76  real_type functions[4][8]) const;
77 
78 }; // class GeometricInterpolationPFactory
79 
80 } // namespace MueLu
81 
82 #define MUELU_GEOMETRICINTERPOLATIONPFACTORY_SHORT
83 #endif // MUELU_GEOMETRICINTERPOLATIONPFACTORY_DECL_HPP
void BuildLinearP(Level &coarseLevel, RCP< Matrix > &A, RCP< const CrsGraph > &prolongatorGraph, RCP< realvaluedmultivector_type > &fineCoordinates, RCP< realvaluedmultivector_type > &ghostCoordinates, const int numDimensions, const bool keepD2, RCP< Matrix > &P) const
LocalOrdinal LO
void GetInterpolationFunctions(const LO numDimensions, const Teuchos::SerialDenseVector< LO, real_type > parametricCoordinates, real_type functions[4][8]) const
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
Class that holds all level-specific information.
Definition: MueLu_Level.hpp:63
void ComputeLinearInterpolationStencil(const int numDimensions, const int numInterpolationPoints, const Array< Array< real_type > > coord, Array< real_type > &stencil) const
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Factory that provides an interface for a concrete implementation of a prolongation operator...
void BuildConstantP(RCP< Matrix > &P, RCP< const CrsGraph > &prolongatorGraph, RCP< Matrix > &A) const
typename Teuchos::ScalarTraits< SC >::coordinateType real_type
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.