aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Carpet/LoopControl/src/loopcontrol.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Carpet/LoopControl/src/loopcontrol.c b/Carpet/LoopControl/src/loopcontrol.c
index a443c60b5..8ca8c693d 100644
--- a/Carpet/LoopControl/src/loopcontrol.c
+++ b/Carpet/LoopControl/src/loopcontrol.c
@@ -639,6 +639,11 @@ lc_statmap_init (int * restrict const initialised,
#pragma omp single
{
+ /* Ensure this thorn is active */
+ if (! CCTK_IsThornActive (CCTK_THORNSTRING)) {
+ CCTK_WARN (CCTK_WARN_ABORT, "Thorn LoopControl is used, but has not been activated. (Note: If a thorn has an optional depencency on LoopControl, and if LoopControl is then in your thorn list, then you are using it and need to activate it.)");
+ }
+
/* Set name */
lm->name = strdup (name);