HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ShallowWater1DEigen.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  ShallowWater1D *param = (ShallowWater1D*) p;
28  _ShallowWater1DLeftEigenvectors_(u,L,param,dir);
29  return(0);
30 }
31 
39  double *u,
40  double *R,
42  void *p,
43  int dir
44  )
45 {
46  ShallowWater1D *param = (ShallowWater1D*) p;
47  _ShallowWater1DRightEigenvectors_(u,R,param,dir);
48  return(0);
49 }
Structure containing variables and parameters specific to the 1D Shallow Water equations. This structure contains the physical parameters, variables, and function pointers specific to the 1D ShallowWater equations.
#define _ShallowWater1DLeftEigenvectors_(u, L, p, dir)
int ShallowWater1DRightEigenvectors(double *u, double *R, void *p, int dir)
Contains function definitions for common mathematical functions.
#define _ShallowWater1DRightEigenvectors_(u, R, p, dir)
Contains structure definition for hypar.
1D Shallow Water Equations
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
int ShallowWater1DLeftEigenvectors(double *u, double *L, void *p, int dir)