Loading...
Searching...
No Matches
terra::linalg::solvers::LocalMatrixStorage< ScalarT, LocalMatrixDim > Class Template Reference

#include <local_matrix_storage.hpp>

Public Types

using ScalarType = ScalarT
 
using LocalMatrixType = terra::dense::Mat< ScalarType, LocalMatrixDim, LocalMatrixDim >
 

Public Member Functions

 LocalMatrixStorage ()
 
 LocalMatrixStorage (grid::shell::DistributedDomain domain, linalg::OperatorStoredMatrixMode operator_stored_matrix_mode, int level_range, grid::Grid4DDataScalar< ScalarType > GCAElements)
 
void set_matrix (const int local_subdomain_id, const int x_cell, const int y_cell, const int r_cell, const int wedge, dense::Mat< ScalarT, LocalMatrixDim, LocalMatrixDim > mat) const
 Set the local matrix stored in the operator.
 
dense::Mat< ScalarT, LocalMatrixDim, LocalMatrixDim > get_matrix (const int local_subdomain_id, const int x_cell, const int y_cell, const int r_cell, const int wedge) const
 Retrives the local matrix if there is stored local matrices, the desired local matrix is loaded and returned if not, the local matrix is assembled on-the-fly.
 
bool has_matrix (const int local_subdomain_id, const int x_cell, const int y_cell, const int r_cell, const int wedge) const
 Checks for presence of a local matrix for a certain element.
 

Member Typedef Documentation

◆ LocalMatrixType

template<typename ScalarT , int LocalMatrixDim>
using terra::linalg::solvers::LocalMatrixStorage< ScalarT, LocalMatrixDim >::LocalMatrixType = terra::dense::Mat< ScalarType, LocalMatrixDim, LocalMatrixDim >

◆ ScalarType

template<typename ScalarT , int LocalMatrixDim>
using terra::linalg::solvers::LocalMatrixStorage< ScalarT, LocalMatrixDim >::ScalarType = ScalarT

Constructor & Destructor Documentation

◆ LocalMatrixStorage() [1/2]

template<typename ScalarT , int LocalMatrixDim>
terra::linalg::solvers::LocalMatrixStorage< ScalarT, LocalMatrixDim >::LocalMatrixStorage ( )
inline

◆ LocalMatrixStorage() [2/2]

template<typename ScalarT , int LocalMatrixDim>
terra::linalg::solvers::LocalMatrixStorage< ScalarT, LocalMatrixDim >::LocalMatrixStorage ( grid::shell::DistributedDomain  domain,
linalg::OperatorStoredMatrixMode  operator_stored_matrix_mode,
int  level_range,
grid::Grid4DDataScalar< ScalarType GCAElements 
)
inline

Member Function Documentation

◆ get_matrix()

template<typename ScalarT , int LocalMatrixDim>
dense::Mat< ScalarT, LocalMatrixDim, LocalMatrixDim > terra::linalg::solvers::LocalMatrixStorage< ScalarT, LocalMatrixDim >::get_matrix ( const int  local_subdomain_id,
const int  x_cell,
const int  y_cell,
const int  r_cell,
const int  wedge 
) const
inline

Retrives the local matrix if there is stored local matrices, the desired local matrix is loaded and returned if not, the local matrix is assembled on-the-fly.

◆ has_matrix()

template<typename ScalarT , int LocalMatrixDim>
bool terra::linalg::solvers::LocalMatrixStorage< ScalarT, LocalMatrixDim >::has_matrix ( const int  local_subdomain_id,
const int  x_cell,
const int  y_cell,
const int  r_cell,
const int  wedge 
) const
inline

Checks for presence of a local matrix for a certain element.

◆ set_matrix()

template<typename ScalarT , int LocalMatrixDim>
void terra::linalg::solvers::LocalMatrixStorage< ScalarT, LocalMatrixDim >::set_matrix ( const int  local_subdomain_id,
const int  x_cell,
const int  y_cell,
const int  r_cell,
const int  wedge,
dense::Mat< ScalarT, LocalMatrixDim, LocalMatrixDim >  mat 
) const
inline

Set the local matrix stored in the operator.


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