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 13693 – NEMO

Changeset 13693


Ignore:
Timestamp:
2020-10-28T17:34:14+01:00 (3 years ago)
Author:
jchanut
Message:

#2385, change r3x update with AGRIF: Avoid passing arguments to a subroutine while swapping grids

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13327_KERNEL-06_2_techene_e3/src/NST/agrif_oce_update.F90

    r13680 r13693  
    219219#else 
    220220      CALL Agrif_ChildGrid_To_ParentGrid() 
    221          r3t(:,:,Krhs_a) = r3t(:,:,Kmm_a) 
    222          r3u(:,:,Krhs_a) = r3u(:,:,Kmm_a) 
    223          r3v(:,:,Krhs_a) = r3v(:,:,Kmm_a) 
    224          CALL dom_qco_zgr( Kbb_a, Kmm_a, Krhs_a ) 
     221      CALL Agrif_Update_qco 
    225222      CALL Agrif_ParentGrid_To_ChildGrid() 
    226223#endif 
    227224      ! 
    228225   END SUBROUTINE Agrif_Update_vvl 
     226 
     227 
     228#if defined key_qco 
     229   SUBROUTINE Agrif_Update_qco 
     230      !!--------------------------------------------- 
     231      !!       *** ROUTINE dom_Update_qco *** 
     232      !!--------------------------------------------- 
     233      ! 
     234      ! Save arrays prior update (needed for asselin correction) 
     235      r3t(:,:,Krhs_a) = r3t(:,:,Kmm_a) 
     236      r3u(:,:,Krhs_a) = r3u(:,:,Kmm_a) 
     237      r3v(:,:,Krhs_a) = r3v(:,:,Kmm_a) 
     238 
     239      ! Update r3x arrays from updated ssh 
     240      CALL dom_qco_zgr( Kbb_a, Kmm_a, Krhs_a ) 
     241      ! 
     242   END SUBROUTINE Agrif_Update_qco 
     243#endif 
     244 
    229245 
    230246#if ! defined key_qco 
Note: See TracChangeset for help on using the changeset viewer.