Issue launching with AGRIF from restart file

Hello,

I am currently trying to launch CROCO using AGRIF2WAY (# define AGRIF and # define AGRIF_2WAY) with a restart file.

At first, when I tried to create the nesting file, it did not work because my original restart file didn’t contain some grid variables that seems to be required to generate the nesting file with the MATLAB tool: nestgui. I am not sure how to control which parameters are written in the restart file (maybe in croco.in?).

I managed to create a croco_rst.nc.1 file anyway by manually adding the missing grid information. However, even though the file is created (without any errors), the simulation still does not start correctly.

Here is the output I get:

STEP time[DAYS] KINETIC_ENRG POTEN_ENRG TOTAL_ENRG NET_VOLUME trd
524160 0.00069 6.836584075E+71 4.0354342E+01 6.8365841E+71 3.4975628E+14 0
STEP time[DAYS] KINETIC_ENRG POTEN_ENRG TOTAL_ENRG NET_VOLUME trd
524160-43828.99983 2.752809022E-03 1.3950003E+00 1.3977531E+00 2.8071701E+10 0
524161-43828.99965 2.757155554E-03 1.3949985E+00 1.3977556E+00 2.8071695E+10 0
524162-43828.99948 NaN NaN NaN NaN 0
Abort(537542414) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Wait: Message truncated, error stack:
PMPI_Wait(220): MPI_Wait(request=0x86a5e4, status=0x86a414) failed
MPIR_Wait(116):
(unknown)(): Message truncated

You can find my restart files here: croco_rst.nc and croco_rst.nc.1

NB: I also had to set the unit of scrum_time in croco_rst.nc.1 to “seconds since 1900-01-01 00:00:00” in order to use the CPP key USE_CALENDAR.

Does anybody already had problem ?

I look forward to any comments.
Thanks.
Alice

Hello again,

Here is an update on some tests I did to find out whether MPI_NOLAND is compatible with AGRIF, and whether it is possible to run an AGRIF simulation using a restart file generated from a configuration that uses MPI_NOLAND.

TEST: AGRIF configuration with #undef MPI_NOLAND**:**

  • When running from an initial file created with crocopytools: everything works fine.
  • When running from a restart file generated by a CROCO configuration without MPI_NOLAND: everything works fine.
  • When running from a restart file generated by a CROCO configuration with MPI_NOLAND, I get the following error:
    STEP time[DAYS] KINETIC_ENRG POTEN_ENRG TOTAL_ENRG NET_VOLUME trd
    1440 0.00069 6.836708168E+71 4.0425654E+01 6.8367082E+71 3.4974993E+14 0
    STEP time[DAYS] KINETIC_ENRG POTEN_ENRG TOTAL_ENRG NET_VOLUME trd
    1440-43464.99983 1.040738239E-02 1.3448911E+00 1.3552984E+00 2.8045487E+10 0
    1441-43464.99965 1.043865534E-02 1.3448886E+00 1.3553273E+00 2.8045482E+10 0
    1442-43464.99948 NaN NaN NaN NaN 0

TEST: AGRIF configuration with #define MPI_NOLAND**:**

  • Regardless of the input file used, I always get the following error:
    2020-01-01 00:00:00
    Reading mask file failed

My conclusion is:
It seems that AGRIF cannot be used with MPI_NOLAND, whether using a restart file generated from a configuration with MPI_NOLAND, or when using both options (AGRIF and MPI_NOLAND) simultaneously.

I look forward to any comments.
Thanks.
Alice