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 3244 for branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC/trcini.F90 – NEMO

Ignore:
Timestamp:
2012-01-04T11:31:09+01:00 (12 years ago)
Author:
cetlod
Message:

dev_NEMO_MERGE_2011 : Minor reorganisation of initialisation phase of TOP ; needed to get calendar information before the use of fldread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC/trcini.F90

    r3242 r3244  
    7777 
    7878      CALL trc_nam                  ! read passive tracers namelists 
    79       !                                                              ! masked grid volume 
    80       IF( lk_offline )  THEN 
    81          IF( ln_rsttr ) THEN 
    82             neuler = 1   ! Set time-step indicator at nit000 (leap-frog) 
    83          ELSE 
    84             neuler = 0                  ! Set time-step indicator at nit000 (euler) 
    85             CALL day_init               ! set calendar 
     79      ! 
     80      IF(lwp) WRITE(numout,*) 
     81      IF( ln_rsttr ) THEN 
     82        ! 
     83        IF( lk_offline )  neuler = 1   ! Set time-step indicator at nit000 (leap-frog) 
     84        CALL trc_rst_cal( nittrc000, 'READ' )   ! calendar 
     85        ! 
     86      ELSE 
     87        IF( lk_offline )  THEN 
     88           neuler = 0                  ! Set time-step indicator at nit000 (euler) 
     89           CALL day_init               ! set calendar 
    8690        ENDIF 
    87       ENDIF 
     91        ! 
     92      ENDIF 
     93      IF(lwp) WRITE(numout,*) 
     94                                                              ! masked grid volume 
    8895      !                                                              ! masked grid volume 
    8996      DO jk = 1, jpk 
     
    94101      areatot = glob_sum( cvol(:,:,:) ) 
    95102 
    96       IF( lk_lobster ) THEN   ;   CALL trc_ini_lobster      ! LOBSTER bio-model 
    97       ELSE                    ;   IF(lwp) WRITE(numout,*) '          LOBSTER not used' 
    98       ENDIF 
    99        
    100       IF( lk_pisces  ) THEN   ;   CALL trc_ini_pisces       ! PISCES  bio-model 
    101       ELSE                    ;   IF(lwp) WRITE(numout,*) '          PISCES not used' 
    102       ENDIF 
    103        
    104       IF( lk_cfc     ) THEN   ;   CALL trc_ini_cfc          ! CFC     tracers 
    105       ELSE                    ;   IF(lwp) WRITE(numout,*) '          CFC not used' 
    106       ENDIF 
    107  
    108       IF( lk_c14b    ) THEN   ;   CALL trc_ini_c14b         ! C14 bomb  tracer 
    109       ELSE                    ;   IF(lwp) WRITE(numout,*) '          C14 not used' 
    110       ENDIF 
    111        
    112       IF( lk_my_trc  ) THEN   ;   CALL trc_ini_my_trc       ! MY_TRC  tracers 
    113       ELSE                    ;   IF(lwp) WRITE(numout,*) '          MY_TRC not used' 
    114       ENDIF 
     103      IF( lk_lobster )       CALL trc_ini_lobster      ! LOBSTER bio-model 
     104      IF( lk_pisces  )       CALL trc_ini_pisces       ! PISCES  bio-model 
     105      IF( lk_cfc     )       CALL trc_ini_cfc          ! CFC     tracers 
     106      IF( lk_c14b    )       CALL trc_ini_c14b         ! C14 bomb  tracer 
     107      IF( lk_my_trc  )       CALL trc_ini_my_trc       ! MY_TRC  tracers 
    115108 
    116109      IF( lwp ) THEN 
     
    120113      ENDIF 
    121114 
    122       IF( ln_trcdta )             CALL trc_dta_init 
     115      IF( ln_trcdta )      CALL trc_dta_init 
     116 
    123117 
    124118      IF( ln_rsttr ) THEN 
     
    173167         WRITE(numout,*) 
    174168      ENDIF 
    175       WRITE(numout,*) 
     169      IF(lwp) WRITE(numout,*) 
    176170      IF(ln_ctl) THEN            ! print mean trends (used for debugging) 
    177171         CALL prt_ctl_trc_init 
Note: See TracChangeset for help on using the changeset viewer.