#include <stdio.h>#include <stdlib.h>#include <math.h>#include "variables_global.h"#include "prototypes.h"Go to the source code of this file.
Functions | |
| double | max_flatten (double a, double b) |
| double | min_flatten (double a, double b) |
| int | flatten (int nmin, int nmax, double *pre_1D, double *vx_1D, double *steep, double *flat) |
| int flatten | ( | int | nmin, |
| int | nmax, | ||
| double * | pre_1D, | ||
| double * | vx_1D, | ||
| double * | steep, | ||
| double * | flat | ||
| ) |
Look for presence of a shock using pressure gradient and sign of velocity jump: shock = 1 if there is a shock in the zone, else shock = 0 Compute steepness parameter based on steepness of pressure jump IF there is a shock. The flatting is needed to eliminated post-shock oscillations.
Definition at line 47 of file flatten.c.
References max_flatten(), min_flatten(), shock_or_not, and small.
Referenced by ppm_step().
|
inline |
1.8.1.1