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 628 for trunk/NEMO/NST_SRC – NEMO

Changeset 628 for trunk/NEMO/NST_SRC


Ignore:
Timestamp:
2007-02-28T12:22:51+01:00 (17 years ago)
Author:
opalod
Message:

nemo_v2_update_006:RB: first integration of AGRIF for passive tracers

Location:
trunk/NEMO/NST_SRC
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/NST_SRC/agrif_user.F90

    r469 r628  
    5959      USE ice_oce 
    6060#endif 
     61#if defined key_passivetrc 
     62     USE agrif_top_update 
     63     USE agrif_top_interp 
     64     USE sms 
     65#endif 
    6166#if defined key_agrif 
    6267     USE agrif_opa_update 
     
    7277! 
    7378      REAL(wp) tabtemp(jpi,jpj,jpk) 
     79#if defined key_passivetrc 
     80      REAL(wp) tabtrtemp(jpi,jpj,jpk,jptra) 
     81#endif 
    7482!  
    7583      LOGICAL check_namelist 
     
    115123      Call Agrif_Set_type(gcb,(/2,2/),(/3,3/)) 
    116124 
     125#if defined key_passivetrc 
     126      Call Agrif_Set_type(trb,(/2,2,0,0/),(/3,3,0,0/)) 
     127      Call Agrif_Set_type(trn,(/2,2,0,0/),(/3,3,0,0/)) 
     128      Call Agrif_Set_type(tra,(/2,2,0,0/),(/3,3,0,0/)) 
     129#endif 
     130 
     131 
     132 
    117133! 
    118134!     Space directions for each variables 
     
    139155      Call Agrif_Set_raf(gcb,(/'x','y'/)) 
    140156 
     157#if defined key_passivetrc 
     158      Call Agrif_Set_raf(trb,(/'x','y','N','N'/)) 
     159      Call Agrif_Set_raf(trn,(/'x','y','N','N'/)) 
     160      Call Agrif_Set_raf(tra,(/'x','y','N','N'/)) 
     161#endif 
     162 
    141163! 
    142164!     type of interpolation 
     
    157179      Call Agrif_Set_bcinterp(e2v,interp1=AGRIF_ppm,interp2=Agrif_linear) 
    158180 
     181#if defined key_passivetrc 
     182      Call Agrif_Set_bcinterp(trn,interp=AGRIF_linear) 
     183      Call Agrif_Set_bcinterp(tra,interp=AGRIF_linear) 
     184#endif 
     185 
    159186! 
    160187!     Location of interpolation 
     
    175202      Call Agrif_Set_bc(va,(/-2*Agrif_irhox(),0/)) 
    176203 
     204#if defined key_passivetrc 
     205      Call Agrif_Set_bc(trn,(/0,1/)) 
     206      Call Agrif_Set_bc(tra,(/-3*Agrif_irhox(),0/)) 
     207#endif 
     208 
    177209!     Update type 
    178210       
     
    185217      Call Agrif_Set_Updatetype(sshn, update = AGRIF_Update_Average) 
    186218      Call Agrif_Set_Updatetype(gcb,update = AGRIF_Update_Average) 
     219 
     220#if defined key_passivetrc 
     221      Call Agrif_Set_Updatetype(trn, update = AGRIF_Update_Average) 
     222      Call Agrif_Set_Updatetype(trb, update = AGRIF_Update_Average) 
     223#endif 
    187224 
    188225      Call Agrif_Set_Updatetype(un,update1 = Agrif_Update_Copy, update2 = Agrif_Update_Average) 
     
    206243       Call Agrif_Bc_variable(tabtemp,ua,calledweight=1.,procname=interpun) 
    207244       Call Agrif_Bc_variable(tabtemp,va,calledweight=1.,procname=interpvn) 
     245 
     246#if defined key_passivetrc 
     247       Call Agrif_Bc_variable(tabtrtemp,trn,calledweight=1.) 
     248!       Call Agrif_Bc_variable(tabtrtemp,tra,calledweight=1.,procname=interptrn) 
     249       Call Agrif_Bc_variable(tabtrtemp,tra,calledweight=1.) 
     250 
     251#endif 
    208252       Agrif_UseSpecialValue = .FALSE. 
     253 
    209254! 
    210255 
Note: See TracChangeset for help on using the changeset viewer.