petsc-3.13.6 2020-09-29
Report Typos and Errors

TSEvaluateWLTE

Evaluate the weighted local truncation error norm at the end of a time step with a given order of accuracy.

Synopsis

#include "petscts.h"  
PetscErrorCode TSEvaluateWLTE(TS ts,NormType wnormtype,PetscInt *order,PetscReal *wlte)
Collective on TS

Input Arguments

ts - time stepping context
wnormtype - norm type, either NORM_2 or NORM_INFINITY
order - optional, desired order for the error evaluation or PETSC_DECIDE

Output Arguments

order - optional, the actual order of the error evaluation
wlte - the weighted local truncation error norm

Notes

If the timestepper cannot evaluate the error in a particular step (eg. in the first step or restart steps after event handling), this routine returns wlte=-1.0 .

See Also

TSStep(), TSAdapt, TSErrorWeightedNorm()

Level

advanced

Location

src/ts/interface/ts.c

Implementations

TSEvaluateWLTE_BDF in src/ts/impls/bdf/bdf.c
TSEvaluateWLTE_Alpha in src/ts/impls/implicit/alpha/alpha1.c
TSEvaluateWLTE_Alpha in src/ts/impls/implicit/alpha/alpha2.c
TSEvaluateWLTE_Theta in src/ts/impls/implicit/theta/theta.c

Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages