...
Please do not do this for MPAS-Seaice, as the resulting graph files are are not well load balanced (many cores are wasted on equatorial regions without sea ice).
Making better load balanced graph files for MPAS-Seaice
...
Create a conda environment with
mpas_tools
and the no-MPI verison version of ESMF:Code Block mamba create -y -n mpas_tools python=3.11 "mpas_toolstools>=0.20.0" "esmf=*8.2.0=nompi*" mamba activate mpas_tools
Download Run the sea ice graph generation tools
Code Block cd /lcrc/group/e3sm/public_html/inputdata/ice/mpas-seaice/<mesh_name> simple_seaice_partitions -m <mesh_file> -p partitions/mpas-seaice.graph.info.<creation_date> -n <core_count> <core_count> <core_count>
If you are not on LCRC, you need to download the required input files somewhere:
https://web.lcrc.anl.gov/public/e3sm/mpas_standalonedata/mpas-seaice/partition/seaice_QU60km_polar.nc
https://web.lcrc.anl.gov/public/e3sm/mpas_standalonedata/mpas-seaice/partition/icePresent_QU60km_polar.ncRun the sea ice graph generation tools
prepare_seaice_partitions -i seaice_QU60km_polar.nc -p icePresent_QU60km_polar.nc -m <mesh_file> -o . create_seaice_partitions -m <mesh_file> -o . -p mpas-seaice.graph.info.<creation_date> -n <core_count> <core_count> <core_count>Code Block and then point to them with the
-d
.
Group read/write and world read permission are added automatically, so you should not need to chmod the files.
The mesh file is a ifle file with the mesh you are trying to partition, typically seaice.*.nc
or mpassi.*.nc
in inputfiles/ice/mpas-seaice/<mesh_name>
. The creation date needs to match the creation date of other sea ice partition files in the partitions
directory (or it won't be found). You can provide multiple core task counts in one call to createsimple_seaice_partitions
, which will be much faster than calling that tool multiple times. Put the resulting mpas-seaice.graph.info.<cration_date>.part.<core_count>
files in /lcrc/group/e3sm/public_html/inputfiles/ice/mpas-seaice/<mesh_name>
The tool should take care of setting permissions as well.