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 14218 for NEMO/trunk/src/NST/agrif_user.F90 – NEMO

Ignore:
Timestamp:
2020-12-18T17:44:52+01:00 (4 years ago)
Author:
jchanut
Message:

#2222, Fixes uninitialized arrays with vertical remap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/NST/agrif_user.F90

    r14170 r14218  
    272272                   
    273273            CALL Agrif_check_bat( kindic_agr )            
    274  
    275             CALL mpp_sum( 'agrif_InitValues_Domain', kindic_agr ) 
    276             IF( kindic_agr /= 0 ) THEN 
    277                CALL ctl_stop('==> Child Bathymetry is NOT correct near boundaries.') 
    278             ELSE 
    279                IF(lwp) WRITE(numout,*) '==> Child Bathymetry is ok near boundaries.' 
    280                IF(lwp) WRITE(numout,*) ' ' 
    281             ENDIF   
    282274         ENDIF 
     275         ! 
     276         CALL mpp_sum( 'agrif_InitValues_Domain', kindic_agr ) 
     277         IF( kindic_agr /= 0 ) THEN 
     278            CALL ctl_stop('==> Child Bathymetry is NOT correct near boundaries.') 
     279         ELSE 
     280            IF(lwp) WRITE(numout,*) '==> Child Bathymetry is ok near boundaries.' 
     281            IF(lwp) WRITE(numout,*) ' ' 
     282         ENDIF   
    283283      ENDIF 
    284284      ! 
     
    532532      CALL Agrif_Set_bc(   ub2b_cor_id, (/-imaxrho*nn_shift_bar,ind1/) ) 
    533533      CALL Agrif_Set_bc(   vb2b_cor_id, (/-imaxrho*nn_shift_bar,ind1/) ) 
    534       IF( ln_zdftke.OR.ln_zdfgls ) CALL Agrif_Set_bc( avm_id, (/0,ind1/) ) 
     534      IF( ln_zdftke.OR.ln_zdfgls ) CALL Agrif_Set_bc( avm_id, (/0,ind1-1/) ) 
    535535!!$      CALL Agrif_Set_bc(glamt_id, (/0,ind1-1/) )   
    536536!!$      CALL Agrif_Set_bc(gphit_id, (/0,ind1-1/) )   
Note: See TracChangeset for help on using the changeset viewer.