45 #ifndef AMESOS2_STRUMPACK_DECL_HPP 46 #define AMESOS2_STRUMPACK_DECL_HPP 49 #include "Amesos2_SolverCore.hpp" 52 #include "StrumpackSparseSolverMPIDist.hpp" 54 #include "StrumpackSparseSolver.hpp" 69 template <
class Matrix,
84 typedef Matrix matrix_type;
85 typedef Vector vector_type;
88 typedef typename strum_type::scalar_type scalar_type;
89 typedef typename strum_type::local_ordinal_type local_ordinal_type;
90 typedef typename strum_type::global_ordinal_type global_ordinal_type;
91 typedef typename strum_type::global_size_type global_size_type;
92 typedef typename strum_type::node_type node_type;
104 Teuchos::RCP<Vector> X,
105 Teuchos::RCP<const Vector> B);
153 int
solve_impl(const Teuchos::Ptr<MultiVecAdapter<Vector> > X,
154 const Teuchos::Ptr<const MultiVecAdapter<Vector> > B) const;
199 const Teuchos::RCP<Teuchos::ParameterList> & parameterList );
228 Teuchos::RCP<strumpack::StrumpackSparseSolverMPIDist<scalar_type,global_ordinal_type>> sp_;
230 Teuchos::RCP<strumpack::StrumpackSparseSolver<scalar_type,global_ordinal_type>> sp_;
238 Teuchos::Array<global_ordinal_type> colind_;
240 Teuchos::Array<global_ordinal_type> rowptr_;
242 mutable Teuchos::Array<scalar_type> bvals_;
244 mutable Teuchos::Array<scalar_type> xvals_;
247 Teuchos::RCP<const Tpetra::Map<local_ordinal_type,
250 node_type> > strumpack_rowmap_;
258 #if defined(HAVE_TEUCHOS_COMPLEX) && !defined(__clang__) 259 typedef Meta::make_list4<float, double, std::complex<float>, std::complex<double>> supported_scalars;
261 typedef Meta::make_list2<float, double> supported_scalars;
267 #endif // AMESOS2_STRUMPACK_DECL_HPP Amesos2::SolverCore: A templated interface for interaction with third-party direct sparse solvers...
Definition: Amesos2_SolverCore_decl.hpp:105
Teuchos::Array< scalar_type > nzvals_
Stores the values of the nonzero entries for STRUMPACK.
Definition: Amesos2_STRUMPACK_decl.hpp:236
int preOrdering_impl()
Performs pre-ordering on the matrix to increase efficiency.
Definition: Amesos2_STRUMPACK_def.hpp:135
int solve_impl(const Teuchos::Ptr< MultiVecAdapter< Vector > > X, const Teuchos::Ptr< const MultiVecAdapter< Vector > > B) const
STRUMPACK specific solve.
Definition: Amesos2_STRUMPACK_def.hpp:202
void setParameters_impl(const Teuchos::RCP< Teuchos::ParameterList > ¶meterList)
Definition: Amesos2_STRUMPACK_def.hpp:319
int symbolicFactorization_impl()
Perform symbolic factorization of the matrix using STRUMPACK.
Definition: Amesos2_STRUMPACK_def.hpp:155
Provides traits about solvers.
Definition: Amesos2_SolverTraits.hpp:71
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters_impl() const
Definition: Amesos2_STRUMPACK_def.hpp:376
Definition: Amesos2_AbstractConcreteMatrixAdapter.hpp:48
bool loadA_impl(EPhase current_phase)
Reads matrix data into internal solver structures.
Definition: Amesos2_STRUMPACK_def.hpp:489
Interface to Amesos2 solver objects.
Definition: Amesos2_Solver_decl.hpp:78
std::string name() const
Return the name of this solver.
Definition: Amesos2_SolverCore_def.hpp:509
Amesos2 interface to STRUMPACK direct solver and preconditioner.
Definition: Amesos2_STRUMPACK_decl.hpp:71
Provides access to interesting solver traits.
bool matrixShapeOK_impl() const
Determines whether the shape of the matrix is OK for this solver.
Definition: Amesos2_STRUMPACK_def.hpp:301
int numericFactorization_impl()
STRUMPACK specific numeric factorization.
Definition: Amesos2_STRUMPACK_def.hpp:180