aboutsummaryrefslogtreecommitdiff
path: root/interface.ccl
diff options
context:
space:
mode:
Diffstat (limited to 'interface.ccl')
-rw-r--r--interface.ccl8
1 files changed, 7 insertions, 1 deletions
diff --git a/interface.ccl b/interface.ccl
index 5a9886f..46defb9 100644
--- a/interface.ccl
+++ b/interface.ccl
@@ -9,6 +9,13 @@ inherits: grid
CCTK_INT FUNCTION GetRefinementLevel (CCTK_POINTER_TO_CONST IN cctkGH)
USES FUNCTION GetRefinementLevel
+# simple translation function from user-friendly name to numerical Id
+# if name is not empty returns the matching name and -1 if no name matches
+# if name is empty returns fallbackid
+CCTK_INT \
+FUNCTION sf_IdFromName (CCTK_INT IN fallbackid, CCTK_POINTER_TO_CONST IN name)
+PROVIDES FUNCTION sf_IdFromName WITH SphericalSurface_IdFromName LANGUAGE C
+
PUBLIC:
@@ -108,4 +115,3 @@ CCTK_REAL sf_coordinate_estimators[nsurfaces] TYPE=scalar
{
sf_delta_theta_estimate sf_delta_phi_estimate
} "Surface coordinate estimators"
-