6#ifndef PETSC_INTERFACE_H
7#define PETSC_INTERFACE_H
58void petsc_initialize(
const PetscInt nNo,
const PetscInt mynNo,
59 const PetscInt nnz,
const PetscInt nEq,
const PetscInt *svFSI_ltg,
60 const PetscInt *svFSI_map,
const PetscInt *svFSI_rowPtr,
61 const PetscInt *svFSI_colPtr,
char *inp);
63void petsc_create_linearsystem(
const PetscInt dof,
const PetscInt iEq,
const PetscInt nEq,
64 const PetscReal *svFSI_DirBC,
const PetscReal *svFSI_lpBC);
66void petsc_create_linearsolver(
const consts::PreconditionerType
lsType,
const consts::PreconditionerType pcType,
67 const PetscInt kSpace,
const PetscInt maxIter,
const PetscReal relTol,
68 const PetscReal absTol,
const consts::EquationType phys,
const PetscInt dof,
69 const PetscInt iEq,
const PetscInt nEq);
71void petsc_set_values(
const PetscInt dof,
const PetscInt iEq,
const PetscReal *R,
72 const PetscReal *Val,
const PetscReal *svFSI_DirBC,
const PetscReal *svFSI_lpBC);
74void petsc_solve(PetscReal *resNorm, PetscReal *initNorm, PetscReal *dB,
75 PetscReal *execTime,
bool *converged, PetscInt *numIter,
76 PetscReal *R,
const PetscInt maxIter,
const PetscInt dof,
79void petsc_destroy_all(
const PetscInt);
81PetscErrorCode petsc_create_lhs(
const PetscInt,
const PetscInt,
const PetscInt,
82 const PetscInt *,
const PetscInt *,
83 const PetscInt *,
const PetscInt *);
85PetscErrorCode petsc_create_bc(
const PetscInt,
const PetscInt,
const PetscReal *,
88PetscErrorCode petsc_create_vecmat(
const PetscInt,
const PetscInt,
const PetscInt);
90PetscErrorCode petsc_set_vec(
const PetscInt,
const PetscInt,
const PetscReal *);
92PetscErrorCode petsc_set_mat(
const PetscInt,
const PetscInt,
const PetscReal *);
94PetscErrorCode petsc_set_bc(
const PetscInt,
const PetscReal *,
const PetscReal *);
96PetscErrorCode petsc_set_pcfieldsplit(
const PetscInt,
const PetscInt);
98PetscErrorCode petsc_pc_rcs(
const PetscInt,
const PetscInt);
101PetscErrorCode petsc_debug_save_vec(
const char *, Vec);
102PetscErrorCode petsc_debug_save_mat(
const char *, Mat);
Linear system of equations solver type.
Definition ComMod.h:611
Definition petsc_impl.h:20
Definition petsc_impl.h:38