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 3271 for branches/2011/dev_NEMO_MERGE_2011 – NEMO

Ignore:
Timestamp:
2012-01-23T10:07:59+01:00 (12 years ago)
Author:
cetlod
Message:

dev_NEMO_MERGE_2011:suppress useless variable kindic in trcdia.F90, see ticket #916

File:
1 edited

Legend:

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

    r3124 r3271  
    6666      !! ** Purpose :   output passive tracers fields  
    6767      !!--------------------------------------------------------------------- 
    68       INTEGER, INTENT(in) ::   kt             ! ocean time-step 
    69       ! 
    70       INTEGER             ::  ierr,  kindic   ! local integer 
     68      INTEGER, INTENT(in) ::   kt    ! ocean time-step 
     69      ! 
     70      INTEGER             ::  ierr   ! local integer 
    7171      !!--------------------------------------------------------------------- 
    7272      ! 
     
    7979      ! 
    8080      IF( .NOT.lk_iomput ) THEN 
    81                           CALL trcdit_wr( kt, kindic )      ! outputs for tracer concentration 
    82          IF( ln_diatrc )  CALL trcdii_wr( kt, kindic )      ! outputs for additional arrays 
    83          IF( ln_diabio )  CALL trcdib_wr( kt, kindic )      ! outputs for biological trends 
     81                          CALL trcdit_wr( kt )      ! outputs for tracer concentration 
     82         IF( ln_diatrc )  CALL trcdii_wr( kt )      ! outputs for additional arrays 
     83         IF( ln_diabio )  CALL trcdib_wr( kt )      ! outputs for biological trends 
    8484      ENDIF 
    8585      ! 
     
    8787 
    8888 
    89    SUBROUTINE trcdit_wr( kt, kindic ) 
     89   SUBROUTINE trcdit_wr( kt ) 
    9090      !!---------------------------------------------------------------------- 
    9191      !!                     ***  ROUTINE trcdit_wr  *** 
     
    9999      !!        Each nwritetrc time step, output the instantaneous or mean fields 
    100100      !! 
    101       !!        IF kindic <0, output of fields before the model interruption. 
    102       !!        IF kindic =0, time step loop 
    103       !!        IF kindic >0, output of fields before the time step loop 
    104101      !!---------------------------------------------------------------------- 
    105102      INTEGER, INTENT(in) ::   kt       ! ocean time-step 
    106       INTEGER, INTENT(in) ::   kindic   ! indicator of abnormal termination 
    107103      ! 
    108104      INTEGER ::   jn 
     
    150146      ! -------------------------------------------------------------- 
    151147 
    152       IF(ll_print)WRITE(numout,*)'trcdit_wr kt=',kt,' kindic ',kindic 
     148      IF(ll_print)WRITE(numout,*)'trcdit_wr kt=',kt 
    153149       
    154150      IF( kt == nittrc000 ) THEN 
     
    231227      ! close the file  
    232228      ! -------------- 
    233       IF( kt == nitend .OR. kindic < 0 )   CALL histclo( nit5 ) 
     229      IF( kt == nitend )   CALL histclo( nit5 ) 
    234230      ! 
    235231   END SUBROUTINE trcdit_wr 
    236232 
    237    SUBROUTINE trcdii_wr( kt, kindic ) 
     233   SUBROUTINE trcdii_wr( kt ) 
    238234      !!---------------------------------------------------------------------- 
    239235      !!                     ***  ROUTINE trcdii_wr  *** 
     
    247243      !!        Each nn_writedia time step, output the instantaneous or mean fields 
    248244      !! 
    249       !!        IF kindic <0, output of fields before the model interruption. 
    250       !!        IF kindic =0, time step loop 
    251       !!        IF kindic >0, output of fields before the time step loop 
    252245      !!---------------------------------------------------------------------- 
    253246      INTEGER, INTENT(in) ::   kt       ! ocean time-step 
    254       INTEGER, INTENT(in) ::   kindic   ! indicator of abnormal termination 
    255247      !! 
    256248      LOGICAL ::   ll_print = .FALSE. 
     
    297289      ! ----------------------------------------------------------------- 
    298290 
    299       IF( ll_print ) WRITE(numout,*) 'trcdii_wr kt=', kt, ' kindic ', kindic 
     291      IF( ll_print ) WRITE(numout,*) 'trcdii_wr kt=', kt 
    300292 
    301293      IF( kt == nittrc000 ) THEN 
     
    371363      ! Closing all files 
    372364      ! ----------------- 
    373       IF( kt == nitend .OR. kindic < 0 )   CALL histclo(nitd) 
     365      IF( kt == nitend )   CALL histclo(nitd) 
    374366      ! 
    375367 
    376368   END SUBROUTINE trcdii_wr 
    377369 
    378    SUBROUTINE trcdib_wr( kt, kindic ) 
     370   SUBROUTINE trcdib_wr( kt ) 
    379371      !!---------------------------------------------------------------------- 
    380372      !!                     ***  ROUTINE trcdib_wr  *** 
     
    388380      !!        Each nn_writebio time step, output the instantaneous or mean fields 
    389381      !! 
    390       !!        IF kindic <0, output of fields before the model interruption. 
    391       !!        IF kindic =0, time step loop 
    392       !!        IF kindic >0, output of fields before the time step loop 
    393382      !!---------------------------------------------------------------------- 
    394383      INTEGER, INTENT( in ) ::   kt          ! ocean time-step 
    395       INTEGER, INTENT( in ) ::   kindic      ! indicator of abnormal termination 
    396384      !! 
    397385      LOGICAL ::   ll_print = .FALSE. 
     
    438426      ! -------------------------------------------------------------- 
    439427 
    440       IF(ll_print) WRITE(numout,*)'trcdib_wr kt=',kt,' kindic ',kindic 
     428      IF(ll_print) WRITE(numout,*)'trcdib_wr kt=',kt 
    441429 
    442430      IF( kt == nittrc000 ) THEN 
     
    488476      ! Closing all files 
    489477      ! ----------------- 
    490       IF( kt == nitend .OR. kindic < 0 )   CALL histclo( nitb ) 
     478      IF( kt == nitend )   CALL histclo( nitb ) 
    491479      ! 
    492480   END SUBROUTINE trcdib_wr 
Note: See TracChangeset for help on using the changeset viewer.