GEOS
Classes | Namespaces | Functions
SparsityKernelBase.hpp File Reference
#include "ImplicitKernelBase.hpp"

Go to the source code of this file.

Classes

class  geos::finiteElement::SparsityKernelBase< SUBREGION_TYPE, CONSTITUTIVE_TYPE, FE_TYPE, NUM_DOF_PER_TEST_SP, NUM_DOF_PER_TRIAL_SP >
 Define the base interface for implicit finite element kernels. More...
 
class  geos::finiteElement::SparsityKernelFactory< KERNEL_TEMPLATE >
 Helper struct to define a specialization of #geos::finiteElement::SparsityKernelBase that may be used to generate the sparsity pattern. More...
 

Namespaces

 geos
 

Functions

template<typename REGION_TYPE , template< typename SUBREGION_TYPE, typename CONSTITUTIVE_TYPE, typename FE_TYPE > class KERNEL_TEMPLATE>
static real64 geos::finiteElement::fillSparsity (MeshLevel &mesh, arrayView1d< string const > const &targetRegions, string const &discretizationName, arrayView1d< globalIndex const > const &inputDofNumber, globalIndex const rankOffset, SparsityPattern< globalIndex > &inputSparsityPattern)
 Fills matrix sparsity. More...
 

Function Documentation

◆ fillSparsity()

template<typename REGION_TYPE , template< typename SUBREGION_TYPE, typename CONSTITUTIVE_TYPE, typename FE_TYPE > class KERNEL_TEMPLATE>
static real64 geos::finiteElement::fillSparsity ( MeshLevel mesh,
arrayView1d< string const > const &  targetRegions,
string const &  discretizationName,
arrayView1d< globalIndex const > const &  inputDofNumber,
globalIndex const  rankOffset,
SparsityPattern< globalIndex > &  inputSparsityPattern 
)
static

Fills matrix sparsity.

Template Parameters
REGION_TYPEThe type of region to loop over. TODO make this a parameter pack?
KERNEL_TEMPLATEThe type of template for the physics kernel, which conforms to the interface specified by KernelBase.
Parameters
meshThe MeshLevel object.
targetRegionsThe names of the target regions(of type REGION_TYPE) to apply the KERNEL_TEMPLATE.
discretizationNameThe name of the finite element discretization.
inputDofNumberThe global degree of freedom numbers.
rankOffsetOffset of dof indices on curren rank.
inputSparsityPatternThe local sparsity pattern to fill.
Returns
0

Fills matrix sparsity using information from physics specific implementation of geos::finiteElement::KernelBase interface using the geos::finiteElement::ImplicitKernelBase alias to specialize geos::finiteElement::SparsityKernelBase to conform with the template pattern specified in the physics kernels.

Definition at line 286 of file SparsityKernelBase.hpp.