Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_SGPreconditionerFactory.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Stokhos Package
4 //
5 // Copyright 2009 NTESS and the Stokhos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef STOKHOS_SG_PRECONDITIONER_FACTORY_HPP
11 #define STOKHOS_SG_PRECONDITIONER_FACTORY_HPP
12 
13 #include "Teuchos_RCP.hpp"
16 #include "EpetraExt_MultiComm.h"
19 #include "Epetra_Map.h"
21 
22 namespace Stokhos {
23 
26  public:
27 
31 
34 
36  virtual bool isPrecSupported() const;
37 
40  build(
42  const Teuchos::RCP<const Stokhos::OrthogPolyBasis<int,double> >& sg_basis,
44  const Teuchos::RCP<const Epetra_Map>& base_map,
45  const Teuchos::RCP<const Epetra_Map>& sg_map);
46 
47  protected:
48 
52 
53  private:
54 
57 
60 
61  protected:
62 
65 
67  std::string prec_method;
68 
69  }; // class SGPreconditionerFactory
70 
71 } // namespace Stokhos
72 
73 #endif // STOKHOS_SG_PRECONDITIONER_FACTORY_HPP
SGPreconditionerFactory & operator=(const SGPreconditionerFactory &)
Private to prohibit copying.
virtual bool isPrecSupported() const
Return whether a preconditioner will be supported.
SGPreconditionerFactory(const Teuchos::RCP< Teuchos::ParameterList > &params)
Constructor.
virtual Teuchos::RCP< Stokhos::SGPreconditioner > build(const Teuchos::RCP< const EpetraExt::MultiComm > &sg_comm, const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &sg_basis, const Teuchos::RCP< const Stokhos::EpetraSparse3Tensor > &epetraCijk, const Teuchos::RCP< const Epetra_Map > &base_map, const Teuchos::RCP< const Epetra_Map > &sg_map)
Build preconditioner operator.
Factory for generating stochastic Galerkin preconditioners.
Teuchos::RCP< Teuchos::ParameterList > params
Preconditioner parameters.
Teuchos::RCP< Stokhos::AbstractPreconditionerFactory > buildMeanPreconditionerFactory()
Build preconditioner factory for mean.
std::string prec_method
Preconditioner method.