HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
ShallowWater2DEigen.c
Go to the documentation of this file.
1 
5 #include <stdlib.h>
6 #include <math.h>
7 #include <basic.h>
8 #include <arrayfunctions.h>
9 #include <mathfunctions.h>
11 #include <hypar.h>
12 
20  double *u,
21  double *L,
23  void *p,
24  int dir
25  )
26 {
27  ShallowWater2D *param = (ShallowWater2D*) p;
28  _ShallowWater2DLeftEigenvectors_(u,L,param,dir);
29  return(0);
30 }
31 
39  double *u,
40  double *R,
42  void *p,
43  int dir
44  )
45 {
46  ShallowWater2D *param = (ShallowWater2D*) p;
47  _ShallowWater2DRightEigenvectors_(u,R,param,dir);
48  return(0);
49 }
Contains function definitions for common mathematical functions.
Some basic definitions and macros.
2D Shallow Water Equations
int ShallowWater2DLeftEigenvectors(double *u, double *L, void *p, int dir)
Structure containing variables and parameters specific to the 2D Shallow Water equations. This structure contains the physical parameters, variables, and function pointers specific to the 2D ShallowWater equations.
int ShallowWater2DRightEigenvectors(double *u, double *R, void *p, int dir)
#define _ShallowWater2DLeftEigenvectors_(u, L, p, dir)
Contains structure definition for hypar.
#define _ShallowWater2DRightEigenvectors_(u, R, p, dir)
Contains macros and function definitions for common array operations.