diff options
Diffstat (limited to 'src/Startup.c')
-rw-r--r-- | src/Startup.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Startup.c b/src/Startup.c index f58a5a0..4d1cb19 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -41,15 +41,20 @@ static void *SetupGH (tFleshConfig *config, int conv_level, cGH *GH); @author Thomas Radke @desc The startup registration routine for IOJpeg. - Registers the GH extensions needed for IOJpeg - along with its setup routine. + Registers the GH extensions needed for IOJpeg, + along with its setup routine, if there are grid variables + of at least dimensionality of 2. @enddesc @calls CCTK_RegisterGHExtension CCTK_RegisterGHExtensionSetupGH @@*/ void IOJpeg_Startup (void) { - CCTK_RegisterGHExtensionSetupGH (CCTK_RegisterGHExtension("IOJpeg"), SetupGH); + if (CCTK_MaxDim () >= 2) + { + CCTK_RegisterGHExtensionSetupGH (CCTK_RegisterGHExtension ("IOJpeg"), + SetupGH); + } } |