New URL for NEMO forge!   http://forge.nemo-ocean.eu

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.
Changeset 9453 for branches/2017 – NEMO

Changeset 9453 for branches/2017


Ignore:
Timestamp:
2018-04-03T14:57:44+02:00 (6 years ago)
Author:
clem
Message:

ensure that agrif works in debug mode. Agrif actually needs ua and va to be set to 0 at initialization, so that agrif_opa_sponge does not crash for floating point exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DOM/istate.F90

    r9124 r9453  
    7878      tsa  (:,:,:,:) = 0._wp                                   ! set one for all to 0 at level jpk 
    7979      rab_b(:,:,:,:) = 0._wp   ;   rab_n(:,:,:,:) = 0._wp      ! set one for all to 0 at level jpk 
     80#if defined key_agrif 
     81      ua   (:,:,:  ) = 0._wp   ! used in agrif_opa_sponge at initialization 
     82      va   (:,:,:  ) = 0._wp   ! used in agrif_opa_sponge at initialization     
     83#endif 
    8084 
    8185      IF( ln_rstart ) THEN                    ! Restart from a file 
Note: See TracChangeset for help on using the changeset viewer.