:orphan: # TSErrorWeightedENorm2 compute a weighted 2 error norm based on supplied absolute and relative tolerances ## Synopsis ``` #include "petscts.h" PetscErrorCode TSErrorWeightedENorm2(TS ts, Vec E, Vec U, Vec Y, PetscReal *norm, PetscReal *norma, PetscReal *normr) ``` Collective ## Input Parameters - ***ts -*** time stepping context - ***E -*** error vector - ***U -*** state vector, usually ts->vec_sol - ***Y -*** state vector, previous time step ## Output Parameters - ***norm -*** weighted norm, a value of 1.0 means that the error matches the tolerances - ***norma -*** weighted norm based on the absolute tolerance, a value of 1.0 means that the error matches the tolerances - ***normr -*** weighted norm based on the relative tolerance, a value of 1.0 means that the error matches the tolerances ## See Also [](ch_ts), `TS`, `TSErrorWeightedENorm()`, `TSErrorWeightedENormInfinity()` ## Level developer ## Location src/ts/interface/ts.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/interface/ts.c) [Index of all TS routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)