aboutsummaryrefslogtreecommitdiff
path: root/src/utils.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.inc')
-rw-r--r--src/utils.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils.inc b/src/utils.inc
index 646554a..62bbf2a 100644
--- a/src/utils.inc
+++ b/src/utils.inc
@@ -6,6 +6,7 @@ void TOV_C_AllocateMemory(CCTK_ARGUMENTS)
assert(TOV_Surface==0);
assert(TOV_R_Surface==0);
+ assert(TOV_RProp_Surface==0);
assert(TOV_Atmosphere==0);
assert(TOV_r_1d==0);
@@ -18,6 +19,7 @@ void TOV_C_AllocateMemory(CCTK_ARGUMENTS)
TOV_Surface = malloc(TOV_Num_TOVs * sizeof(CCTK_REAL));
TOV_R_Surface = malloc(TOV_Num_TOVs * sizeof(CCTK_REAL));
+ TOV_RProp_Surface = malloc(TOV_Num_TOVs * sizeof(CCTK_REAL));
TOV_Atmosphere = malloc(TOV_Num_TOVs * sizeof(CCTK_REAL));
TOV_r_1d = malloc(TOV_Num_Radial * TOV_Num_TOVs * sizeof(CCTK_REAL));
@@ -36,6 +38,7 @@ void TOV_C_FreeMemory (CCTK_ARGUMENTS)
assert(TOV_Surface!=0);
assert(TOV_R_Surface!=0);
+ assert(TOV_RProp_Surface!=0);
assert(TOV_Atmosphere!=0);
assert(TOV_r_1d!=0);
@@ -46,6 +49,7 @@ void TOV_C_FreeMemory (CCTK_ARGUMENTS)
free(TOV_Surface);
free(TOV_R_Surface);
+ free(TOV_RProp_Surface);
free(TOV_Atmosphere);
free(TOV_r_1d);
@@ -58,6 +62,7 @@ void TOV_C_FreeMemory (CCTK_ARGUMENTS)
TOV_Surface=0;
TOV_R_Surface=0;
+ TOV_RProp_Surface=0;
TOV_Atmosphere=0;
TOV_r_1d=0;