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 1176 for trunk/NEMO/TOP_SRC/LOBSTER/trcsed.F90 – NEMO

Ignore:
Timestamp:
2008-09-11T18:26:59+02:00 (16 years ago)
Author:
cetlod
Message:

update LOBSTER modules to take into account new trends organization, see ticket:248

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/LOBSTER/trcsed.F90

    r1146 r1176  
    1818   USE sms_lobster 
    1919   USE lbclnk 
     20   USE trdmld_trc 
     21   USE trdmld_trc_oce 
    2022 
    2123   USE prtctl_trc      ! Print control for debbuging 
     
    5658      INTEGER, INTENT( in ) ::   kt      ! ocean time-step index       
    5759      !! 
    58       INTEGER  ::   ji, jj, jk 
     60      INTEGER  ::   ji, jj, jk, jl 
    5961      REAL(wp) ::   ztra 
    6062      REAL(wp), DIMENSION(jpi,jpj,jpk) ::   zwork 
    61  
     63      REAL(wp), DIMENSION(:,:,:), ALLOCATABLE ::   ztrbio 
    6264      CHARACTER (len=25) :: charout 
    6365      !!--------------------------------------------------------------------- 
     
    7678      zwork(:,:,1  ) = 0.e0      ! surface value set to zero 
    7779      zwork(:,:,jpk) = 0.e0      ! bottom value  set to zero 
     80 
     81      IF( l_trdtrc )THEN 
     82         ALLOCATE( ztrbio(jpi,jpj,jpk) ) 
     83!CDIR COLLAPSE 
     84         ztrbio(:,:,:) = tra(:,:,:,jpdet) 
     85      ENDIF 
    7886 
    7987      ! tracer flux at w-point: we use -vsed (downward flux)  with simplification : no e1*e2 
     
    108116      ! 
    109117 
     118      IF( l_trdtrc ) THEN 
     119!CDIRR COLLAPSE 
     120         ztrbio(:,:,:) = tra(:,:,:,jpdet) - ztrbio(:,:,:) 
     121         jl = 8 
     122         CALL trd_mod_trc( ztrbio, jl, kt )   ! handle the trend 
     123      ENDIF 
     124 
    110125      IF(ln_ctl)   THEN  ! print mean trends (used for debugging) 
    111126         WRITE(charout, FMT="('sed')") 
Note: See TracChangeset for help on using the changeset viewer.