Good evening
I have recently installed nemo 4.0 on a local Ubuntu machine. The code runs perfectly and outputs everything correctly in np
different .nc
files. The same code works as expected on other systems. However, rebuild_nemo
is not capable of rebuilding the files. I have noticed that the ocean.output
file gives me a different layout of domain decomposition than the one actually outputted, so I am suspecting that there is actually a correlation between these two things. Below a copy-paste of the ocean.output
figure
MPI Message Passing MPI - domain lay out over processors
defines mpp subdomains
jpni = 5
jpnj = 3
sum ilci(i,1) = 100 jpiglo = 92
sum ilcj(1,j) = 66 jpjglo = 62
****************************************************************
* * * * *
3 * 20 x 22 * 20 x 22 * 20 x 22 * 20 x 22 *
* 10 * 11 * 12 * 13 *
* * * * *
****************************************************************
* * * * *
2 * 20 x 22 * 20 x 22 * 20 x 22 * 20 x 22 *
* 5 * 6 * 7 * 8 *
* * * * *
****************************************************************
* * * * *
1 * 20 x 22 * 20 x 22 * 20 x 22 * 20 x 22 *
* 0 * 1 * 2 * 3 *
* * * * *
****************************************************************
1 2 3 4
****************
* *
3 * 20 x 22 *
* 14 *
* *
****************
* *
2 * 20 x 22 *
* 9 *
* *
****************
* *
1 * 20 x 22 *
* 4 *
* *
****************
5
resulting internal parameters :
nproc = 0
nowe = -1 noea = 1
nono = 5 noso = -1
nbondi = -1
nbondj = -1
npolj = 0
l_Iperio = F
l_Jperio = F
nlci = 20
nlcj = 22
nimpp = 1
njmpp = 1
nreci = 2
nrecj = 2
nn_hls = 1
mpp_init_ioipsl : iloc = 20 22
~~~~~~~~~~~~~~~ iabsf = 1 1
ihals = 0 0
ihale = 1 1
As you can see, according to ocean.output
I have 20x22 grid points subdomains. However, the domain is actually “sliced” along only one axis. Below, the result of ncdump -h output_0000.nc
dimensions:
axis_nbounds = 2 ;
x = 92 ;
y = 5 ;
deptht = 31 ;
time_counter = UNLIMITED ; // (1080 currently)
[...]
// global attributes:
:name = "GYRE_5d_00010101_00151230_grid_T" ;
:description = "ocean T grid variables" ;
:title = "ocean T grid variables" ;
:Conventions = "CF-1.6" ;
:timeStamp = "2024-Jul-10 16:03:44 GMT" ;
:uuid = "001c09ff-ba70-43fc-871b-37186c6833bf" ;
:ibegin = 0 ;
:ni = 92 ;
:jbegin = 0 ;
:nj = 5 ;
:DOMAIN_number_total = 15 ;
:DOMAIN_number = 0 ;
:DOMAIN_dimensions_ids = 2, 3 ;
:DOMAIN_size_global = 92, 62 ;
:DOMAIN_size_local = 92, 5 ;
:DOMAIN_position_first = 1, 1 ;
:DOMAIN_position_last = 92, 5 ;
:DOMAIN_halo_size_start = 0, 0 ;
:DOMAIN_halo_size_end = 0, 0 ;
:DOMAIN_type = "box" ;
When I execute rebuild_nemo, It gives me
Rebuilding the following files:
GYRE_5d_00010101_00151230_grid_W_0000.nc
[...]
GYRE_5d_00010101_00151230_grid_W_0013.nc
GYRE_5d_00010101_00151230_grid_W_0014.nc
Size of global arrays: 92 62
Finding rebuild dimensions from the first file...
Rebuilding across dimensions x and y
Copying attribute name into destination file...
Copying attribute description into destination file...
Copying attribute title into destination file...
Copying attribute Conventions into destination file...
Copying attribute timeStamp into destination file...
Copying attribute uuid into destination file...
Copying attribute ibegin into destination file...
Copying attribute ni into destination file...
Copying attribute jbegin into destination file...
Copying attribute nj into destination file...
Writing new file_name attribute
Writing new TimeStamp attribute
ERROR! : NetCDF: Name contains illegal characters
*** NEMO rebuild failed ***
Any reason for this behavior and any idea on how to solve it (not involving writing myself a custom rebuild_nemo
)?
thanks to all