cape.pylava.cmdgen: Create commands for LAVA executables

This module provides the function superlava() to generate the command-line call to use the superlava executable. This includes the various aspects of the mpiexec or similar call that might be utilized to run superlava in parallel.

cape.pylch.cmdgen.chem(opts: OptionsDict | None = None, j: int = 0, **kw)

Interface to Loci/CHEM binary

Call:
>>> cmdi = chem(opts, i=0)
Inputs:
opts: Options

Options instance, either global or RunControl

j: {0} | int

Phase number

Outputs:
cmdi: list[str]

Command split into a list of strings

Versions:
  • 2024-10-17 @ddalle: v1.0

cape.pylch.cmdgen.find_restart_iter() str | None

Find latest Loci/CHEM restart number within current folder

Call:
>>> r = find_restart_iter()
Outputs:
r: str

Text of an integer of the most recent restart folder

Versions:
  • 2024-10-17 @ddalle: v1.0