HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Compute time integration error. More...
#include <math.h>
#include <string.h>
#include <arrayfunctions.h>
#include <mpivars.h>
#include <hypar.h>
#include <timeintegration.h>
Go to the source code of this file.
Functions | |
int | TimeError (void *s, void *m, double *uex) |
Compute time integration error.
Definition in file TimeError.c.
int TimeError | ( | void * | s, |
void * | m, | ||
double * | uex | ||
) |
Computes the time integration error in the solution: If the time integration method chosen has a mechanism to compute the error in the numerical integration, it is computed in this function. In addition, if an exact solution is available (see function argument uex, the error of the computed solution (stored in HyPar::u) with respect to this exact solution is also computed. These errors are written to a text file whose name depends on the time integration method being used.
Time integration method with error estimation currently implemented:
s | Solver object of type HyPar |
m | MPI object of type MPIVariables |
uex | Exact solution (stored with the same array layout as HyPar::u (may be NULL) |
Definition at line 27 of file TimeError.c.