diff options
Diffstat (limited to 'src/Startup.c')
-rw-r--r-- | src/Startup.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Startup.c b/src/Startup.c index 2f9ada8..38ad63b 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -51,6 +51,20 @@ void IOPanda_Startup (void) int IO_GHExtension; int IOMethod; + + if (CCTK_GHExtensionHandle ("IO") < 0) + { + CCTK_WARN (1, "Thorn IOUtil was not activated. " + "No IOPanda IO methods will be enabled."); + return; + } + if (CCTK_GHExtensionHandle ("PUGH") < 0) + { + CCTK_WARN (1, "Thorn PUGH was not activated. " + "No IOPanda IO methods will be enabled."); + return; + } + IO_GHExtension = CCTK_RegisterGHExtension ("IOPanda"); CCTK_RegisterGHExtensionSetupGH (IO_GHExtension, IOPanda_SetupGH); CCTK_RegisterGHExtensionInitGH (IO_GHExtension, IOPanda_InitGH); |