# if a job might take over 2 days to be executed import os import sys import stat import math #Classes containing sweet compile/run basic option from mule_local.JobGeneration import * from mule.SWEETRuntimeParametersScenarios import * #Create main compile/run options jg = JobGeneration() # Request dedicated compile script jg.compilecommand_in_jobscript = False # Wallclock time max_wallclock_seconds = 2 * 24 * 60 * 60 ref_max_wallclock_seconds = 48 * 60 * 60 #Get Earth parameters (if necessary) earth = EarthMKSDimensions() # # Run simulation on plane or sphere # #Basic plane options CompileSWEPlane(jg) # Activate benchmark timers
import stat import math from mule.SWEETRuntimeParametersScenarios import * from mule_local.JobGeneration import * from mule.JobParallelization import * from mule.JobParallelizationDimOptions import * #Classes containing sweet compile/run basic option #from mule_local.JobGeneration import * #Create main compile/run options jg = JobGeneration() # Request dedicated compile script jg.compilecommand_in_jobscript = True # Wallclock time max_wallclock_seconds = 2 * 24 * 60 * 60 ref_max_wallclock_seconds = 48 * 60 * 60 jg.parallelization.max_wallclock_seconds = ref_max_wallclock_seconds # HPC stuff pspace = JobParallelizationDimOptions('space') pspace.num_cores_per_rank = jg.platform_resources.num_cores_per_node / 2 pspace.num_threads_per_rank = 8 pspace.num_ranks = 1 jg.setup_parallelization([pspace]) #Basic plane options CompileSWEPlane(jg)