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/shallowwater2d.h>
#include <mpivars.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | ShallowWater2DModifiedSolution (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 ShallowWater2DModifiedSolution.c.
int ShallowWater2DModifiedSolution | ( | 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 2D shallow water equations.
Refer to:
uC | The modified solution (same array size and layout as u) |
u | The solution (conserved variables) |
d | Spatial dimension |
s | Solver object of type HyPar |
m | MPI object of type MPIVariables |
waqt | Current solution time |
Definition at line 21 of file ShallowWater2DModifiedSolution.c.