Changeset 9453


Ignore:
Timestamp:
2018-04-03T14:57:44+02:00 (3 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.