11 #ifndef AMESOS2_STRUMPACK_DECL_HPP
12 #define AMESOS2_STRUMPACK_DECL_HPP
15 #include "Amesos2_SolverCore.hpp"
18 #include "StrumpackSparseSolverMPIDist.hpp"
20 #include "StrumpackSparseSolver.hpp"
35 template <
class Matrix,
50 typedef Matrix matrix_type;
51 typedef Vector vector_type;
54 typedef typename strum_type::scalar_type scalar_type;
55 typedef typename strum_type::local_ordinal_type local_ordinal_type;
56 typedef typename strum_type::global_ordinal_type global_ordinal_type;
57 typedef typename strum_type::global_size_type global_size_type;
58 typedef typename strum_type::node_type node_type;
60 typedef Kokkos::DefaultHostExecutionSpace HostExecSpaceType;
61 typedef Kokkos::View<global_ordinal_type*, HostExecSpaceType> host_ordinal_type_array;
62 typedef Kokkos::View<scalar_type*, HostExecSpaceType> host_value_type_array;
74 Teuchos::RCP<Vector> X,
75 Teuchos::RCP<const Vector> B);
123 int
solve_impl(const Teuchos::Ptr<MultiVecAdapter<Vector> > X,
124 const Teuchos::Ptr<const MultiVecAdapter<Vector> > B) const;
169 const Teuchos::RCP<Teuchos::ParameterList> & parameterList );
198 Teuchos::RCP<strumpack::StrumpackSparseSolverMPIDist<scalar_type,global_ordinal_type>> sp_;
200 Teuchos::RCP<strumpack::StrumpackSparseSolver<scalar_type,global_ordinal_type>> sp_;
212 mutable Teuchos::Array<scalar_type> bvals_;
214 mutable Teuchos::Array<scalar_type> xvals_;
217 Teuchos::RCP<const Tpetra::Map<local_ordinal_type,
220 node_type> > strumpack_rowmap_;
228 #if defined(HAVE_TEUCHOS_COMPLEX) && !defined(__clang__)
229 typedef Meta::make_list4<float, double, std::complex<float>, std::complex<double>> supported_scalars;
231 typedef Meta::make_list2<float, double> supported_scalars;
237 #endif // AMESOS2_STRUMPACK_DECL_HPP
Amesos2::SolverCore: A templated interface for interaction with third-party direct sparse solvers...
Definition: Amesos2_SolverCore_decl.hpp:71
host_ordinal_type_array colind_view_
Stores the row indices of the nonzero entries.
Definition: Amesos2_STRUMPACK_decl.hpp:208
int preOrdering_impl()
Performs pre-ordering on the matrix to increase efficiency.
Definition: Amesos2_STRUMPACK_def.hpp:102
void setParameters_impl(const Teuchos::RCP< Teuchos::ParameterList > ¶meterList)
Definition: Amesos2_STRUMPACK_def.hpp:286
int symbolicFactorization_impl()
Perform symbolic factorization of the matrix using STRUMPACK.
Definition: Amesos2_STRUMPACK_def.hpp:122
bool matrixShapeOK_impl() const
Determines whether the shape of the matrix is OK for this solver.
Definition: Amesos2_STRUMPACK_def.hpp:268
Provides traits about solvers.
Definition: Amesos2_SolverTraits.hpp:37
host_ordinal_type_array rowptr_view_
Stores the location in Ai_ and Aval_ that starts row j.
Definition: Amesos2_STRUMPACK_decl.hpp:210
host_value_type_array nzvals_view_
Stores the values of the nonzero entries for STRUMPACK.
Definition: Amesos2_STRUMPACK_decl.hpp:206
bool loadA_impl(EPhase current_phase)
Reads matrix data into internal solver structures.
Definition: Amesos2_STRUMPACK_def.hpp:456
std::string name() const override
Return the name of this solver.
Definition: Amesos2_SolverCore_def.hpp:725
Interface to Amesos2 solver objects.
Definition: Amesos2_Solver_decl.hpp:44
Amesos2 interface to STRUMPACK direct solver and preconditioner.
Definition: Amesos2_STRUMPACK_decl.hpp:37
Provides access to interesting solver traits.
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters_impl() const
Definition: Amesos2_STRUMPACK_def.hpp:343
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:169
int numericFactorization_impl()
STRUMPACK specific numeric factorization.
Definition: Amesos2_STRUMPACK_def.hpp:147