diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2011-02-05 18:54:33 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2011-02-05 18:54:33 -0500 |
commit | ce85f48ca977fbb24fcf2319125e12686a235194 (patch) | |
tree | a750fdbe71193b885cdae7873b677141830d460c | |
parent | 7e444ac2a1af257c13ef49a8161982640e381375 (diff) |
LoopControl: Ensure that LoopControl is active if it is used
-rw-r--r-- | Carpet/LoopControl/src/loopcontrol.c | 5 |
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); |