11 int ndims = solver->
ndims;
12 int nvars = solver->
nvars;
13 int ghosts = solver->
ghosts;
15 double *dxinv = solver->
dxinv;
18 double max_diffno = 0;
19 for (d = 0; d < ndims; d++) {
20 for (i = 0; i < dim[d]; i++) {
21 for (v = 0; v < nvars; v++) {
22 double local_diffno = 0.5 * params->
q * dt
23 * dxinv[offset+ghosts+i]
24 * dxinv[offset+ghosts+i];
25 if (local_diffno > max_diffno) max_diffno = local_diffno;
28 offset += dim[d] + 2*ghosts;
MPI related function definitions.
double FPDoubleWellComputeDiffNumber(void *s, void *m, double dt, double t)
Contains structure definition for hypar.
Structure containing all solver-specific variables and functions.