HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Compute the conservation error. More...
#include <math.h>
#include <basic.h>
#include <mathfunctions.h>
#include <mpivars.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | CalculateConservationError (void *s, void *m) |
Compute the conservation error.
Definition in file CalculateConservationError.c.
int CalculateConservationError | ( | void * | s, |
void * | m | ||
) |
Calculates the error (L2) in conservation by computing the difference between the initial volume integral of the solution, and the sum of the current volume integral and the time integral of the boundary flux from the start of the simulation to the current simulation time.
s | Solver object of type HyPar |
m | MPI object of type MPIVariables |
Definition at line 16 of file CalculateConservationError.c.