TSErrorWeightedNorm#
compute a weighted norm of the difference between two state vectors based on supplied absolute and relative tolerances
Synopsis#
#include "petscts.h"
PetscErrorCode TSErrorWeightedNorm(TS ts, Vec U, Vec Y, NormType wnormtype, PetscReal *norm, PetscReal *norma, PetscReal *normr)
Collective
Input Parameters#
ts - time stepping context
U - state vector, usually ts->vec_sol
Y - state vector to be compared to U
wnormtype - norm type, either
NORM_2
orNORM_INFINITY
Output Parameters#
norm - weighted norm, a value of 1.0 achieves a balance between absolute and relative tolerances
norma - weighted norm, a value of 1.0 means that the error meets the absolute tolerance set by the user
normr - weighted norm, a value of 1.0 means that the error meets the relative tolerance set by the user
Options Database Key#
-ts_adapt_wnormtype
- 2, INFINITY
See Also#
TS: Scalable ODE and DAE Solvers, TS
, TSErrorWeightedNormInfinity()
, TSErrorWeightedNorm2()
, TSErrorWeightedENorm
Level#
developer
Location#
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages