compass.ocean.tests.global_ocean.tasks.get_ntasks_from_cell_count(config, at_setup, mesh_filename)[source]

Computes ntasks and min_tasks for a step based on the estimated (at setup) or exact (at runtime) mesh size

  • config (compass.config.CompassConfigParser) – Configuration options for the test case the step belongs to

  • at_setup (bool) – Whether this method is being run during setup of the step, as opposed to at runtime

  • mesh_filename (str) – A file containing the MPAS mesh (specifically nCells) if at_setup == False


  • ntasks (int) – The target number of MPI tasks for the step

  • min_tasks (int) – The minimum number of tasks for the step