cape.pyover.options.runControl.RunControl
: Run control options¶
Options interface for aspects of running a case of OVERFLOW. The settings are
read from the "RunControl"
of a JSON file, and the contents of this section
are written to case.json
within each run folder.
The methods of cape.cfdx.options.runControl.RunControl
are also present.
These control options such as whether to submit as a PBS job, whether or not to
use MPI, etc.
This contains options that determine how long the solver is ran (primarily
via the "PhaseSequence"
and "PhaseIters"
options), what basic mode it
is run in (such as a submitted or local job or serial or MPI job), and options
for command-line options to the OVERFLOW binaries. There is also an
"Archive"
section that can be used for copying files and cleaning up after
one or more cases have been completed.
This module primarily provides a class pyOver.options.RunControl
. Many
of the options that are common to all solvers are inherited from
cape.cfdx.options.runControl.RunControl
. This class also has an interface
for environment variables and ulimit
parameters.
In particular, all of the commands available to the classes listed below are
also available to pyOver.options.runControl.RunControl
.
- Classes:
pyOver.options.runControl.RunControl
pyOver.options.runControl.overrun
pyOver.options.Archive.Archive
- See Also:
- class cape.pyover.options.runControl.RunControl(fname=None, **kw)¶
Dictionary-based interface for automated reports
- Call:
>>> opts = RunControl(**kw)
- Versions:
2016-02-01
@ddalle
: First version
- get_Prefix(i=None)¶
Get the project rootname, or file prefix
- Call:
>>> fpre = opts.get_Prefix()
- Inputs:
- opts:
pyOver.options.Options
Options interface
- opts:
- Outputs:
- fpre:
str
Name of OVERFLOW prefix
- fpre:
- Versions:
2016-02-01
@ddalle
: First version
- get_overrun_args(i=None)¶
Get extra arguments to overrun_cmd
- Call:
>>> fargs = opts.get_overrun_args(i)
- Inputs:
- opts:
pyOver.options.Options
Options interface
- i:
int
|None
Phase number
- opts:
- Outputs:
- fargs:
str
Extra command-line arguments/flags
- fargs:
- Versions:
2016-02-02
@ddalle
: First version
- get_overrun_aux(i=None)¶
Get auxiliary command-line inputs to
overrun
- Call:
>>> aux = opts.get_overrun_aux(i=None)
- Inputs:
- opts:
pyOver.options.Options
Options interface
- i:
int
Phase number
- opts:
- Outputs:
- aux:
str
String to be given with
-aux
flag
- aux:
- Versions:
2016-02-01
@ddalle
: First version
- get_overrun_cmd(i=None)¶
Get the name of the OVERFLOW binary to run
- Call:
>>> fcmd = opts.get_overrun_cmd(i)
- Inputs:
- opts:
pyOver.options.Options
Options interface
- i:
int
|None
Phase number
- opts:
- Outputs:
- fcmd:
str
Name of the command-line function to use
- fcmd:
- Versions:
2016-02-01
@ddalle
: First version
- get_overrun_kw(i=None)¶
Get other inputs to
overrun
- Call:
>>> kw = opts.get_overrun_kw(i=None)
- Inputs:
- opts:
pyOver.options.Options
Options interface
- i:
int
Phase number
- opts:
- Outputs:
- kw:
dict
Dictionary of additional arguments to
overrun
- kw:
- Versions:
2016-02-01
@ddalle
: First version
- get_overrun_nthreads(i=None)¶
Get number of OpenMP threads for
overrunmpi
- Call:
>>> nt = opts.get_overrun_nthreads(i=None)
- Inputs:
- opts:
pyOver.options.Options
Options interface
- i:
int
|None
Phase number
- opts:
- Outputs:
- nt: {
None
} |int
> 0 Number of OpenMP threads
- nt: {
- Versions:
2017-04-27
@ddalle
: First version
- class cape.pyover.options.runControl.overrun¶
Class for
overrun
command-line options- get_overrun_args(i=None)¶
Get extra arguments to overrun_cmd
- Call:
>>> fargs = opts.get_overrun_args(i)
- Inputs:
- opts:
pyOver.options.Options
Options interface
- i:
int
|None
Phase number
- opts:
- Outputs:
- fargs:
str
Extra command-line arguments/flags
- fargs:
- Versions:
2016-02-02
@ddalle
: First version
- get_overrun_aux(i=None)¶
Get auxiliary command-line inputs to
overrun
- Call:
>>> aux = opts.get_overrun_aux(i=None)
- Inputs:
- opts:
pyOver.options.Options
Options interface
- i:
int
Phase number
- opts:
- Outputs:
- aux:
str
String to be given with
-aux
flag
- aux:
- Versions:
2016-02-01
@ddalle
: First version
- get_overrun_cmd(i=None)¶
Get the name of the OVERFLOW binary to run
- Call:
>>> fcmd = opts.get_overrun_cmd(i)
- Inputs:
- opts:
pyOver.options.Options
Options interface
- i:
int
|None
Phase number
- opts:
- Outputs:
- fcmd:
str
Name of the command-line function to use
- fcmd:
- Versions:
2016-02-01
@ddalle
: First version
- get_overrun_kw(i=None)¶
Get other inputs to
overrun
- Call:
>>> kw = opts.get_overrun_kw(i=None)
- Inputs:
- opts:
pyOver.options.Options
Options interface
- i:
int
Phase number
- opts:
- Outputs:
- kw:
dict
Dictionary of additional arguments to
overrun
- kw:
- Versions:
2016-02-01
@ddalle
: First version
- get_overrun_nthreads(i=None)¶
Get number of OpenMP threads for
overrunmpi
- Call:
>>> nt = opts.get_overrun_nthreads(i=None)
- Inputs:
- opts:
pyOver.options.Options
Options interface
- i:
int
|None
Phase number
- opts:
- Outputs:
- nt: {
None
} |int
> 0 Number of OpenMP threads
- nt: {
- Versions:
2017-04-27
@ddalle
: First version