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 3294 for trunk/NEMOGCM/NEMO/TOP_SRC/MY_TRC/trcsms_my_trc.F90 – NEMO

Ignore:
Timestamp:
2012-01-28T17:44:18+01:00 (12 years ago)
Author:
rblod
Message:

Merge of 3.4beta into the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/TOP_SRC/MY_TRC/trcsms_my_trc.F90

    r2715 r3294  
    1010   !!   'key_my_trc'                                               CFC tracers 
    1111   !!---------------------------------------------------------------------- 
    12    !! trc_sms_my_trc       : MY_TRC model main routine  
     12   !! trc_sms_my_trc       : MY_TRC model main routine 
    1313   !! trc_sms_my_trc_alloc : allocate arrays specific to MY_TRC sms 
    1414   !!---------------------------------------------------------------------- 
     
    2626 
    2727   ! Defined HERE the arrays specific to MY_TRC sms and ALLOCATE them in trc_sms_my_trc_alloc 
    28     
     28 
    2929   !!---------------------------------------------------------------------- 
    3030   !! NEMO/TOP 3.3 , NEMO Consortium (2010) 
    31    !! $Id$  
     31   !! $Id$ 
    3232   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    3333   !!---------------------------------------------------------------------- 
     
    3636   SUBROUTINE trc_sms_my_trc( kt ) 
    3737      !!---------------------------------------------------------------------- 
    38       !!                     ***  trc_sms_my_trc  ***   
     38      !!                     ***  trc_sms_my_trc  *** 
    3939      !! 
    4040      !! ** Purpose :   main routine of MY_TRC model 
    4141      !! 
    42       !! ** Method  : -  
     42      !! ** Method  : - 
    4343      !!---------------------------------------------------------------------- 
    44       USE wrk_nemo, ONLY:   wrk_in_use, wrk_not_released 
    45       USE wrk_nemo, ONLY:   ztrmyt => wrk_3d_1   ! used for lobster sms trends 
    4644      ! 
    4745      INTEGER, INTENT(in) ::   kt   ! ocean time-step index 
    4846      INTEGER ::   jn   ! dummy loop index 
    49       !!---------------------------------------------------------------------- 
    50  
     47      REAL(wp), POINTER, DIMENSION(:,:,:) :: ztrmyt 
     48!!---------------------------------------------------------------------- 
     49      ! 
     50      IF( nn_timing == 1 )  CALL timing_start('trc_sms_my_trc') 
     51      ! 
    5152      IF(lwp) WRITE(numout,*) 
    5253      IF(lwp) WRITE(numout,*) ' trc_sms_my_trc:  MY_TRC model' 
    5354      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~' 
     55 
     56      IF( l_trdtrc )  CALL wrk_alloc( jpi, jpj, jpk, ztrmyt ) 
    5457 
    5558      WHERE( (glamt <= 170) .AND. (glamt >= 160) .AND. (gphit <= -74) .AND. (gphit >=-75.6) ) 
     
    5962      END WHERE 
    6063 
    61       WHERE( ((glamt <= -165) .OR. (glamt >= 160)) .AND. (gphit <= -76) .AND. (gphit >=-80))  
     64      WHERE( ((glamt <= -165) .OR. (glamt >= 160)) .AND. (gphit <= -76) .AND. (gphit >=-80)) 
    6265        trn(:,:,1,jpmyt2) = 1._wp 
    6366        trb(:,:,1,jpmyt2) = 1._wp 
     
    7073            CALL trd_mod_trc( ztrmyt, jn, jptra_trd_sms, kt )   ! save trends 
    7174          END DO 
     75          CALL wrk_dealloc( jpi, jpj, jpk, ztrmyt ) 
    7276      END IF 
     77      ! 
     78      IF( nn_timing == 1 )  CALL timing_stop('trc_sms_my_trc') 
    7379      ! 
    7480   END SUBROUTINE trc_sms_my_trc 
Note: See TracChangeset for help on using the changeset viewer.