I am trying to create restart files for my AGRIF nest, I use the agrif_create_restart.exe tool, and at first it seems to work: some fields are indeed created and they look good (i.e.: they look like an interpolation of the given field on the higher resolution nest).
But at some point I get this kind of error: unable to store variable ssu_m in file
I thought it was a disk or memory issue at first, but it does not help to increase memory or disk space.
Any idea ?
Hi Robinson, That error message is issued by io_netcdf.f90 (tools/NESTING/src). There are about five possibilities where the return status from a netcdf call is checked against nf90_strerror but its actual value is not reported. You will get more information if you add :
write(*,*) trim(nf90_strerror(status))
to those checks.
My guess is that you’ve got some NaNs in that field.
ok, now it works… i will not tell you why it did not work because i’m a bit ashamed, ok i tell you, there was no more disk space (but it was not that easy to see because of some group permission… so i have kinda have an excuse but thanks Andrew for letting me know about the error messages…).
But it does not work fully because my 1_restart.nc file stops being created when it reaches 2.5 GB. Since it’s a “classic” file I guess this makes sense, maximum size.
Do you know of any workaround without changing the code ? I compiled the agrif tools with the same arch file as that for Nemo4 which itself creates huge netcdf files all the time and like a charm…
And one extra precision, what is strange is that all the AGRIF file created before (domain_cfg.nc etc…) are in Netcdf 4.
So it works to create Netcdf 4 with the AGRIF tools…