aboutsummaryrefslogtreecommitdiff
path: root/src/tov.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tov.c')
-rw-r--r--src/tov.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/tov.c b/src/tov.c
index a5d206d..fd06768 100644
--- a/src/tov.c
+++ b/src/tov.c
@@ -844,20 +844,21 @@ void TOV_C_Exact(CCTK_ARGUMENTS)
/* It is absolutely idiotic to have different
atmosphere thresholds for different stars that are placed
on the same goddamn grid. This also screws symmetry, so
- we get rid of it /*
- /* if(rho[i3D] <= TOV_Atmosphere[star_i]) {
+ we get rid of it \*
+ \* */ if(rho[i3D] <= TOV_Atmosphere[star_i]) {
rho[i3D] = TOV_Atmosphere[star_i];
- press[i3D] = TOV_K[star_i] * pow(rho[i3D],TOV_Gamma[star_i]);
- eps[i3D] = press[i3D]/(TOV_Gamma[star_i]-1.0)/rho[i3D];
- } */
+ press[i3D] = TOV_K * pow(rho[i3D],TOV_Gamma);
+ eps[i3D] = press[i3D]/(TOV_Gamma-1.0)/rho[i3D];
+ } /**/
}
-
+#if 0
if(rho[i3D] <= TOV_Atmosphere[0]) {
rho[i3D] = TOV_Atmosphere[0];
press[i3D] = TOV_K * pow(rho[i3D],TOV_Gamma);
eps[i3D] = press[i3D]/(TOV_Gamma-1.0)/rho[i3D];
}
+#endif
if (TOV_Conformal_Flat_Three_Metric)
{