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 2528 for trunk/NEMOGCM/NEMO/TOP_SRC/PISCES/trcini_pisces.F90 – NEMO

Ignore:
Timestamp:
2010-12-27T18:33:53+01:00 (13 years ago)
Author:
rblod
Message:

Update NEMOGCM from branch nemo_v3_3_beta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/TOP_SRC/PISCES/trcini_pisces.F90

    r1800 r2528  
    4040#  include "top_substitute.h90" 
    4141   !!---------------------------------------------------------------------- 
    42    !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007)  
     42   !! NEMO/TOP 3.3 , NEMO Consortium (2010) 
    4343   !! $Id$  
    44    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     44   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    4545   !!---------------------------------------------------------------------- 
    4646 
     
    5555 
    5656 
     57      !  Control consitency 
     58      CALL trc_ctl_pisces 
     59 
     60 
    5761      IF(lwp) WRITE(numout,*) 
    5862      IF(lwp) WRITE(numout,*) ' trc_ini_pisces :   PISCES biochemical model initialisation' 
    5963      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~' 
    6064 
    61  
    6265      !                                            ! Time-step 
    63       rfact   = rdttra(1) * float(ndttrc)          ! --------- 
     66      rfact   = rdttrc(1)                          ! --------- 
    6467      rfactr  = 1. / rfact 
    65       rfact2  = rfact / float(nrdttrc) 
     68      rfact2  = rfact / FLOAT( nrdttrc ) 
    6669      rfact2r = 1. / rfact2 
    6770 
    68       IF(lwp) WRITE(numout,*) '    Tracer  time step    rfact  = ', rfact, ' rdt = ', rdt 
    69       IF(lwp) write(numout,*) '    Biology time step    rfact2 = ', rfact2 
     71      IF(lwp) WRITE(numout,*) '    Passive Tracer  time step    rfact  = ', rfact, ' rdt = ', rdttra(1) 
     72      IF(lwp) write(numout,*) '    PISCES  Biology time step    rfact2 = ', rfact2 
    7073 
    7174 
     
    8083 
    8184      CALL p4z_che        ! initialize the chemical constants 
    82  
    83       ndayflxtr = 0      !  Initialize a counter for the computation of chemistry 
    8485 
    8586      ! Initialization of tracer concentration in case of  no restart  
     
    128129      ! 
    129130   END SUBROUTINE trc_ini_pisces 
    130     
     131  
     132   SUBROUTINE trc_ctl_pisces 
     133      !!---------------------------------------------------------------------- 
     134      !!                     ***  ROUTINE trc_ctl_pisces  *** 
     135      !! 
     136      !! ** Purpose :   control the cpp options, namelist and files  
     137      !!---------------------------------------------------------------------- 
     138 
     139      IF(lwp) WRITE(numout,*) 
     140      IF(lwp) WRITE(numout,*) ' use PISCES biological model ' 
     141 
     142   ! Check number of tracers 
     143   ! ----------------------- 
     144#if  defined key_kriest 
     145      IF( jp_pisces /= 23) CALL ctl_stop( ' PISCES must have 23 passive tracers. Change jp_pisces in par_pisces.F90' ) 
     146#else 
     147      IF( jp_pisces /= 24) CALL ctl_stop( ' PISCES must have 24 passive tracers. Change jp_pisces in par_pisces.F90' ) 
     148#endif 
     149 
     150   END SUBROUTINE trc_ctl_pisces 
     151   
    131152#else 
    132153   !!---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.