PEATSA/Core/PEATSAParallel.py
def PBSScriptFromConfiguration(configuration, arguments, runDirectory=None, logDirectory=None):

	'''Creates a launch script using the information specified by the configuration object
	
	The configuration object specifies the following parameters
		
		numberOfNodes
		processorsPerNode
		runDir
		logDir
		executable
		queue
		keep
		
	However runDir and logDir can be overridden	
		
	The arguments to the executable must be passed to this function'''	

	numberOfNodes = configuration.get('PARALLEL', 'numberOfNodes')
	processorsPerNode = configuration.get('PARALLEL', 'processorsPerNode')
	executable = configuration.get('PARALLEL', 'executable')
	
	if runDirectory is None:
		runDirectory = configuration.get('PARALLEL', 'runDirectory')
	if logDirectory is None:	
		logDirectory = configuration.get('PARALLEL', 'logDirectory')
	
	try:
		queue = configuration.get('PARALLEL', 'queue')
	except ConfigParser.NoOptionError:
		queue = "short"
		
	try:
		keep = configuration.get('PARALLEL', 'keep')
	except ConfigParser.NoOptionError:
		keep = False	

	pbsScript = CreatePBSLaunchScript(executable=executable,
			arguments=arguments,
			numberOfNodes=numberOfNodes,
			processorsPerNode=processorsPerNode,
			queue=queue,
			runDirectory=runDirectory,
			logDirectory=logDirectory,
			keep=keep)
	
	return pbsScript
Creates a launch script using the information specified by the configuration object
	
	The configuration object specifies the following parameters
		
		numberOfNodes
		processorsPerNode
		runDir
		logDir
		executable
		queue
		keep
		
	However runDir and logDir can be overridden	
		
	The arguments to the executable must be passed to this function
Creates a launch script using the information specified by the configuration object
The configuration object specifies the following parameters

numberOfNodes
processorsPerNode
runDir
logDir
executable
queue
keep

However runDir and logDir can be overridden

The arguments to the executable must be passed to this function
Creates a launch script using the information specified by the configuration object The configuration object specifies the following parameters numberOfNodes processorsPerNode runDir logDir executable queue keep However runDir and logDir can be overridden The arguments to the executable must be passed to this function
def PBSScriptFromConfiguration(configuration, arguments, runDirectory=None, logDirectory=None):
	numberOfNodes = configuration.get('PARALLEL', 'numberOfNodes')
	processorsPerNode = configuration.get('PARALLEL', 'processorsPerNode')
	executable = configuration.get('PARALLEL', 'executable')
	if runDirectory is None:
		runDirectory = configuration.get('PARALLEL', 'runDirectory')
	if logDirectory is None:	
		logDirectory = configuration.get('PARALLEL', 'logDirectory')
	try:
		queue = configuration.get('PARALLEL', 'queue')
	except ConfigParser.NoOptionError:
		queue = "short"
	try:
		keep = configuration.get('PARALLEL', 'keep')
	except ConfigParser.NoOptionError:
		keep = False	
	pbsScript = CreatePBSLaunchScript(executable=executable,
			arguments=arguments,
			numberOfNodes=numberOfNodes,
			processorsPerNode=processorsPerNode,
			queue=queue,
			runDirectory=runDirectory,
			logDirectory=logDirectory,
			keep=keep)
	return pbsScript
def PBSScriptFromConfiguration ( configuration , arguments , runDirectory = None , logDirectory = None ) : numberOfNodes = configuration . get ( 'PARALLEL' , 'numberOfNodes' ) processorsPerNode = configuration . get ( 'PARALLEL' , 'processorsPerNode' ) executable = configuration . get ( 'PARALLEL' , 'executable' ) if runDirectory is None : runDirectory = configuration . get ( 'PARALLEL' , 'runDirectory' ) if logDirectory is None : logDirectory = configuration . get ( 'PARALLEL' , 'logDirectory' ) try : queue = configuration . get ( 'PARALLEL' , 'queue' ) except ConfigParser . NoOptionError : queue = "short" try : keep = configuration . get ( 'PARALLEL' , 'keep' ) except ConfigParser . NoOptionError : keep = False pbsScript = CreatePBSLaunchScript ( executable = executable , arguments = arguments , numberOfNodes = numberOfNodes , processorsPerNode = processorsPerNode , queue = queue , runDirectory = runDirectory , logDirectory = logDirectory , keep = keep ) return pbsScript
Creates a launch script using the information specified by the configuration object
The configuration object specifies the following parameters
Creates a launch script using the information specified by the configuration object The configuration object specifies the following parameters
'''Creates a launch script using the information specified by the configuration object
	
	The configuration object specifies the following parameters
		
		numberOfNodes
		processorsPerNode
		runDir
		logDir
		executable
		queue
		keep
		
	However runDir and logDir can be overridden	
		
	The arguments to the executable must be passed to this function'''
configuration
arguments
runDirectory
logDirectory