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

Changeset 1271 for trunk/NEMO/NST_SRC


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

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

Legend:

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

    r1206 r1271  
    66   USE sol_oce 
    77   USE agrif_oce 
    8    USE trcstp 
    9    USE sms 
     8   USE trc 
    109 
    1110   IMPLICIT NONE 
     
    2221   CONTAINS 
    2322 
    24    SUBROUTINE Agrif_trc( kt ) 
     23   SUBROUTINE Agrif_trc 
    2524      !!--------------------------------------------- 
    2625      !!   *** ROUTINE Agrif_trc *** 
     
    2928#  include "vectopt_loop_substitute.h90" 
    3029       
    31       INTEGER, INTENT(in) :: kt 
    32  
    3330      INTEGER :: ji,jj,jk,jn 
    3431      REAL(wp) :: zrhox 
  • trunk/NEMO/NST_SRC/agrif_top_update.F90

    r1206 r1271  
    88   USE dom_oce 
    99   USE agrif_oce 
    10    USE trcstp 
    11    USE sms 
     10   USE trc 
    1211 
    1312   IMPLICIT NONE 
  • 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.