OGS
ProcessLib::Assembly::MultiMatrixElementCache Class Referencefinal

Detailed Description

Definition at line 254 of file MatrixElementCache.h.

#include <MatrixElementCache.h>

Collaboration diagram for ProcessLib::Assembly::MultiMatrixElementCache:
[legend]

Public Member Functions

 MultiMatrixElementCache (GlobalMatrixView &M, GlobalMatrixView &K, GlobalVectorView &b, GlobalMatrixView &Jac, MultiStats &stats)
 
void add (std::vector< double > const &local_M_data, std::vector< double > const &local_K_data, std::vector< double > const &local_b_data, std::vector< double > const &local_Jac_data, std::vector< GlobalIndexType > const &indices)
 

Private Types

using GlobalMatrixView = ConcurrentMatrixView<2>
 
using GlobalVectorView = ConcurrentMatrixView<1>
 

Private Attributes

MatrixElementCache< 2 > cache_M_
 
MatrixElementCache< 2 > cache_K_
 
MatrixElementCache< 1 > cache_b_
 
MatrixElementCache< 2 > cache_Jac_
 

Member Typedef Documentation

◆ GlobalMatrixView

◆ GlobalVectorView

Constructor & Destructor Documentation

◆ MultiMatrixElementCache()

ProcessLib::Assembly::MultiMatrixElementCache::MultiMatrixElementCache ( GlobalMatrixView & M,
GlobalMatrixView & K,
GlobalVectorView & b,
GlobalMatrixView & Jac,
MultiStats & stats )
inline

Definition at line 260 of file MatrixElementCache.h.

263 : cache_M_(M, stats.M),
264 cache_K_(K, stats.K),
265 cache_b_(b, stats.b),
266 cache_Jac_(Jac, stats.Jac)
267 {
268 }

Member Function Documentation

◆ add()

void ProcessLib::Assembly::MultiMatrixElementCache::add ( std::vector< double > const & local_M_data,
std::vector< double > const & local_K_data,
std::vector< double > const & local_b_data,
std::vector< double > const & local_Jac_data,
std::vector< GlobalIndexType > const & indices )
inline

Definition at line 270 of file MatrixElementCache.h.

275 {
276 cache_M_.add(local_M_data, indices);
277 cache_K_.add(local_K_data, indices);
278 cache_b_.add(local_b_data, indices);
279 cache_Jac_.add(local_Jac_data, indices);
280 }
void add(std::vector< double > const &local_data, std::vector< GlobalIndexType > const &indices)

References ProcessLib::Assembly::MatrixElementCache< Dim >::add(), cache_b_, cache_Jac_, cache_K_, and cache_M_.

Referenced by anonymous_namespace{ParallelVectorMatrixAssembler.cpp}::assembleWithJacobianOneElement().

Member Data Documentation

◆ cache_b_

MatrixElementCache<1> ProcessLib::Assembly::MultiMatrixElementCache::cache_b_
private

Definition at line 285 of file MatrixElementCache.h.

Referenced by add().

◆ cache_Jac_

MatrixElementCache<2> ProcessLib::Assembly::MultiMatrixElementCache::cache_Jac_
private

Definition at line 286 of file MatrixElementCache.h.

Referenced by add().

◆ cache_K_

MatrixElementCache<2> ProcessLib::Assembly::MultiMatrixElementCache::cache_K_
private

Definition at line 284 of file MatrixElementCache.h.

Referenced by add().

◆ cache_M_

MatrixElementCache<2> ProcessLib::Assembly::MultiMatrixElementCache::cache_M_
private

Definition at line 283 of file MatrixElementCache.h.

Referenced by add().


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