compass.Step.update_namelist_at_runtime

Step.update_namelist_at_runtime(options, out_name=None)[source]

Update an existing namelist file with additional options. This would typically be used for namelist options that are only known at runtime, not during setup, typically those related to the number of nodes and cores.

Parameters:
  • options (dict) – A dictionary of options and value to replace namelist options with new values

  • out_name (str, optional) – The name of the namelist file to write out, namelist.<core> by default