diff options
-rw-r--r-- | src/StaticBoundary.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/StaticBoundary.c b/src/StaticBoundary.c index fdd11ac..3c0f840 100644 --- a/src/StaticBoundary.c +++ b/src/StaticBoundary.c @@ -1018,6 +1018,13 @@ static int ApplyBndStatic (const cGH *GH, var < first_var + num_vars; var++) { + if (CCTK_ActiveTimeLevelsVI(GH, var) < 2) + { + CCTK_VWarn(0, __LINE__, __FILE__, CCTK_THORNSTRING, + "Static Boundary condition needs at least two timelevels " + "active, but %s only has %d.", + CCTK_FullName(var), CCTK_ActiveTimeLevelsVI(GH, var)); + } /* Apply condition if: + boundary is an outer boundary + have enough grid points |