Defining a string-based analysis batch queue

The following example illustrates the use of the environment file parameters for string-based analysis batch queue definition:

    try:
        queue_name=list(queue_name)
    except:
        queue_name = [ ]
    queue_name=queue_name + ["aba_short", "aba_long", "hold "]
    after_prefix="-a"
    queue_prefix="-q"
    queue_cmd="qsub -nr -me %P %Q %A %T -x -eo -o %L %S"
    aba_short="qsub -nr -me -q short %A %T -x -eo -o %L %S"
    aba_long="qsub -nr -me -q long %A %T -x -eo -o %L %S"
    hold="printf 'Job %S not submitted\n' " 
The qsub command used in this example is available only on certain computer systems. Other commands, such as at and batch, can be used to configure a queuing system on most Linux platforms. Please refer to your system documentation or contact your hardware vendor for information about queuing systems for your platform.

If the queue specified by the queue command line option matches one of the queue aliases in the queue_name parameter, that queue command is used in place of the default command queue_cmd. The following are legal command line options for the above example:

abaqus job=qt queue=normal
abaqus job=qt queue=aba_short after=10:00 
abaqus job=qt queue=hold

The first of these three command line options does not match a defined queue, so the queue_cmd string is used to submit the job to the normal queue. This queue must have been set up by the systems manager prior to submission of the job. The actual command used to send the job to the normal queue for execution on Linux platforms is

qsub -nr -me -q normal -x -eo -o qt.log qt.com

The value of %A is not output if after=time is not specified on the command line.

The second option uses the string defined by aba_short, which submits the job to the system predefined short queue. The command executed by the Linux platform is

qsub -nr -me -q short -a 10:00 -x -eo -o qt.log qt.com

The last command line option creates the file qt.com, which contains the Abaqus job commands, and saves it in the current directory. The message Job qt.com not submitted is then written to the terminal. The job is not submitted to any queue.