OGS
MathLib::SetMatrixSparsity< PETScMatrix, SPARSITY_PATTERN > Struct Template Reference

Detailed Description

template<typename SPARSITY_PATTERN>
struct MathLib::SetMatrixSparsity< PETScMatrix, SPARSITY_PATTERN >

PETSc specialization. The non-trivial branch logic lives in setPreallocationNonzeroOption() (PETScMatrix.cpp).

Definition at line 326 of file PETScMatrix.h.

#include <PETScMatrix.h>

Public Member Functions

void operator() (PETScMatrix &matrix, SPARSITY_PATTERN const &sparsity_pattern) const

Member Function Documentation

◆ operator()()

template<typename SPARSITY_PATTERN>
void MathLib::SetMatrixSparsity< PETScMatrix, SPARSITY_PATTERN >::operator() ( PETScMatrix & matrix,
SPARSITY_PATTERN const & sparsity_pattern ) const
inline

Definition at line 328 of file PETScMatrix.h.

330 {
332 !sparsity_pattern.col_idx.empty());
333 }
void setPreallocationNonzeroOption(PETScMatrix &matrix, bool const has_col_idx)

References MathLib::setPreallocationNonzeroOption().


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