Creating mesh_mask.nc file

Hi,

I am planning on running a HadGEM3 simulation with nudged SSTs. A Met Office colleague has pointed me to the man page for how to do this. It is here https://www.nemo-ocean.eu/doc/node29.html

I have a working HadGEM suite (which is an ssp245 suite with ozone redistribution) u-dt414 running on archer2. I have run the model for 1 day, with the nn_msh=1 in app/nemo_cice/rose-app.conf

When the model runs, it outputs 127 mesh_mask_0*.nc files which I now need to put back together into 1 mesh_mask.nc file for using nemo’s DMP_TOOLS .

I have found a couple of really useful blogs to help me do this which I will link to below.

I am doing my best to follow their suggestions but I feel like I am reinventing the wheel as these compiling steps are executed when the suite runs. My goal is to run ./rebuild_nemo with the mesh_mask option. Could I have some help short cutting the instructions on the blog? Specifically, can I use the .exe that is compiled and stored here: cylc-run/u-dt414/share/fcm_make_ocean/build-ocean/bin/nemo-cice.exe

Or do I need to compile the model manually as the blogs suggests?

Thanks in advance,

Penny

Hi Pen,

In theory, XIOS should do that for you. You should not need to merge on your the output files. Have you tried another suite?

Penny

I believe rebuild_nemo will combine the mask files into one (see tools/REBUILD_NEMO · 4.2.0 · NEMO Workspace / Nemo · GitLab )

There is a centrally built rebuild_nemo here:

/work/y07/shared/umshared/nemo/utils/src/REBUILD_NEMO/rebuild_nemo

Grenville

Thanks for the comments. I was able to getting it running for my N96 suite (with ORCA 1 degree) with the following:

I found the compiler I needed here:
/work/n01/shared/acc/arch-X86_ARCHER2-Cray.fcm

Which I was then able to rebuild nemo using
./maketools -m X86_ARCHER2-Cray -n REBUILD_NEMO

and put the mesh files together using:
./rebuild_nemo mesh_mask 128

Penny

1 Like

Glad it’s worked - any reason you could not use

/work/y07/shared/umshared/nemo/utils/src/REBUILD_NEMO/rebuild_nemo

Grenville

Hi Grenville,

The instructions online suggested I compile and run the build scripts with the code and compiler I use to run the model. This rebuild file was created in 2016 so I thought a new build was a good plan. I also had to compile other tools, so it was not much extra overhead.

Penny