#include #include "cctk.h" #include "cctk_Parameters.h" int IOJpeg_Output2DGH(cGH *GH); int IOJpeg_TriggerOutput2D(cGH *GH, int); int IOJpeg_TimeFor2D(cGH *GH, int); int IOJpeg_Output2DVarAs(cGH *GH, const char *var, const char *alias); void *IOJpeg_SetupGH (tFleshConfig *config, int convergence_level, cGH *GH); int IOJpeg_InitGH (cGH *GH); void IOJpeg_Startup (void) { DECLARE_CCTK_PARAMETERS int IO_GHExtension; int IOMethod; if (CCTK_GHExtensionHandle ("IO") < 0) { CCTK_WARN (1, "Thorn IOUtil was not activated. " "No IOJpeg IO methods will be enabled."); return; } if (CCTK_GHExtensionHandle ("PUGH") < 0) { CCTK_WARN (1, "Thorn PUGH was not activated. " "No IOJpeg IO methods will be enabled."); return; } IO_GHExtension = CCTK_RegisterGHExtension ("IOJpeg"); CCTK_RegisterGHExtensionSetupGH (IO_GHExtension, IOJpeg_SetupGH); CCTK_RegisterGHExtensionInitGH (IO_GHExtension, IOJpeg_InitGH); /* Register the 2D IOJpeg routines as output methods */ IOMethod = CCTK_RegisterIOMethod ("IOJpeg_2D"); CCTK_RegisterIOMethodOutputGH (IOMethod, IOJpeg_Output2DGH); CCTK_RegisterIOMethodOutputVarAs (IOMethod, IOJpeg_Output2DVarAs); CCTK_RegisterIOMethodTimeToOutput (IOMethod, IOJpeg_TimeFor2D); CCTK_RegisterIOMethodTriggerOutput (IOMethod, IOJpeg_TriggerOutput2D); }