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 945 for trunk/NEMO/TOP_SRC/trcini.F90 – NEMO

Ignore:
Timestamp:
2008-05-14T18:14:53+02:00 (16 years ago)
Author:
cetlod
Message:

Update modules for new version of TOP model, see ticket 144

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/trcini.F90

    r719 r945  
    11MODULE trcini 
    2    !!========================================================================== 
    3    !!                       *** MODULE trcini ***   
    4    !! Ocean passive tracers:  Manage the passive tracer initialization  
    5    !!=========================================================================    
    6 #if defined key_passivetrc 
     2   !!====================================================================== 
     3   !!                         ***  MODULE trcini  *** 
     4   !! TOP :   Manage the passive tracer initialization 
     5   !!====================================================================== 
     6   !! History :    -   !  2000-04  (O. Aumont, M.A. Foujols)  original code 
     7   !!             1.0  !  2005-03  (O. Aumont, A. El Moussaoui) F90 
     8   !!              -   !  2005-10  (C. Ethe) Module 
     9   !!             2.0  !  2007-12  (C. Ethe, G. Madec) re-writing 
    710   !!---------------------------------------------------------------------- 
    8    !!   trc_ini : Initialization for passive tracer 
     11   !!   trc_ini :   Initialization for passive tracer 
    912   !!---------------------------------------------------------------------- 
    10    !!---------------------------------------------------------------------- 
    11    !!  TOP 1.0,  LOCEAN-IPSL (2005)  
    12    !! $Header$  
    13    !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
    14    !!---------------------------------------------------------------------- 
    15    !! * Modules used 
    16    USE oce_trc 
    17    USE trc 
    18    USE sms 
    19    USE lib_mpp 
    20    USE lbclnk 
     13   USE par_trc         ! TOP parameters 
     14   USE trcini_cfc      ! CFC     initialisation 
     15   USE trcini_lobster  ! LOBSTER initialisation 
     16   USE trcini_pisces   ! PISCES  initialisation 
     17   USE trcini_my_trc   ! MY_TRC  initialisation 
     18   USE in_out_manager  ! I/O manager 
    2119 
    2220   IMPLICIT NONE 
    2321   PRIVATE 
    2422 
    25    !! * Accessibility 
    26    PUBLIC trc_ini 
     23   PUBLIC   trc_ini   ! called by ??? 
    2724 
    28 #if defined key_trc_lobster1 
    2925   !!---------------------------------------------------------------------- 
    30    !!   'key_trc_lobster1'                        LOBSTER1 biological model   
    31    !!---------------------------------------------------------------------- 
    32 #  include "trcini.lobster1.h90" 
    33  
    34 #elif defined key_trc_pisces 
    35    !!---------------------------------------------------------------------- 
    36    !!   'key_trc_pisces'                            PISCES biological model                   
    37    !!---------------------------------------------------------------------- 
    38 #  include "trcini.pisces.h90" 
    39  
    40 #elif defined key_cfc 
    41    !!---------------------------------------------------------------------- 
    42    !!   'key_cfc  '                                          CFC model                   
    43    !!---------------------------------------------------------------------- 
    44 #  include "trcini.cfc.h90" 
    45  
    46 #else 
    47    !!---------------------------------------------------------------------- 
    48    !!   Default option                                
     26   !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007)  
     27   !! $Header:$  
     28   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    4929   !!---------------------------------------------------------------------- 
    5030 
     
    5232 
    5333   SUBROUTINE trc_ini 
    54       !!--------------------------------------------------------------------- 
     34      !!------------------------------------------------------------------- 
    5535      !!                    ***  ROUTINE trc_ini  *** 
    5636      !!               
    57       !! ** Purpose : Initialization for passive tracer 
    58       !!              for restart or not 
     37      !! ** Purpose :   Initialization of passive tracer to zero 
    5938      !! 
    60       !! History : 
    61       !!        !  00-04  O. Aumont, M.A. Foujols HAMOCC3 and P3ZD 
    62       !!   8.5  !  05-03  O.Aumont and A.El Moussaoui  F90 
    63       !!   9.0  !  05-10  C. Ethe  Modularity 
    64       !!---------------------------------------------------------------------- 
    65       !! * local declarations 
    66       INTEGER ::                   &  
    67          ji ,jj ,jk ,jn, jl        ! dummy loop indices   
    68       !!--------------------------------------------------------------------- 
    69  
    70  
    71       !! 1. initialization of passives tracers field 
    72       !! ------------------------------------------- 
    73       DO jn = 1, jptra 
    74          trn(:,:,:,jn)=0.e0 
    75          tra(:,:,:,jn)=0.e0 
    76       END DO 
    77  
    78 #if defined key_trc_diaadd 
    79       !! initialization of output 2d and 3d arrays 
    80  
    81       DO jn = 1, jpdia2d 
    82          trc2d(:,:,jn)=0.e0 
    83       END DO 
    84  
    85       DO jn = 1, jpdia3d 
    86          trc3d(:,:,:,jn)=0.e0 
    87       END DO 
    88 #endif 
    89  
    90 #if defined key_trc_diabio 
    91       !! initialization of biological trends 
    92       DO jn=1,jpdiabio 
    93          trbio(:,:,:,jn) = 0.e0 
    94       END DO 
    95 #endif 
    96  
    97 #if defined key_trc_diatrd 
    98       !! initialization of tracer trends 
    99       DO jl = 1, jpdiatrc 
    100          DO jn = 1, jptra 
    101             IF (luttrd(jn)) trtrd(:,:,:,ikeep(jn),jl) = 0.e0 
    102          END DO 
    103       END DO 
    104 #endif       
    105  
    106       IF( lwp ) THEN 
    107          WRITE(numout,*) ' ' 
    108          WRITE(numout,*) ' trcini: generic initialisation done ' 
    109          WRITE(numout,*) ' ' 
     39      !! ** Method  :   call the initialisation of each defined tracer 
     40      !!             model (LOBSTER, PISCES, CFC, MY_TRC) 
     41      !!------------------------------------------------------------------- 
     42      ! 
     43      IF(lwp) WRITE(numout,*) 
     44      IF(lwp) WRITE(numout,*) 'trc_ini : initial set up of the tracer models' 
     45      IF(lwp) WRITE(numout,*) '~~~~~~~' 
     46      ! 
     47      IF( lk_lobster ) THEN   ;   CALL trc_ini_lobster      ! LOBSTER bio-model 
     48      ELSE                    ;   IF(lwp) WRITE(numout,*) '          LOBSTER not used' 
    11049      ENDIF 
    11150 
     51      IF( lk_pisces  ) THEN   ;   CALL trc_ini_pisces       ! PISCES  bio-model 
     52      ELSE                    ;   IF(lwp) WRITE(numout,*) '          PISCES not used' 
     53      ENDIF 
     54 
     55      IF( lk_cfc     ) THEN   ;   CALL trc_ini_cfc          ! CFC     tracers 
     56      ELSE                    ;   IF(lwp) WRITE(numout,*) '          CFC not used' 
     57      ENDIF 
     58 
     59      IF( lk_my_trc  ) THEN   ;   CALL trc_ini_my_trc       ! MY_TRC  tracers 
     60      ELSE                    ;   IF(lwp) WRITE(numout,*) '          MY_TRC not used' 
     61      ENDIF 
     62      ! 
    11263   END SUBROUTINE trc_ini 
    113  
    114 #endif 
    115  
    116 #else 
    117    !!---------------------------------------------------------------------- 
    118    !!   Dummy module :                      NO passive tracer 
    119    !!---------------------------------------------------------------------- 
    120 CONTAINS 
    121    SUBROUTINE trc_ini              ! Empty routine 
    122  
    123    END SUBROUTINE trc_ini 
    124 #endif 
    12564 
    12665   !!====================================================================== 
Note: See TracChangeset for help on using the changeset viewer.