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/trclsm.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/trclsm.F90

    r719 r945  
    11MODULE trclsm 
    2    !!=============================================================== 
    3    !! 
    4    !!                       *** MODULE trclsm **** 
    5    !! 
    6    !!  READS specific NAMELIST for sms terms 
    7    !! 
    8    !!================================================================= 
    9    !!  TOP 1.0,  LOCEAN-IPSL (2005)  
    10    !! $Header$  
    11    !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
    12    !!----------------------------------------------------------------- 
    13 #if defined key_passivetrc 
    14    !!------------------------------------------------------------- 
    15    !! * Modules used 
    16    !! ============== 
    17    USE oce_trc 
    18    USE trc 
    19    USE sms 
    20  
     2   !!====================================================================== 
     3   !!                         ***  MODULE trclsm  *** 
     4   !! TOP :   reads specific namelist for passive tracer sms terms 
     5   !!====================================================================== 
     6   !! History :   1.0  !  2004-03 (C. Ethe) Original code 
     7   !!             2.0  !  2007-12  (C. Ethe, G. Madec) re-writing 
     8   !!---------------------------------------------------------------------- 
     9#if defined key_top 
     10   !!---------------------------------------------------------------------- 
     11   !!   'key_top'                                                TOP models 
     12   !!---------------------------------------------------------------------- 
     13   !!   trc_lsm   : reads specific namelist for sms terms 
     14   !!---------------------------------------------------------------------- 
     15   USE par_trc         ! TOP parameters 
     16   USE trclsm_cfc      ! CFC     initialisation 
     17   USE trclsm_lobster  ! LOBSTER initialisation 
     18   USE trclsm_pisces   ! PISCES  initialisation 
     19   USE trclsm_my_trc   ! MY_TRC  initialisation 
     20   USE in_out_manager  ! I/O manager 
    2121 
    2222   IMPLICIT NONE                              
    2323   PRIVATE 
    2424 
    25    !! * Accessibility 
    26    PUBLIC trc_lsm 
    27  
    28  
    29 #if defined key_trc_lobster1 
    30    !!---------------------------------------------------------------------- 
    31    !!   'key_trc_lobster1'                        LOBSTER1 biological model   
    32    !!---------------------------------------------------------------------- 
    33 #  include "trclsm.lobster1.h90" 
    34  
    35 #elif defined key_trc_pisces 
    36    !!---------------------------------------------------------------------- 
    37    !!   'key_trc_pisces'                            PISCES biological model                   
    38    !!---------------------------------------------------------------------- 
    39 #  include "trclsm.pisces.h90" 
    40  
    41 #elif defined key_cfc 
    42    !!---------------------------------------------------------------------- 
    43    !!   'key_cfc  '                                          CFC model                   
    44    !!---------------------------------------------------------------------- 
    45 #  include "trclsm.cfc.h90" 
     25   PUBLIC   trc_lsm      ! called in initrc.F90 
    4626 
    4727   !!---------------------------------------------------------------------- 
    48    !!   Default option                                
     28   !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007)  
     29   !! $Id$  
     30   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    4931   !!---------------------------------------------------------------------- 
    50 # endif 
    51  
    52 #else 
    5332 
    5433CONTAINS 
    5534 
    5635   SUBROUTINE trc_lsm 
    57       !!================ 
    58       !! no passive tracers 
    59    END  SUBROUTINE  trc_lsm 
     36      !!---------------------------------------------------------------------- 
     37      !!                     ***  trc_lsm  ***   
     38      !! 
     39      !! ** Purpose :   read TOP namelists for the different tracers models 
     40      !! 
     41      !! ** Method  :   call the namelist read of each defined tracer 
     42      !!             model (LOBSTER, PISCES, CFC, MY_TRC) 
     43      !!---------------------------------------------------------------------- 
     44      ! 
     45      IF(lwp) WRITE(numout,*) 
     46      IF(lwp) WRITE(numout,*) 'trc_lsm : read namelist of the TOP models' 
     47      IF(lwp) WRITE(numout,*) '~~~~~~~' 
     48      ! 
     49      IF( lk_lobster ) THEN   ;   CALL trc_lsm_lobster      ! LOBSTER bio-model 
     50      ELSE                    ;   IF(lwp) WRITE(numout,*) '          LOBSTER not used' 
     51      ENDIF 
    6052 
     53      IF( lk_pisces  ) THEN   ;   CALL trc_lsm_pisces      ! PISCES  bio-model 
     54      ELSE                    ;   IF(lwp) WRITE(numout,*) '          PISCES not used' 
     55      ENDIF 
     56 
     57      IF( lk_cfc     ) THEN   ;   CALL trc_lsm_cfc         ! CFC     tracers 
     58      ELSE                    ;   IF(lwp) WRITE(numout,*) '          CFC not used' 
     59      ENDIF 
     60 
     61      IF( lk_my_trc  ) THEN   ;   CALL trc_lsm_my_trc      ! MY_TRC  tracers 
     62      ELSE                    ;   IF(lwp) WRITE(numout,*) '          MY_TRC not used' 
     63      ENDIF 
     64      ! 
     65   END SUBROUTINE trc_lsm 
     66 
     67#else 
     68   !!---------------------------------------------------------------------- 
     69   !!  Dummy module :                                     No passive tracer 
     70   !!---------------------------------------------------------------------- 
     71CONTAINS 
     72   SUBROUTINE trc_lsm                      ! Empty routine 
     73   END  SUBROUTINE trc_lsm 
    6174#endif   
    6275 
     76   !!====================================================================== 
    6377END MODULE trclsm   
Note: See TracChangeset for help on using the changeset viewer.