Create your own Codes, Machines, and Execution Templates
The Job Submission Tool (JMT) allows you to fully customize it, adding your own codes, machines, and execution templates.
Creating a New Code
To create a new code:
Select “Window > Preferences” (on Mac, select “Dakota GUI > Preferences”).
Expand and select “Job Submission > Codes” to see a list of codes.
Note
Codes in bold are the built-in or predefined codes. Those not in bold are your custom codes that are only available to you.
Perform one of the following steps:
Select the New button.
If you want to start from one of your existing codes, select a code in the Preferences panel and select the Duplicate button.
Edit the code preferences in the Edit Code dialog. These values are used to identify input decks so that the corresponding code can be available in the “Submit Job” contextual menu item. The values you may edit include:
The code name.
The name patterns of the primary input file.
Unique content strings that can be used to identify the primary input deck.
Creating a New Machine
To create a new machine:
Select “Window > Preferences” (on Mac, select “Dakota GUI > Preferences”).
Select “Machines” to see a list of machines.
Note
Machines in bold are the built-in or predefined machines. Those not in bold are your custom machines that are only available to you.
Perform one of the following steps:
Select the New button.
If you want to start from one of your existing machines, select a machine in the Preferences panel and select the Duplicate button.
Edit the machine preferences in the Edit Machine dialog. The values you may edit include:
Machine name: The name of the machine.
Host: The url to the login node that will be used to submit jobs and do file transfers.
Base host: This is used if remote viz capabilities are provided to the machine. For example, if the login node is “shasta1.sandia.gov”, the base host will be “shasta”. The base host is passed to the corresponding viz script (e.g. ensight2shasta).
Port: Leave blank unless the machine uses another port for sftp.
Protocol: This is generally ftp for remote machines and file for your localhost.
Base Directory: The base scratch directory where you perform simulations (e.g. /scratch1/username).
Environment Path: This specifies the execution environment path for all ssh commands executed on the remote system. You’ll likely want to include $PATH somewhere in here to get the pre-existing environment path on the system.
Creating a New Execution Template
To create a new execution template:
Select “Window > Preferences” (on Mac, select “Dakota GUI > Preferences”).
Expand and select “Job Submission > Execution Templates” to see a list of execution templates.
Note
Templates in bold are the built-in or predefined execution templates. Those not in bold are your custom templates that are only available to you.
Perform one of the following steps:
Select the New button.
If you want to start from one of your existing templates, select an execution template in the Preferences panel and select the Duplicate button.
Edit the template preferences in the Edit Execution Template dialog. The values you may edit include:
Code. The code is usually not changed unless you are creating a new execution template.
Machine. The machine is usually not changed unless you are creating a new execution template.
Execution Tab:
Commands to execute. These are the commands you would type in an interactive terminal window to submit a job. If you are overriding these commands, or creating your own template, in order to monitor job status in the Job Status View, and have the post-processing commands run and have files returned when the job is complete, you must capture the job ID returned by the quing system from the submit call. This ID must be just the number. The ID must be writen in a file named with the
${job.id.filename}
variable inside the remote working directory. Examples of how do do this can be found in any of the built-in execution templates. You’ll note that the examples use thetee
command in order to allow the console output from the submit command to still come through the console that gets displayed in Dakota GUI when running a job.Script Name. Most jobs are submitted to the remote host’s queuing systems (such as Slurm). This is the name of the script that will be created and submitted in the “Commands to Execute” field.
Script contents. The contents of the script that will be submitted by the job submission system.
Post job commands. The commands that should be executed when the job is completed. This may include steps such as concatenating results files, or running a post-processing tool (e.g. matlab)to generate another results file. These commands are executed within a shell script.
Initial Values:
Output files. You can specify the file names or patterns (e.g. *.e) to be returned when the job is complete.