HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Evaluate the source term. More...
#include <stdlib.h>
#include <string.h>
#include <basic.h>
#include <arrayfunctions_gpu.h>
#include <boundaryconditions.h>
#include <mpivars.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | SourceFunction (double *source, double *u, void *s, void *m, double t) |
Evaluate the source term.
Definition in file SourceFunction.c.
int SourceFunction | ( | double * | source, |
double * | u, | ||
void * | s, | ||
void * | m, | ||
double | t | ||
) |
Evaluate the source term \({\bf S}\left({\bf u}\right)\) in the governing equation, if the physical model specifies one. In addition, if the simulation requires a sponge boundary treatment, the sponge BC function is called.
source | the computed source term |
u | solution |
s | solver object of type HyPar |
m | MPI object of type MPIVariables |
t | Current simulation time |
Definition at line 22 of file SourceFunction.c.