New URL for NEMO forge!

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
#1892 (AGRIF time step fixer) – NEMO

Opened 7 years ago

Closed 7 years ago

#1892 closed Defect (fixed)

AGRIF time step fixer

Reported by: mdunphy Owned by: jchanut
Priority: low Milestone:
Component: AGRIF Version: v3.6
Severity: minor Keywords:
Cc: jchanut



If you set the wrong time step for the child grid, the model corrects it with a message like this:

===>>> : W A R N I N G
incompatible time step between grids
parent grid value :           120
child  grid value :           120
value on child grid will be changed to :           40

However, this correction occurs too late in the initialization, and the wrong value is propagated to other variables before it is corrected.


The routine dom_stp sets rdttra(:) = rdt after we read namelist namdom, but before the time step controlling above, so the model proceeds with the uncontrolled time step for tracers (despite using the correct controlled time step for dynamics)


Option 1) the controlling of the child grid time step should move from agrif_user.F90/Agrif_InitValues_cont to domain.F90/dom_nam where we read namelist namdom

Option 2) change agrif_user.F90/Agrif_InitValues_cont to stop upon mismatch because it is too late to 'fix' the value at this stage of the initialization

Commit History (1)


Add stop if uncompatible time steps between AGRIF grids, #1892

Attachments (1)

agrifcontrol.patch (4.8 KB) - added by mdunphy 7 years ago.
Patch for Fix #1, moving the control from agrif_user.F90 to domain.F90

Download all attachments as: .zip

Change History (4)

comment:1 Changed 7 years ago by clevy

  • Owner changed from nemo to jchanut

Changed 7 years ago by mdunphy

Patch for Fix #1, moving the control from agrif_user.F90 to domain.F90

comment:2 Changed 7 years ago by clevy

  • Cc jchanut added
  • Status changed from new to assigned

comment:3 Changed 7 years ago by jchanut

  • Resolution set to fixed
  • Severity set to minor
  • Status changed from assigned to closed
  • Type changed from Bug to Defect

Thanks for reporting this.
Option 2), ie a "STOP" has in fact already been retained in the trunk. Probably better to put AGRIF stuff as much as possible in AGRIF modules.
Changes done at revision 8636

Note: See TracTickets for help on using tickets.