Stellarator-Tools
Command Line Arguments

Introduction

This contains a description of the command line arguments. All arguments take the form of

-arg=value

Command Line Arguments

ArgumentTakes ValueDiscription
-hNDisplays the help text and exits the program.
-mgridfYSpecify the mgrid input file name.
-woutfYSpecify the wout input file name.
-wvacfYSpecify the vacuum wout input file name.
-siestafYSpecify the siesta input file name.
-outfYSpecify the output input file name.
-logfYWrite screen output to a log file.
@fixed_wdith{-jv}NForce balance j^v from curl derived j^u. Overrdes the -ju flag.
@fixed_wdith{-ju}NForce balance j^u from curl derived j^v. @item3{@fixed_wdith{-p_start}, Y, Starting phi index to compute fields. If this flag is not set, default to index 1.} @item3{@fixed_wdith{-p_end}, Y, Ending phi index to compute fields. If this flag is not set, default to the last index.}
-paraYConfigures openmp parallelism. The value of this flag sets the maximum number of threads to use. A value of -1 uses the default. @item3{-force, N, Force override of error conditions. To prevent loss of valid data, BMW will terminate if an error condition is triggerd. This flag overrides that error potential overwritting valid data.}
-num_rYNumber radial points. Note not used when mgridf is specified.
-num_pYNumber toroidal points. Note not used when mgridf is specified.
-num_zYNumber vertial points. Note not used when mgridf is specified.
-rmaxYMaximum radial grid. Note not used when mgridf is specified.
-rminYMinimum radial grid. Note not used when mgridf is specified.
-zmaxYMaximum vertical grid. Note not used when mgridf is specified.
-zminYMinimum vertical grid. Note not used when mgridf is specified.
Note
OpenMP and MPI support must be configured at compile time to use. A simple way to check if support has been included is to check the command line help -h.

Programmers Reference

Reference material for the coding to implement command line parsing is found in the bmw_commandline_parser module.