13 void SoundSpeed2 (
double **v,
double *cs2,
double *h,
int beg,
int end,
33 #if PHYSICS == HD || PHYSICS == MHD
43 for (i = beg; i <= end; i++) cs2[i] = g_isoSoundSpeed*g_isoSoundSpeed;
48 for (j = beg; j <= end; j++) cs2[j] = g_isoSoundSpeed*g_isoSoundSpeed;
53 for (k = beg; k <= end; k++) cs2[k] = g_isoSoundSpeed*g_isoSoundSpeed;
57 print (
"! SoundSpeed2: not defined for this EoS\n");
75 print (
"! Enthalpy: enthalpy not defined in isothermal EOS\n");
80 void Entropy (
double **v,
double *
s,
int beg,
int end)
92 print (
"Entropy: entropy not defined for isothermal EOS\n");
void Enthalpy(double **v, real *h, int beg, int end)
void SoundSpeed2(double **v, double *cs2, double *h, int beg, int end, int pos, Grid *grid)
int g_i
x1 grid index when sweeping along the x2 or x3 direction.
void Entropy(double **v, double *s, int beg, int end)
int g_dir
Specifies the current sweep or direction of integration.
int g_j
x2 grid index when sweeping along the x1 or x3 direction.
void print(const char *fmt,...)
int g_k
x3 grid index when sweeping along the x1 or x2 direction.
#define QUIT_PLUTO(e_code)