v0.14.0
Loading...
Searching...
No Matches
Static Public Member Functions | Static Private Attributes | List of all members
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 ...
Definition: definitions.h:346
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
#define CHKERR
Inline error check.
Definition: definitions.h:535
PetscErrorCode TsSetIJacobian(TS ts, PetscReal t, Vec u, Vec u_t, PetscReal a, Mat A, Mat B, void *ctx)
Set function evaluating jacobina in TS solver.
Definition: TsCtx.cpp:131
constexpr double t
plate stiffness
Definition: plate.cpp:59
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: