aboutsummaryrefslogtreecommitdiff
path: root/src/driver/announce.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/announce.cc')
-rw-r--r--src/driver/announce.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/driver/announce.cc b/src/driver/announce.cc
index 5c0b62b..58265ca 100644
--- a/src/driver/announce.cc
+++ b/src/driver/announce.cc
@@ -13,6 +13,7 @@
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
+#include "cctk_Functions.h"
#include "config.h"
#include "stdc.h"
@@ -124,7 +125,8 @@ for (int hn = 1; hn <= N_horizons; ++ hn)
{
// Store in spherical surface
- const int sn = which_surface_to_store_info[hn];
+ const int sn = sf_IdFromName(which_surface_to_store_info[hn],
+ which_surface_to_store_info_by_name[hn]);
if (sn == -1)
then continue;