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 4793 for branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/NST_SRC – NEMO

Ignore:
Timestamp:
2014-09-26T14:38:42+02:00 (10 years ago)
Author:
rblod
Message:

dev_r4765_CNRS_agrif: changes for compatibily with TOP

Location:
branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/NST_SRC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/NST_SRC/agrif_top_interp.F90

    r4789 r4793  
    77   USE agrif_oce 
    88   USE agrif_top_sponge 
     9   USE par_trc 
    910   USE trc 
    1011   USE lib_mpp 
     
    1415   PRIVATE 
    1516 
    16    PUBLIC Agrif_trc 
     17   PUBLIC Agrif_trc, interptrn 
    1718 
    1819#  include "domzgr_substitute.h90"   
     
    4142   END SUBROUTINE Agrif_trc 
    4243 
    43    SUBROUTINE interptsn(ptab,i1,i2,j1,j2,k1,k2,n1,n2,before,nb,ndir) 
     44   SUBROUTINE interptrn(ptab,i1,i2,j1,j2,k1,k2,n1,n2,before,nb,ndir) 
    4445      !!--------------------------------------------- 
    45       !!   *** ROUTINE interptsn *** 
     46      !!   *** ROUTINE interptrn *** 
    4647      !!--------------------------------------------- 
    4748      REAL(wp), DIMENSION(i1:i2,j1:j2,k1:k2,n1:n2), INTENT(inout) :: ptab 
     
    5758 
    5859      IF (before) THEN          
    59          ptab(i1:i2,j1:j2,k1:k2,n1:n2) = tsn(i1:i2,j1:j2,k1:k2,n1:n2) 
     60         ptab(i1:i2,j1:j2,k1:k2,n1:n2) = trn(i1:i2,j1:j2,k1:k2,n1:n2) 
    6061      ELSE 
    6162         ! 
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/NST_SRC/agrif_top_sponge.F90

    r4789 r4793  
    44#if defined key_agrif && defined key_top 
    55   USE par_oce 
     6   USE par_trc 
    67   USE oce 
    78   USE dom_oce 
     
    1617   PRIVATE 
    1718 
    18    PUBLIC Agrif_Sponge_trc, interptrn 
     19   PUBLIC Agrif_Sponge_trc, interptrn_sponge 
    1920 
    2021   !! * Substitutions 
     
    4041      Agrif_SpecialValue=0. 
    4142      Agrif_UseSpecialValue = .TRUE. 
    42       tabspongetrn = .FALSE. 
     43      tabspongedone_trn = .FALSE. 
    4344      CALL Agrif_Bc_Variable(trn_sponge_id,calledweight=timecoeff,procname=interptrn_sponge) 
    4445      Agrif_UseSpecialValue = .FALSE. 
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/NST_SRC/agrif_top_update.F90

    r4789 r4793  
    88   USE dom_oce 
    99   USE agrif_oce 
     10   USE par_trc 
    1011   USE trc 
    1112   USE wrk_nemo   
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/NEMO/NST_SRC/agrif_user.F90

    r4790 r4793  
    150150   CALL Agrif_Set_Updatetype(e2v_id,update1 = Agrif_Update_Average, update2=Agrif_Update_Copy) 
    151151 
     152! High order updates 
     153!   CALL Agrif_Set_Updatetype(e1u_id,update1 = Agrif_Update_Average,            update2=Agrif_Update_Full_Weighting) 
     154!   CALL Agrif_Set_Updatetype(e2v_id,update1 = Agrif_Update_Full_Weighting,     update2=Agrif_Update_Average) 
     155    ! 
    152156END SUBROUTINE agrif_declare_var_dom 
    153157 
     
    404408   CALL Agrif_Set_Updatetype(avmv_id, update = AGRIF_Update_Average) 
    405409# endif 
     410 
     411! High order updates 
     412!   CALL Agrif_Set_Updatetype(tsn_id, update = Agrif_Update_Full_Weighting) 
     413!   CALL Agrif_Set_Updatetype(un_update_id,update1 = Agrif_Update_Average, update2 =                           Agrif_Update_Full_Weighting) 
     414!   CALL Agrif_Set_Updatetype(vn_update_id,update1 = Agrif_Update_Full_Weighting, update2 =                    Agrif_Update_Average) 
     415! 
     416!   CALL Agrif_Set_Updatetype(ub2b_update_id,update1 = Agrif_Update_Average, update2 =                           Agrif_Update_Full_Weighting) 
     417!   CALL Agrif_Set_Updatetype(vb2b_update_id,update1 = Agrif_Update_Full_Weighting, update2 =                    Agrif_Update_Average) 
     418!   CALL Agrif_Set_Updatetype(sshn_id, update = Agrif_Update_Full_Weighting) 
     419  
    406420   ! 
    407421END SUBROUTINE agrif_declare_var 
     
    499513   CALL Agrif_Set_Updatetype(u_ice_id,update1 = Agrif_Update_Copy, update2 = Agrif_Update_Average) 
    500514   CALL Agrif_Set_Updatetype(v_ice_id,update1 = Agrif_Update_Average, update2 = Agrif_Update_Copy) 
    501  
     515   !  
    502516END SUBROUTINE agrif_declare_var_lim2 
    503517#  endif 
     
    519533   USE trc 
    520534   USE in_out_manager 
     535   USE agrif_opa_sponge 
    521536   USE agrif_top_update 
    522537   USE agrif_top_interp 
     
    641656   !---------------  
    642657   CALL Agrif_Set_Updatetype(trn_id, update = AGRIF_Update_Average) 
     658 
     659!   Higher order update 
     660!   CALL Agrif_Set_Updatetype(tsn_id, update = Agrif_Update_Full_Weighting) 
     661 
    643662   ! 
    644663END SUBROUTINE agrif_declare_var_top 
     
    649668   !!   *** ROUTINE Agrif_detect *** 
    650669   !!---------------------------------------------------------------------- 
    651    USE Agrif_Types 
    652670   ! 
    653671   INTEGER, DIMENSION(2) :: ksizex 
Note: See TracChangeset for help on using the changeset viewer.