compass.landice.tests.mismipplus.tasks.get_ntasks_from_cell_count¶
- compass.landice.tests.mismipplus.tasks.get_ntasks_from_cell_count(config, cell_count)[source]¶
Computes ntasks and min_tasks based on mesh size (i.e. cell_count)
- Parameters:
config (compass.config.CompassConfigParser) – Configuration options for the test case the step belongs to
cell_count (int) – Number of horizontal cells in the mesh. The value of this parameter is calculated (or approximated) using the functions below.
- Returns:
ntasks (int) – The target number of MPI tasks
min_tasks (int) – The minimum number of tasks