#include #include "cctk.h" #include "cctk_Parameters.h" #include "IOJpeg.h" static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusIO_IOJpeg_Startup_c) void *IOJpeg_SetupGH (tFleshConfig *config, int convergence_level, cGH *GH); int IOJpeg_InitGH (cGH *GH); void IOJpeg_Startup (void); void IOJpeg_Startup (void) { DECLARE_CCTK_PARAMETERS int IO_GHExtension; int IOMethod; if (CCTK_GHExtensionHandle ("IO") < 0) { CCTK_WARN (1, "IOJpeg: Thorn IOUtil 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); if (CCTK_Equals (newverbose, "standard") || CCTK_Equals( newverbose, "full")) { CCTK_INFO ("I/O Method 'IOJpeg_2D' registered"); CCTK_INFO ("IOJpeg_2D: Output of 2D slices in 3D in Jpeg format"); } }