# Schedule definitions for thorn SimpleWorm # $Header$ schedule SWorm_StartupServer at STARTUP before HTTP_Startup { LANG:C } "Startup routine for Client/Master HTTP" ############ # Client: ############ if (! master) { schedule SimpleWorm_Startup at STARTUP before IOHDF5Util_Startup { LANG:C } "Register default machine finder algorithms / set checkpoint port" schedule SWorm_Init at INITIAL { LANG:C } "Initialize generation count, session id for first worm" if (CCTK_Equals (mf_test, "yes")) { schedule TestMF at INITIAL { LANG:C } "Testrun for the MachineFinder" } schedule SWorm_LocalData at POSTSTEP { LANG:C } "Collect local data AFTER checkpoint/ increase generation count"" schedule SWorm_ContactEvery at POSTSTEP after SWorm_LocalData { LANG:C } "Contact master process to pass timing info regularly" if (CCTK_Equals (wtransfer, "stream")) { schedule SWorm_SpawnNextClient at TERMINATE BEFORE (IOStreamedHDF5_TerminationCheckpoint Driver_Terminate) { LANG:C } "Migrate the worm to the next client" } else { schedule SWorm_SpawnNextClient at TERMINATE AFTER IOHDF5_TerminationCheckpoint BEFORE Driver_Terminate { LANG:C } "Migrate the worm to the next client" } }