HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Contains the function to compute the modified solution for a balanced discretization scheme. More...
#include <basic.h>
#include <arrayfunctions.h>
#include <physicalmodels/shallowwater1d.h>
#include <mpivars.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | ShallowWater1DModifiedSolution (double *uC, double *u, int d, void *s, void *m, double waqt) |
Contains the function to compute the modified solution for a balanced discretization scheme.
Definition in file ShallowWater1DModifiedSolution.c.
int ShallowWater1DModifiedSolution | ( | double * | uC, |
double * | u, | ||
int | d, | ||
void * | s, | ||
void * | m, | ||
double | waqt | ||
) |
Compute the modified solution for the upwinding step in a balanced conservative finite-difference algorithm for the 1D shallow water equations.
Refer to:
uC | The modified solution (same array size and layout as u) |
u | The solution (conserved variables) |
d | Spatial dimension (unused since this is a 1D system) |
s | Solver object of type HyPar |
m | MPI object of type MPIVariables |
waqt | Current solution time |
Definition at line 21 of file ShallowWater1DModifiedSolution.c.