20 #ifndef dealii_petsc_compatibility_h
21 #define dealii_petsc_compatibility_h
27 #ifdef DEAL_II_WITH_PETSC
29 # include <petscconf.h>
30 # include <petscksp.h>
31 # include <petscmat.h>
33 # include <petscsnes.h>
49 const PetscErrorCode ierr =
50 PetscOptionsSetValue(
nullptr, name.c_str(), value.c_str());
65 const MatOption option_name,
66 const PetscBool option_value = PETSC_FALSE)
68 const PetscErrorCode ierr = MatSetOption(
matrix, option_name, option_value);
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define AssertThrow(cond, exc)
@ matrix
Contents is actually a matrix.
void set_use_matrix_free(SNES snes, const bool mf_operator, const bool mf)
void set_option_value(const std::string &name, const std::string &value)
void set_keep_zero_rows(Mat &matrix)
void ts_set_max_time(TS ts, const PetscReal maxtime)
void set_matrix_option(Mat &matrix, const MatOption option_name, const PetscBool option_value=PETSC_FALSE)
void ts_set_max_steps(TS ts, const PetscInt maxsteps)
void petsc_increment_state_counter(Vec v)
void close_matrix(Mat &matrix)
unsigned int ts_get_step_number(TS ts)