General ressources:
Compiling on a local Ubuntu machine¶
Follow the instructions given in the CEFI-regional-MOM6 Users Guide. This guide is generally comprehensive. Below are minor departures from the guide I found necessary to get the model up and running of an Ubuntu 24.04.1 LTS machine.
‘mkmf’ template¶
Under point 2.3 you are asked to choose a .mk file. Use the “Jammy” ubuntu file: “linux
Then build the model following the instructions in the guide.
Locating the executable¶
The last instruction under point 2.3 suggests the executable should be located here:
builds/build/YOUR_MACHINE_DIRECTORY-NAME_OF_YOUR_mk_FILE/ocean_ice/repro/MOM6SIS2In my case, the
YOUR_MACHINE_DIRECTORY-NAME_OF_YOUR_mk_FILE was created as two directories where
-NAME_OF_YOUR_mk_FILEwas a sub-directory to
YOUR_MACHINE_DIRECTORYIn order to reach the executable, I needed to remove the hypthen. The executable was located here:
builds/build/YOUR_MACHINE_DIRECTORY/NAME_OF_YOUR_mk_FILE/ocean_ice/repro/MOM6SIS2 Compiling on ARCHER2¶
Follow the instructions given in the CEFI-regional-MOM6 Users Guide. Specific modifications needed for compilation on Archer2 (compilation environment and .mk file edits) are described here
Running the test experiment¶
You should now be able to run the example experiment following the guide. As an additional note, make sure to unzip the model input files into exps/, and check the OceanBGC_dataset file is located in the folder called OceanBGC_dataset and the OM4_025.JRA.single_column.tar.gz files are in the folder called OM4_025.JRA.single_column. Finally, go into the exps/OM4.single_column.COBALT/INPUT to make sure that all the soft links are working properly.