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 1271 for trunk/NEMO/NST_SRC/agrif_user.F90 – NEMO

Ignore:
Timestamp:
2009-01-15T09:12:00+01:00 (15 years ago)
Author:
rblod
Message:

Addapt AGRIF routines to the new TOP organization, clean some routines and add a sponge layer for passive tracers, see ticket #293

File:
1 edited

Legend:

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

    r1200 r1271  
    6262      USE dom_oce 
    6363      USE opa 
    64       USE sms 
     64#if defined key_top 
     65      USE trc 
     66#endif 
    6567#if defined key_tradmp   ||   defined key_esopa 
    6668      USE tradmp 
     
    7678      USE agrif_top_update 
    7779      USE agrif_top_interp 
     80      USE agrif_top_sponge 
    7881 
    7982      IMPLICIT NONE 
     
    153156 
    154157#if defined key_top 
     158      Call Agrif_Set_raf(trn,(/'x','y','N','N'/)) 
    155159      Call Agrif_Set_raf(trb,(/'x','y','N','N'/)) 
    156       Call Agrif_Set_raf(trn,(/'x','y','N','N'/)) 
    157160      Call Agrif_Set_raf(tra,(/'x','y','N','N'/)) 
    158161#endif 
     
    241244#if defined key_top 
    242245      Call Agrif_Bc_variable(tabtrtemp,trn,calledweight=1.) 
    243       Call Agrif_Bc_variable(tabtrtemp,tra,calledweight=1.) 
     246      Call Agrif_Bc_variable(tabtrtemp,tra,calledweight=1.,procname=interptrn) 
    244247#endif 
    245248      Agrif_UseSpecialValue = .FALSE. 
     
    292295            ENDIF 
    293296         ENDIF 
     297#if defined key_top 
     298        ! Check passive tracer cell 
     299        IF( ndttrc .ne. 1 ) THEN 
     300           WRITE(*,*) 'ndttrc should be equal to 1' 
     301        ENDIF 
     302#endif 
    294303 
    295304      ENDIF 
    296305 
     306#if defined key_top 
     307      CALL Agrif_Update_trc(0) 
     308#endif 
    297309      CALL Agrif_Update_tra(0) 
    298310      CALL Agrif_Update_dyn(0) 
Note: See TracChangeset for help on using the changeset viewer.