#include "petscts.h" PetscErrorCode TSErrorWeightedENorm(TS ts,Vec E,Vec U,Vec Y,NormType wnormtype,PetscReal *norm,PetscReal *norma,PetscReal *normr)Collective on TS
ts | - time stepping context | |
E | - error vector | |
U | - state vector, usually ts->vec_sol | |
Y | - state vector, previous time step | |
wnormtype | - norm type, either NORM_2 or NORM_INFINITY |
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 |