Skip to content

parfile

StagYY par file handling.

StagyyPar dataclass

A Fortran namelist file written for StagYY.

from_main_par staticmethod

from_main_par(
    parfile: Path, read_parameters_dat: bool = True
) -> StagyyPar

Read StagYY namelist parfile.

The namelist is populated in order with:

  • par_name_defaultparameters if it is defined in parfile;
  • par_file itself;
  • parameters.dat if it can be found in the StagYY output directories and read_parameters_dat is True.