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 763 for branches/dev_001_GM/NEMO/TOP_SRC/trcini.F90 – NEMO

Ignore:
Timestamp:
2007-12-13T14:52:50+01:00 (16 years ago)
Author:
gm
Message:

dev_001_GM - Style only addition in TOP F90 h90 routines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_001_GM/NEMO/TOP_SRC/trcini.F90

    r719 r763  
    11MODULE trcini 
    2    !!========================================================================== 
    3    !!                       *** MODULE trcini ***   
    4    !! Ocean passive tracers:  Manage the passive tracer initialization  
    5    !!=========================================================================    
     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   !!---------------------------------------------------------------------- 
    610#if defined key_passivetrc 
    711   !!---------------------------------------------------------------------- 
    8    !!   trc_ini : Initialization for passive tracer 
     12   !!   'key_passivetrc'                                    Passive tracers 
    913   !!---------------------------------------------------------------------- 
     14   !!   trc_ini :   Initialization for passive tracer 
    1015   !!---------------------------------------------------------------------- 
    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 
    1616   USE oce_trc 
    1717   USE trc 
     
    2323   PRIVATE 
    2424 
    25    !! * Accessibility 
    26    PUBLIC trc_ini 
     25   PUBLIC   trc_ini   ! called by ??? 
    2726 
    28 #if defined key_trc_lobster1 
     27# if defined key_trc_lobster1 
    2928   !!---------------------------------------------------------------------- 
    3029   !!   'key_trc_lobster1'                        LOBSTER1 biological model   
     
    3231#  include "trcini.lobster1.h90" 
    3332 
    34 #elif defined key_trc_pisces 
     33# elif defined key_trc_pisces 
    3534   !!---------------------------------------------------------------------- 
    3635   !!   'key_trc_pisces'                            PISCES biological model                   
     
    3837#  include "trcini.pisces.h90" 
    3938 
    40 #elif defined key_cfc 
     39# elif defined key_cfc 
    4140   !!---------------------------------------------------------------------- 
    4241   !!   'key_cfc  '                                          CFC model                   
     
    4443#  include "trcini.cfc.h90" 
    4544 
    46 #else 
     45# else 
    4746   !!---------------------------------------------------------------------- 
    4847   !!   Default option                                
     48   !!---------------------------------------------------------------------- 
     49   !!---------------------------------------------------------------------- 
     50   !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007)  
     51   !! $Header:$  
     52   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    4953   !!---------------------------------------------------------------------- 
    5054 
     
    5256 
    5357   SUBROUTINE trc_ini 
    54       !!--------------------------------------------------------------------- 
     58      !!------------------------------------------------------------------- 
    5559      !!                    ***  ROUTINE trc_ini  *** 
    5660      !!               
    57       !! ** Purpose : Initialization for passive tracer 
    58       !!              for restart or not 
    59       !! 
    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       !!--------------------------------------------------------------------- 
     61      !! ** Purpose :   Initialization of all passive tracer to zero 
     62      !!              (default case) 
     63      !!------------------------------------------------------------------- 
     64      INTEGER ::   ji ,jj ,jk ,jn, jl        ! dummy loop indices   
     65      !!------------------------------------------------------------------- 
    6966 
     67      IF(lwp) WRITE(numout,*) 
     68      IF(lwp) WRITE(numout,*) 'trc_ini : initial set up of the passive tracers' 
     69      IF(lwp) WRITE(numout,*) '~~~~~~~' 
    7070 
    71       !! 1. initialization of passives tracers field 
    72       !! ------------------------------------------- 
     71      ! initialization of passives tracers field 
     72      ! ---------------------------------------- 
    7373      DO jn = 1, jptra 
    74          trn(:,:,:,jn)=0.e0 
    75          tra(:,:,:,jn)=0.e0 
     74         trn(:,:,:,jn) = 0.e0 
     75         tra(:,:,:,jn) = 0.e0 
    7676      END DO 
    7777 
    78 #if defined key_trc_diaadd 
    79       !! initialization of output 2d and 3d arrays 
     78#  if defined key_trc_diaadd 
     79      ! initialization of output 2d and 3d arrays 
     80      DO jn = 1, jpdia2d 
     81         trc2d(:,:,jn) = 0.e0 
     82      END DO 
     83      DO jn = 1, jpdia3d 
     84         trc3d(:,:,:,jn) = 0.e0 
     85      END DO 
     86#  endif 
    8087 
    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 
     88#  if defined key_trc_diabio 
     89      ! initialization of biological trends 
     90      DO jn = 1, jpdiabio 
    9391         trbio(:,:,:,jn) = 0.e0 
    9492      END DO 
    95 #endif 
     93#  endif 
    9694 
    97 #if defined key_trc_diatrd 
    98       !! initialization of tracer trends 
     95#  if defined key_trc_diatrd 
     96      ! initialization of tracer trends 
    9997      DO jl = 1, jpdiatrc 
    10098         DO jn = 1, jptra 
    101             IF (luttrd(jn)) trtrd(:,:,:,ikeep(jn),jl) = 0.e0 
     99            IF( luttrd(jn) )  trtrd(:,:,:,ikeep(jn),jl) = 0.e0 
    102100         END DO 
    103101      END DO 
    104 #endif       
    105  
    106       IF( lwp ) THEN 
    107          WRITE(numout,*) ' ' 
    108          WRITE(numout,*) ' trcini: generic initialisation done ' 
    109          WRITE(numout,*) ' ' 
    110       ENDIF 
    111  
     102#  endif       
     103      ! 
    112104   END SUBROUTINE trc_ini 
    113105 
    114 #endif 
     106# endif 
    115107 
    116108#else 
     
    120112CONTAINS 
    121113   SUBROUTINE trc_ini              ! Empty routine 
    122  
    123114   END SUBROUTINE trc_ini 
    124115#endif 
Note: See TracChangeset for help on using the changeset viewer.