aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2011-02-05 18:54:33 -0500
committerErik Schnetter <schnetter@cct.lsu.edu>2011-02-05 18:54:33 -0500
commitce85f48ca977fbb24fcf2319125e12686a235194 (patch)
treea750fdbe71193b885cdae7873b677141830d460c
parent7e444ac2a1af257c13ef49a8161982640e381375 (diff)
LoopControl: Ensure that LoopControl is active if it is used
-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);