Opm::detail::BdaSolverInfo< Matrix, Vector > Struct Template Reference

#include <ISTLSolverBda.hpp>

Public Types

using WellContribFunc = std::function< void(WellContributions &)>
 
using Bridge = BdaBridge< Matrix, Vector, Matrix::block_type::rows >
 

Public Member Functions

 BdaSolverInfo (const std::string &accelerator_mode, const int linear_solver_verbosity, const int maxit, const double tolerance, const int platformID, const int deviceID, const bool opencl_ilu_parallel, const std::string &linsolver)
 
 ~BdaSolverInfo ()
 
template<class Grid >
void prepare (const Grid &grid, const Dune::CartesianIndexMapper< Grid > &cartMapper, const std::vector< Well > &wellsForConn, const std::vector< int > &cellPartition, const std::size_t nonzeroes, const bool useWellConn)
 
bool apply (Vector &rhs, const bool useWellConn, WellContribFunc getContribs, const int rank, Matrix &matrix, Vector &x, Dune::InverseOperatorResult &result)
 
bool gpuActive ()
 

Public Attributes

int numJacobiBlocks_ = 0
 

Member Typedef Documentation

◆ Bridge

template<class Matrix , class Vector >
using Opm::detail::BdaSolverInfo< Matrix, Vector >::Bridge = BdaBridge<Matrix,Vector,Matrix::block_type::rows>

◆ WellContribFunc

template<class Matrix , class Vector >
using Opm::detail::BdaSolverInfo< Matrix, Vector >::WellContribFunc = std::function<void(WellContributions&)>

Constructor & Destructor Documentation

◆ BdaSolverInfo()

template<class Matrix , class Vector >
Opm::detail::BdaSolverInfo< Matrix, Vector >::BdaSolverInfo ( const std::string &  accelerator_mode,
const int  linear_solver_verbosity,
const int  maxit,
const double  tolerance,
const int  platformID,
const int  deviceID,
const bool  opencl_ilu_parallel,
const std::string &  linsolver 
)

◆ ~BdaSolverInfo()

template<class Matrix , class Vector >
Opm::detail::BdaSolverInfo< Matrix, Vector >::~BdaSolverInfo ( )

Member Function Documentation

◆ apply()

template<class Matrix , class Vector >
bool Opm::detail::BdaSolverInfo< Matrix, Vector >::apply ( Vector &  rhs,
const bool  useWellConn,
WellContribFunc  getContribs,
const int  rank,
Matrix &  matrix,
Vector &  x,
Dune::InverseOperatorResult &  result 
)

◆ gpuActive()

template<class Matrix , class Vector >
bool Opm::detail::BdaSolverInfo< Matrix, Vector >::gpuActive ( )

◆ prepare()

template<class Matrix , class Vector >
template<class Grid >
void Opm::detail::BdaSolverInfo< Matrix, Vector >::prepare ( const Grid &  grid,
const Dune::CartesianIndexMapper< Grid > &  cartMapper,
const std::vector< Well > &  wellsForConn,
const std::vector< int > &  cellPartition,
const std::size_t  nonzeroes,
const bool  useWellConn 
)

Member Data Documentation

◆ numJacobiBlocks_

template<class Matrix , class Vector >
int Opm::detail::BdaSolverInfo< Matrix, Vector >::numJacobiBlocks_ = 0

The documentation for this struct was generated from the following file: