HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Computes the error in the solution. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <basic.h>
#include <common.h>
#include <arrayfunctions.h>
#include <timeintegration.h>
#include <mpivars.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | ExactSolution (void *, void *, double *, char *, int *) |
int | CalculateError (void *s, void *m) |
Computes the error in the solution.
Definition in file CalculateError.c.
int ExactSolution | ( | void * | s, |
void * | m, | ||
double * | uex, | ||
char * | fname, | ||
int * | flag | ||
) |
Read in the exact solution, if available.
s | Solver object of type HyPar |
m | MPI object of type MPIVariables |
uex | Array to hold the exact solution, if available |
fname | Filename root from which to read exact solution |
flag | Flag to indicate if exact solution was available |
Definition at line 16 of file ExactSolution.c.
int CalculateError | ( | void * | s, |
void * | m | ||
) |
Calculates the error in the solution if the exact solution is available. If the exact solution is not available, the errors are reported as zero. The exact solution should be provided in the file "exact.inp" in the same format as the initial solution.
s | Solver object of type HyPar |
m | MPI object of type MPIVariables |
Definition at line 25 of file CalculateError.c.