OGS
PETScMatrixOption.h
Go to the documentation of this file.
1
14#pragma once
15
16#include <petscmat.h>
17
18namespace MathLib
19{
25{
27 : is_global_size(true),
28 n_local_cols(PETSC_DECIDE),
29 d_nz(PETSC_DECIDE),
30 o_nz(PETSC_DECIDE)
31 {
32 }
33
42
44 PetscInt n_local_cols;
45
51 PetscInt d_nz;
52
58 PetscInt o_nz;
59};
60
61} // namespace MathLib
This a struct data containing the configuration information to create a PETSc type matrix.
PetscInt o_nz
Number of nonzeros per row in the off-diagonal portion of local submatrix (same value is used for all...
bool is_global_size
Flag for the type of size, which is one of arguments of the constructor of class PETScMatrix true: th...
PetscInt n_local_cols
Number of local columns. The default is PETSC_DECIDE.
PetscInt d_nz
Number of nonzeros per row in the diagonal portion of local submatrix (same value is used for all loc...