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 8442 for branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/TOP_SRC/trcini.F90 – NEMO

Ignore:
Timestamp:
2017-08-17T13:39:18+02:00 (7 years ago)
Author:
frrh
Message:

Commit changes relating to Met Office GMED ticket 340 for the
tidying of MEDUSA related code and debugging statements in the TOP code.

Only code introduced at revision 8434 of branch
http://fcm3/projects/NEMO.xm/log/branches/NERC/dev_r5518_GO6_split_trcbiomedusa
is included here, all previous revisions of that branch having been dealt with
under GMED ticket 339.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/TOP_SRC/trcini.F90

    r8441 r8442  
    2424   USE trcini_pisces   ! PISCES   initialisation 
    2525   USE trcini_c14b     ! C14 bomb initialisation 
     26   USE trcini_age      ! AGE      initialisation 
    2627   USE trcini_my_trc   ! MY_TRC   initialisation 
     28   USE trcini_idtra    ! idealize tracer initialisation 
    2729   USE trcini_medusa   ! MEDUSA   initialisation 
    28    USE trcini_idtra    ! idealize tracer initialisation 
    29    USE trcini_age      ! AGE      initialisation 
    3030   USE trcdta          ! initialisation from files 
    3131   USE daymod          ! calendar manager 
     
    7979         &   CALL ctl_warn(' Coupling with passive tracers and used of diurnal cycle. & 
    8080         & Computation of a daily mean shortwave for some biogeochemical models) ') 
    81           !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
    82           !!!!! CHECK For MEDUSA 
    83           !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
     81 
    8482      IF( nn_cla == 1 )   & 
    8583         &  CALL ctl_stop( ' Cross Land Advection not yet implemented with passive tracer ; nn_cla must be 0' ) 
     
    102100 
    103101      IF( lk_pisces  )       CALL trc_ini_pisces       ! PISCES  bio-model 
    104       IF( lk_medusa  )       CALL trc_ini_medusa       ! MEDUSA  tracers 
    105       IF( lk_idtra   )       CALL trc_ini_idtra        ! Idealize tracers 
    106102      IF( lk_cfc     )       CALL trc_ini_cfc          ! CFC     tracers 
    107103      IF( lk_c14b    )       CALL trc_ini_c14b         ! C14 bomb  tracer 
    108104      IF( lk_age     )       CALL trc_ini_age          ! AGE       tracer 
    109105      IF( lk_my_trc  )       CALL trc_ini_my_trc       ! MY_TRC  tracers 
     106      IF( lk_idtra   )       CALL trc_ini_idtra        ! Idealize tracers 
     107      IF( lk_medusa  )       CALL trc_ini_medusa       ! MEDUSA  tracers 
    110108 
    111109      CALL trc_ice_ini                                 ! Tracers in sea ice 
    112  
    113 # if defined key_debug_medusa 
    114          IF (lwp) write (numout,*) '------------------------------' 
    115          IF (lwp) write (numout,*) 'Jpalm - debug' 
    116          IF (lwp) write (numout,*) ' in trc_init' 
    117          IF (lwp) write (numout,*) ' sms init OK' 
    118          IF (lwp) write (numout,*) ' next: open tracer.stat' 
    119          IF (lwp) write (numout,*) ' ' 
    120          CALL flush(numout) 
    121 # endif 
    122110 
    123111      IF( ln_ctl ) THEN 
     
    133121      ENDIF 
    134122 
    135 # if defined key_debug_medusa 
    136          IF (lwp) write (numout,*) '------------------------------' 
    137          IF (lwp) write (numout,*) 'Jpalm - debug' 
    138          IF (lwp) write (numout,*) ' in trc_init' 
    139          IF (lwp) write (numout,*) 'open tracer.stat -- OK' 
    140          IF (lwp) write (numout,*) ' ' 
    141          CALL flush(numout) 
    142 # endif 
    143  
    144  
    145123      IF( ln_trcdta ) THEN 
    146 #if defined key_medusa 
    147          IF(lwp) WRITE(numout,*) 'AXY: calling trc_dta_init' 
    148          IF(lwp) CALL flush(numout) 
    149 #endif 
    150124         CALL trc_dta_init(jptra) 
    151125      ENDIF 
     
    153127      IF( ln_rsttr ) THEN 
    154128        ! 
    155 #if defined key_medusa 
    156         IF(lwp) WRITE(numout,*) 'AXY: calling trc_rst_read' 
    157         IF(lwp) CALL flush(numout) 
    158 #endif 
    159129        CALL trc_rst_read              ! restart from a file 
    160130        ! 
    161131      ELSE 
    162         ! 
    163 # if defined key_debug_medusa 
    164          IF (lwp) write (numout,*) '------------------------------' 
    165          IF (lwp) write (numout,*) 'Jpalm - debug' 
    166          IF (lwp) write (numout,*) ' Init from file -- will call trc_dta' 
    167          IF (lwp) write (numout,*) ' ' 
    168          CALL flush(numout) 
    169 # endif 
    170132        ! 
    171133        IF( ln_trcdta .AND. nb_trcdta > 0 ) THEN  ! Initialisation of tracer from a file that may also be used for damping 
     
    188150        ENDIF 
    189151        ! 
    190 # if defined key_debug_medusa 
    191          IF (lwp) write (numout,*) '------------------------------' 
    192          IF (lwp) write (numout,*) 'Jpalm - debug' 
    193          IF (lwp) write (numout,*) ' in trc_init' 
    194          IF (lwp) write (numout,*) ' before trb = trn' 
    195          IF (lwp) write (numout,*) ' ' 
    196          CALL flush(numout) 
    197 # endif 
    198         ! 
    199152        trb(:,:,:,:) = trn(:,:,:,:) 
    200153        !  
    201 # if defined key_debug_medusa 
    202          IF (lwp) write (numout,*) '------------------------------' 
    203          IF (lwp) write (numout,*) 'Jpalm - debug' 
    204          IF (lwp) write (numout,*) ' in trc_init' 
    205          IF (lwp) write (numout,*) ' trb = trn -- OK' 
    206          IF (lwp) write (numout,*) ' ' 
    207          CALL flush(numout) 
    208 # endif 
    209         !  
    210154      ENDIF 
    211155  
    212156      tra(:,:,:,:) = 0._wp 
    213157      ! 
    214 # if defined key_debug_medusa 
    215          IF (lwp) write (numout,*) '------------------------------' 
    216          IF (lwp) write (numout,*) 'Jpalm - debug' 
    217          IF (lwp) write (numout,*) ' in trc_init' 
    218          IF (lwp) write (numout,*) ' partial step -- OK' 
    219          IF (lwp) write (numout,*) ' ' 
    220          CALL flush(numout) 
    221 # endif 
    222       ! 
    223158      IF( nn_dttrc /= 1 )        CALL trc_sub_ini      ! Initialize variables for substepping passive tracers 
    224159      ! 
    225 # if defined key_debug_medusa 
    226          IF (lwp) write (numout,*) '------------------------------' 
    227          IF (lwp) write (numout,*) 'Jpalm - debug' 
    228          IF (lwp) write (numout,*) ' in trc_init' 
    229          IF (lwp) write (numout,*) ' before initiate tracer contents' 
    230          IF (lwp) write (numout,*) ' ' 
    231          CALL flush(numout) 
    232 # endif 
    233       ! 
     160 
    234161      trai(:) = 0._wp                                                   ! initial content of all tracers 
    235162      DO jn = 1, jptra 
Note: See TracChangeset for help on using the changeset viewer.