OGS
PETScMatrixOption.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <petscmat.h>
7
8namespace MathLib
9{
15{
17 : is_global_size(true),
18 n_local_cols(PETSC_DECIDE),
19 d_nz(PETSC_DECIDE),
20 o_nz(PETSC_DECIDE)
21 {
22 }
23
32
34 PetscInt n_local_cols;
35
41 PetscInt d_nz;
42
48 PetscInt o_nz;
49};
50
51} // namespace MathLib
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...