29 int ndims = solver->
ndims;
30 int ghosts = solver->
ghosts;
37 double x[ndims], dxinv[ndims],
drift[ndims];
49 double local_cfl[ndims];
50 local_cfl[0] =
absolute(drift[0]) * dt * dxinv[0];
51 local_cfl[1] =
absolute(drift[1]) * dt * dxinv[1];
52 local_cfl[2] =
absolute(drift[2]) * dt * dxinv[2];
53 local_cfl[3] =
absolute(drift[3]) * dt * dxinv[3];
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];
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
MPI related function definitions.
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
int FPPowerSystem3BusDriftFunction(int, void *, double *, double, double *)
double FPPowerSystem3BusComputeCFL(void *s, void *m, double dt, double t)
Contains function definitions for common mathematical functions.
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 structure definition for hypar.
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
Structure containing all solver-specific variables and functions.