HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
VlasovFunctions.c
Go to the documentation of this file.
1 
7 #include <hypar.h>
8 
9 int VlasovEField(double*, void*, double);
10 
14 int VlasovPreStep( double *u,
15  void *s,
16  void *m,
17  double waqt
18  )
19 {
20  HyPar *solver = (HyPar*) s;
21  Vlasov *param = (Vlasov*) solver->physics;
22 
23  int ierr = VlasovEField(u, solver, waqt);
24  if (ierr) return ierr;
25 
26  return 0;
27 }
28 
33 int VlasovPostStage( double *u,
34  void *s,
35  void *m,
36  double waqt
37  )
38 {
39  HyPar *solver = (HyPar*) s;
40  Vlasov *param = (Vlasov*) solver->physics;
41 
42  int ierr = VlasovEField(u, solver, waqt);
43  if (ierr) return ierr;
44 
45  return 0;
46 }
void * physics
Definition: hypar.h:266
int VlasovPostStage(double *u, void *s, void *m, double waqt)
int VlasovEField(double *u, void *s, double t)
Definition: VlasovEField.c:258
int VlasovPreStep(double *u, void *s, void *m, double waqt)
Definition: vlasov.h:57
Vlasov Equation.
Contains structure definition for hypar.
Structure containing all solver-specific variables and functions.
Definition: hypar.h:23