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

Ignore:
Timestamp:
2017-02-17T16:38:26+01:00 (7 years ago)
Author:
frrh
Message:

Merge in branches/NERC/dev_r5518_NOC_MEDUSA_Stable from revision range
r 5711:7611 (i.e. the entire branch)

File:
1 edited

Legend:

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

    r7692 r7693  
    88   !!            2.0  ! 2005-10 (C. Ethe, G. Madec) revised architecture 
    99   !!            4.0  ! 2011-01 (A. R. Porter, STFC Daresbury) dynamical allocation 
     10   !!             -   ! 2014-06 (A. Yool, J. Palmieri) adding MEDUSA-2 
    1011   !!---------------------------------------------------------------------- 
    1112#if defined key_top 
     
    2425   USE trcini_c14b     ! C14 bomb initialisation 
    2526   USE trcini_my_trc   ! MY_TRC   initialisation 
     27   USE trcini_medusa   ! MEDUSA   initialisation 
     28   USE trcini_idtra    ! idealize tracer initialisation 
     29   USE trcini_age      ! AGE      initialisation 
    2630   USE trcdta          ! initialisation from files 
    2731   USE daymod          ! calendar manager 
     
    7781         &   CALL ctl_warn(' Coupling with passive tracers and used of diurnal cycle. & 
    7882         & Computation of a daily mean shortwave for some biogeochemical models) ') 
    79  
     83          !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
     84          !!!!! CHECK For MEDUSA 
     85          !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
    8086      IF( nn_cla == 1 )   & 
    8187         &  CALL ctl_stop( ' Cross Land Advection not yet implemented with passive tracer ; nn_cla must be 0' ) 
     
    98104 
    99105      IF( lk_pisces  )       CALL trc_ini_pisces       ! PISCES  bio-model 
     106      IF( lk_medusa  )       CALL trc_ini_medusa       ! MEDUSA  tracers 
     107      IF( lk_idtra   )       CALL trc_ini_idtra        ! Idealize tracers 
    100108      IF( lk_cfc     )       CALL trc_ini_cfc          ! CFC     tracers 
    101109      IF( lk_c14b    )       CALL trc_ini_c14b         ! C14 bomb  tracer 
     110      IF( lk_age     )       CALL trc_ini_age          ! AGE       tracer 
    102111      IF( lk_my_trc  )       CALL trc_ini_my_trc       ! MY_TRC  tracers 
    103112 
    104113      CALL trc_ice_ini                                 ! Tracers in sea ice 
     114 
     115# if defined key_debug_medusa 
     116         IF (lwp) write (numout,*) '------------------------------' 
     117         IF (lwp) write (numout,*) 'Jpalm - debug' 
     118         IF (lwp) write (numout,*) ' in trc_init' 
     119         IF (lwp) write (numout,*) ' sms init OK' 
     120         IF (lwp) write (numout,*) ' next: open tracer.stat' 
     121         IF (lwp) write (numout,*) ' ' 
     122         CALL flush(numout) 
     123# endif 
    105124 
    106125      IF( lwp ) THEN 
     
    110129      ENDIF 
    111130 
    112       IF( ln_trcdta )      CALL trc_dta_init(jptra) 
    113  
     131# if defined key_debug_medusa 
     132         IF (lwp) write (numout,*) '------------------------------' 
     133         IF (lwp) write (numout,*) 'Jpalm - debug' 
     134         IF (lwp) write (numout,*) ' in trc_init' 
     135         IF (lwp) write (numout,*) 'open tracer.stat -- OK' 
     136         IF (lwp) write (numout,*) ' ' 
     137         CALL flush(numout) 
     138# endif 
     139 
     140 
     141      IF( ln_trcdta ) THEN 
     142#if defined key_medusa 
     143         IF(lwp) WRITE(numout,*) 'AXY: calling trc_dta_init' 
     144         IF(lwp) CALL flush(numout) 
     145#endif 
     146         CALL trc_dta_init(jptra) 
     147      ENDIF 
    114148 
    115149      IF( ln_rsttr ) THEN 
    116150        ! 
     151#if defined key_medusa 
     152        IF(lwp) WRITE(numout,*) 'AXY: calling trc_rst_read' 
     153        IF(lwp) CALL flush(numout) 
     154#endif 
    117155        CALL trc_rst_read              ! restart from a file 
    118156        ! 
     
    141179        ENDIF 
    142180        ! 
     181# if defined key_debug_medusa 
     182         IF (lwp) write (numout,*) '------------------------------' 
     183         IF (lwp) write (numout,*) 'Jpalm - debug' 
     184         IF (lwp) write (numout,*) ' in trc_init' 
     185         IF (lwp) write (numout,*) ' before trb = trn' 
     186         IF (lwp) write (numout,*) ' ' 
     187         CALL flush(numout) 
     188# endif 
     189        ! 
    143190        trb(:,:,:,:) = trn(:,:,:,:) 
     191        !  
     192# if defined key_debug_medusa 
     193         IF (lwp) write (numout,*) '------------------------------' 
     194         IF (lwp) write (numout,*) 'Jpalm - debug' 
     195         IF (lwp) write (numout,*) ' in trc_init' 
     196         IF (lwp) write (numout,*) ' trb = trn -- OK' 
     197         IF (lwp) write (numout,*) ' ' 
     198         CALL flush(numout) 
     199# endif 
    144200        !  
    145201      ENDIF 
     
    150206      IF( ln_zps .AND. .NOT. lk_c1d .AND.       ln_isfcav )   & 
    151207        &    CALL zps_hde_isf( nit000, jptra, trn, pgtu=gtru, pgtv=gtrv, pgtui=gtrui, pgtvi=gtrvi )       ! tracers at the bottom ocean level 
    152  
    153  
     208      ! 
     209# if defined key_debug_medusa 
     210         IF (lwp) write (numout,*) '------------------------------' 
     211         IF (lwp) write (numout,*) 'Jpalm - debug' 
     212         IF (lwp) write (numout,*) ' in trc_init' 
     213         IF (lwp) write (numout,*) ' partial step -- OK' 
     214         IF (lwp) write (numout,*) ' ' 
     215         CALL flush(numout) 
     216# endif 
    154217      ! 
    155218      IF( nn_dttrc /= 1 )        CALL trc_sub_ini      ! Initialize variables for substepping passive tracers 
    156219      ! 
    157  
     220# if defined key_debug_medusa 
     221         IF (lwp) write (numout,*) '------------------------------' 
     222         IF (lwp) write (numout,*) 'Jpalm - debug' 
     223         IF (lwp) write (numout,*) ' in trc_init' 
     224         IF (lwp) write (numout,*) ' before initiate tracer contents' 
     225         IF (lwp) write (numout,*) ' ' 
     226         CALL flush(numout) 
     227# endif 
     228      ! 
    158229      trai(:) = 0._wp                                                   ! initial content of all tracers 
    159230      DO jn = 1, jptra 
     
    168239         WRITE(numout,*) '          *** Total inital content of all tracers ' 
    169240         WRITE(numout,*) 
     241# if defined key_debug_medusa 
     242         CALL flush(numout) 
     243# endif 
     244         ! 
     245# if defined key_debug_medusa 
     246         WRITE(numout,*) ' litle check :  ', ctrcnm(1) 
     247         CALL flush(numout) 
     248# endif 
    170249         DO jn = 1, jptra 
    171250            WRITE(numout,9000) jn, TRIM( ctrcnm(jn) ), trai(jn) 
     
    180259         CALL prt_ctl_trc( tab4d=trn, mask=tmask, clinfo=ctrcnm ) 
    181260      ENDIF 
     261 
     262      IF(lwp) WRITE(numout,*) 
     263      IF(lwp) WRITE(numout,*) 'trc_init : passive tracer set up completed' 
     264      IF(lwp) WRITE(numout,*) '~~~~~~~' 
     265      IF(lwp) CALL flush(numout) 
     266# if defined key_debug_medusa 
     267         CALL trc_rst_stat 
     268         CALL flush(numout) 
     269# endif 
     270 
    1822719000  FORMAT(' tracer nb : ',i2,'      name :',a10,'      initial content :',e18.10) 
    183272      ! 
Note: See TracChangeset for help on using the changeset viewer.