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

Ignore:
Timestamp:
2011-03-30T17:58:35+02:00 (13 years ago)
Author:
rblod
Message:

First attempt to put dynamic allocation on the trunk

File:
1 edited

Legend:

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

    r2528 r2715  
    2424   !! NEMO/TOP 3.3 , NEMO Consortium (2010) 
    2525   !! $Id$  
    26    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
     26   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    2727   !!---------------------------------------------------------------------- 
    28  
    2928CONTAINS 
    3029 
     
    3837      !!---------------------------------------------------------------------- 
    3938 
    40       !  Control consitency 
    41       CALL trc_ctl_my_trc 
     39      !                       ! Allocate MY_TRC arrays 
     40      IF( sms_lobster_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'trc_ini_my_trc: unable to allocate MY_TRC arrays' ) 
     41 
     42      CALL trc_ctl_my_trc     ! Control consitency 
    4243 
    4344      IF(lwp) WRITE(numout,*) 
     
    4647       
    4748      IF( .NOT. ln_rsttr ) trn(:,:,:,jp_myt0:jp_myt1) = 0. 
    48  
    4949      ! 
    5050   END SUBROUTINE trc_ini_my_trc 
    51     
     51 
     52 
    5253   SUBROUTINE trc_ctl_my_trc 
    5354      !!---------------------------------------------------------------------- 
     
    5657      !! ** Purpose :   control the cpp options, namelist and files  
    5758      !!---------------------------------------------------------------------- 
    58  
    5959      INTEGER :: jl, jn 
    60  
     60      !!---------------------------------------------------------------------- 
     61      ! 
    6162      IF(lwp) WRITE(numout,*) 
    6263      IF(lwp) WRITE(numout,*) ' use COLOR tracer ' 
    63  
     64      ! 
    6465      DO jl = 1, jp_my_trc 
    6566         jn = jp_myt0 + jl - 1 
    66          WRITE(ctrcnm(jn),'(a,i2.2)') 'CLR',jn 
     67         WRITE( ctrcnm(jn),'(a,i2.2)' ) 'CLR', jn 
    6768         ctrcnl(jn)='Color concentration' 
    6869         ctrcun(jn)='N/A' 
    6970      END DO 
    70  
    71  
     71      ! 
    7272   END SUBROUTINE trc_ctl_my_trc 
    7373 
Note: See TracChangeset for help on using the changeset viewer.