compass.model.run_model

compass.model.run_model(step, update_pio=True, partition_graph=True, graph_file='graph.info', namelist=None, streams=None)[source]

Run the model after determining the number of cores

Parameters
  • step (compass.Step) – a step

  • update_pio (bool, optional) – Whether to modify the namelist so the number of PIO tasks and the stride between them is consistent with the number of nodes and cores (one PIO task per node).

  • partition_graph (bool, optional) – Whether to partition the domain for the requested number of cores. If so, the partitioning executable is taken from the partition option of the [executables] config section.

  • graph_file (str, optional) – The name of the graph file to partition

  • namelist (str, optional) – The name of the namelist file, default is namelist.<core>

  • streams (str, optional) – The name of the streams file, default is streams.<core>