29 int ndims = solver->
ndims;
30 int ghosts = solver->
ghosts;
37 double x[ndims], dxinv[ndims],
drift[ndims];
49 double local_cfl[ndims];
55 if (local_cfl[0] > max_cfl) max_cfl = local_cfl[0];
56 if (local_cfl[1] > max_cfl) max_cfl = local_cfl[1];
57 if (local_cfl[2] > max_cfl) max_cfl = local_cfl[2];
58 if (local_cfl[3] > max_cfl) max_cfl = local_cfl[3];
MPI related function definitions.
Contains function definitions for common mathematical functions.
Some basic definitions and macros.
double FPPowerSystem3BusComputeCFL(void *s, void *m, double dt, double t)
Structure containing all solver-specific variables and functions.
int FPPowerSystem3BusDriftFunction(int, void *, double *, double, double *)
Contains structure definition for hypar.
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
Structure containing variable and parameters specific to the 3-bus power system model. This structure contains the physical parameters and variables for the Fokker-Planck model for a 3-bus power system.
Contains macros and function definitions for common array operations.