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 13678 for NEMO/branches/2020/dev_r13327_KERNEL-06_2_techene_e3/src/NST/agrif_oce_update.F90 – NEMO

Ignore:
Timestamp:
2020-10-26T18:52:53+01:00 (4 years ago)
Author:
jchanut
Message:

#2385, qco with AGRIF

File:
1 edited

Legend:

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

    r13286 r13678  
    2727   USE vremap         ! Vertical remapping 
    2828   USE lbclnk  
    29  
     29#if defined key_qco 
     30   USE domqco 
     31#endif 
    3032   IMPLICIT NONE 
    3133   PRIVATE 
     
    3436   PUBLIC   Update_Scales 
    3537 
     38   !! * Substitutions 
     39#  include "domzgr_substitute.h90" 
    3640   !!---------------------------------------------------------------------- 
    3741   !! NEMO/NST 4.0 , NEMO Consortium (2018) 
     
    191195   END SUBROUTINE Agrif_Update_Tke 
    192196 
    193  
    194197   SUBROUTINE Agrif_Update_vvl( ) 
    195198      !!--------------------------------------------- 
     
    201204      IF (lwp.AND.lk_agrif_debug) Write(*,*) 'Update e3 from grid Number',Agrif_Fixed(), 'Step', Agrif_Nb_Step() 
    202205      ! 
     206#if ! defined key_qco 
    203207      Agrif_UseSpecialValueInUpdate = .TRUE. 
    204208      Agrif_SpecialValueFineGrid = 0. 
     
    213217      CALL dom_vvl_update_UVF 
    214218      CALL Agrif_ParentGrid_To_ChildGrid() 
     219#else 
     220!! JC: should be something like that:  
     221      CALL Agrif_ChildGrid_To_ParentGrid() 
     222      CALL dom_qco_r3c( ssh(:,:,Kbb_a), r3t(:,:,Kbb_a), r3u(:,:,Kbb_a), r3v(:,:,Kbb_a) ) 
     223      CALL dom_qco_r3c( ssh(:,:,Kmm_a), r3t(:,:,Kmm_a), r3u(:,:,Kmm_a), r3v(:,:,Kmm_a), r3f(:,:) )  
     224      CALL Agrif_ParentGrid_To_ChildGrid() 
     225#endif 
    215226      ! 
    216227   END SUBROUTINE Agrif_Update_vvl 
    217228 
     229#if ! defined key_qco 
    218230   SUBROUTINE dom_vvl_update_UVF 
    219231      !!--------------------------------------------- 
     
    224236      REAL(wp):: zcoef 
    225237      !!--------------------------------------------- 
    226  
    227238      IF (lwp.AND.lk_agrif_debug) Write(*,*) 'Finalize e3 on grid Number', & 
    228239                  & Agrif_Fixed(), 'Step', Agrif_Nb_Step() 
     
    290301      ! 
    291302   END SUBROUTINE dom_vvl_update_UVF 
     303#endif 
    292304 
    293305#if defined key_vertical 
     
    13321344   END SUBROUTINE updateAVM 
    13331345 
     1346#if ! defined key_qco 
    13341347   SUBROUTINE updatee3t(ptab_dum, i1, i2, j1, j2, k1, k2, before ) 
    13351348      !!--------------------------------------------- 
     
    14431456      ! 
    14441457   END SUBROUTINE updatee3t 
     1458#endif 
    14451459 
    14461460#else 
Note: See TracChangeset for help on using the changeset viewer.