diff options
Diffstat (limited to 'src/PughUtils.c')
-rw-r--r-- | src/PughUtils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/PughUtils.c b/src/PughUtils.c index 5bb9238..1c9eabf 100644 --- a/src/PughUtils.c +++ b/src/PughUtils.c @@ -56,6 +56,12 @@ const int *PUGH_Topology (const cGH *GH, int dim) { pGH *pughGH; + + if (dim <= 0) + { + CCTK_WARN (0, "Illegal dimension"); + } + pughGH = PUGH_pGH (GH); return pughGH->Connectivity[dim-1]->nprocs; |