24 int ndims = solver->
ndims;
25 int nvars = solver->
nvars;
26 int ghosts = solver->
ghosts;
33 for (d = 0; d < ndims; d++) {
34 for (i = 0; i < dim[d]; i++) {
35 for (v = 0; v < nvars; v++) {
37 double local_cfl = params->
a[nvars*d+v]*dt*dxinv;
38 if (local_cfl > max_cfl) max_cfl = local_cfl;
46 for (d = 0; d < ndims; d++) {
53 for (v = 0; v < nvars; v++) {
54 double a = params->
a[nvars*ndims*p+nvars*d+v];
55 double local_cfl = a*dt*dxinv;
56 if (local_cfl > max_cfl) max_cfl = local_cfl;
MPI related function definitions.
Structure containing variables and parameters specific to the linear advection-diffusion-reaction mod...
double LinearADRComputeCFL(void *s, void *m, double dt, double t)
Structure containing all solver-specific variables and functions.
Contains structure definition for hypar.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
Linear Advection-Diffusion-Reaction model.
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
Contains macros and function definitions for common array operations.