v0.15.0
Loading...
Searching...
No Matches
CalcJacobian Struct Reference
Collaboration diagram for CalcJacobian:
[legend]

Static Public Member Functions

static PetscErrorCode set (TS ts, PetscReal t, Vec u, Vec u_t, PetscReal a, Mat A, Mat B, void *ctx)
 

Static Private Attributes

static double lastA = 0
 

Detailed Description

Examples
heat_equation.cpp.

Definition at line 283 of file heat_equation.cpp.

Member Function Documentation

◆ set()

static PetscErrorCode CalcJacobian::set ( TS ts,
PetscReal t,
Vec u,
Vec u_t,
PetscReal a,
Mat A,
Mat B,
void * ctx )
inlinestatic
Examples
heat_equation.cpp.

Definition at line 284 of file heat_equation.cpp.

285 {
287 if (a != lastA) {
288 lastA = a;
289 CHKERR TsSetIJacobian(ts, t, u, u_t, a, A, B, ctx);
290 }
292 }
constexpr double a
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
PetscErrorCode TsSetIJacobian(TS ts, PetscReal t, Vec u, Vec u_t, PetscReal a, Mat A, Mat B, void *ctx)
Set function evaluating jacobian in TS solver.
Definition TsCtx.cpp:169
constexpr double t
plate stiffness
Definition plate.cpp:58
static double lastA

Member Data Documentation

◆ lastA

double CalcJacobian::lastA = 0
staticprivate
Examples
heat_equation.cpp.

Definition at line 295 of file heat_equation.cpp.


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