From 6610ba2a0fee45722ecf26f1cc04efbee667c832 Mon Sep 17 00:00:00 2001 From: rhaas Date: Tue, 24 Jan 2012 20:24:54 +0000 Subject: support named spherical surfaces git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1562 f88db872-0e4f-0410-b76b-b9085cfa78c5 --- src/driver/announce.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3