example.pbs script for PBS client systems

The file example.pbs script, located in the binary folder of either the Workstation or Thinclient installation, is provided to assist you to launch on a PBS client system. Adjust it as necessary to meet your needs.

The example.pbs script performs the following two operations when you run it:

Job Setup

  1. runstudy is executed with the -dryrun option, to determine if any of the resultant commands begins with any of doe, optim or rb. If doe, optim, or rb is encountered, the Simulation Compute Manager (SCM) starts on each node allocated to it in the cluster. Otherwise, the script skips to the study execution operation.
  2. The SCM on the primary execution node is told that its pool of nodes to distribute jobs to is the other nodes in the cluster.

Study execution

The study is executed using the command runstudy <studyname>

Job clean-up

  1. For each node, the SCM is stopped and the local instance of it is removed. For diagnostic purposes we may wish to keep any log files in the event of failures.
  2. Temporary files and folders are removed.