v0.14.0
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  }

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:
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
a
constexpr double a
Definition: approx_sphere.cpp:30
MoFEM::TsSetIJacobian
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:165
CalcJacobian::lastA
static double lastA
Definition: heat_equation.cpp:295
t
constexpr double t
plate stiffness
Definition: plate.cpp:58
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359