Running+an+OPTIMA2D+Test+Case

Prerequisites
toc Before running an Optima2D test case make sure: >> where //xx// is your operating system (ie. i686, ia64)
 * to read (skim over) the user manual for OPTIMA2D
 * that OPTIMA2D is installed:
 * compile a working version of OPITMA2D using the make file
 * have the executable //OPTIMA2D_xx// in a directory in your PATH variable //**or**// know where this executable is located;
 * to have the required files for your test case:
 * have an //opt.inp// file (input file for the run)
 * if you are using SNOPT, make sure to have a //SNOPT.spc// file
 * have a grid file (i.e. //grid-new.g//) with the prefix stated in //opt.inp//
 * if you running an optimization, also make sure to have the files: //{}.bsp// and //{}.dvs// (with same prefix as last step)

Running a test case
> **$ cd //{folder name}//** > **$ rm rest*** > **rest00** > **rest00** > **F** > **F** > **$ OPTIMA2D_//xx// > screen** > or alternatively if the command is not in your PATH variable run > **$ //{location}///optima/optima2D/OPTIMA2D_//xx// > screen** > **$ tail -f rest00-00.his** > for the flow-solve convergence history //or// > **$ tail -f screen** > for the optimization process
 * 1) Create a new folder with the test case number (ie. 001) and copy all the input files into that folder (grids, //opt.inp//, ect.)
 * 2) Go to the new folder and remove any previous run output files by the following commands:
 * 1) Create (or edit) the file //file_prefixes// to have the following four lines:
 * 1) Run OPTIMA2D using an output file
 * 1) [Optional] Track Optima2D by using the following commands on a different terminal
 * 1) Wait until the command finishes
 * 2) Look at the output and pray for no errors
 * 3) [Optional] Celebrate

Restarting a run
If you killed the process in the middle of a run you can restart it by: Please note: do //not// remove the files from the previous runs. Optima will use the restart information to continue from where it left off.
 * $ cd //{folder}//**
 * $ OPTIMA2D_//xx// > screen**

Running on hpacf or scinet
Ask someone.