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 1567 – NEMO

Changeset 1567


Ignore:
Timestamp:
2009-07-31T16:39:55+02:00 (15 years ago)
Author:
ctlod
Message:

DIMG: remove kindic argument from dia_wri call subroutine, see ticket: #509 & #496

Location:
trunk/NEMO/OPA_SRC/DIA
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DIA/diawri.F90

    r1561 r1567  
    528528# endif 
    529529 
     530#endif 
     531 
    530532   SUBROUTINE dia_wri_state( cdfile_name, kt ) 
    531533      !!--------------------------------------------------------------------- 
     
    651653      ! ----------------- 
    652654      CALL histclo( id_i ) 
    653 #if ! defined key_iomput 
     655#if ! defined key_iomput && ! defined key_dimgout 
    654656      IF( ninist /= 1  ) THEN 
    655657         CALL histclo( nid_T ) 
     
    661663 
    662664   END SUBROUTINE dia_wri_state 
    663  
    664 #endif 
    665665   !!====================================================================== 
    666666END MODULE diawri 
  • trunk/NEMO/OPA_SRC/DIA/diawri_dimg.h90

    r1528 r1567  
    77  !!---------------------------------------------------------------------- 
    88 
    9   SUBROUTINE dia_wri (kt, kindic) 
     9  SUBROUTINE dia_wri (kt) 
    1010    !!---------------------------------------------------------------------- 
    1111    !!           *** routine dia_wri *** 
     
    2121    !!     If 'key_diainstant' is defined, no mean values are computed and the  
    2222    !!     instantaneous fields are dump. 
    23     !!     kindic is 0 or >0 in normal condition. When < 0 it indicates an error 
    24     !!     condition and instantaneous file output is forced. 
    2523    !!       Each processor creates its own file with its local data 
    2624    !!     Merging all the files is performed off line by a dedicated program 
     
    7876 
    7977    !! * Arguments 
    80     INTEGER ,INTENT(in) :: kt, kindic 
     78    INTEGER ,INTENT(in) :: kt 
    8179 
    8280    !! * local declarations 
     
    197195 
    198196       IF(  ( MOD (kt-nit000+1,nwrite) ==  0 )          & 
    199             &   .OR.       kindic <   0            & 
    200             &   .OR. ( kt == 1 .AND. kindic > 0)  ) THEN 
     197            &   .OR. ( kt == 1 .AND. ninist ==1 )  ) THEN 
    201198          ! it is time to make a dump on file  
    202199          ! compute average 
     
    237234       !     IF (abs(adatrj-iwrite*rwrite) < zdtj/2.  & 
    238235       IF (  ( MOD (kt-nit000+1,nwrite) ==  0 )          & 
    239             &   .OR.       kindic <   0            & 
    240             &   .OR. ( kt == 1 .AND. kindic > 0)  ) THEN 
     236            &   .OR. ( kt == 1 .AND. ninist == 1 )  ) THEN 
    241237          ! 
    242238          ! transfer wp arrays to sp arrays for dimg files 
     
    274270    ! 
    275271    IF(  ( MOD (kt-nit000+1,nwrite) ==  0 )          & 
    276          &   .OR.       kindic <   0            & 
    277          &   .OR. ( kt == 1 .AND. kindic > 0)  ) THEN 
     272         &   .OR. ( kt == 1 .AND. ninist == 1 )  ) THEN 
    278273 
    279274       IF( lwp) WRITE(numout,*)'Days since the begining of the run :',adatrj 
     
    283278       WRITE(clname,9000) TRIM(cexper),'U',iyear,imon,iday 
    284279       cltext=TRIM(cexper)//' U(m/s) '//TRIM(clmode) 
    285        IF ( kindic < 0 )   cltext=TRIM(cexper)//' U(m/s)  instantaneous (explosion)' 
    286280       ! 
    287281       IF( ll_dia_inst) THEN  
     
    289283 
    290284       ELSE  
    291           IF( kindic ==  -3 ) THEN 
    292              ! ... in case of explosion on umax, dump instantateous u field instead of mean. 
    293              CALL dia_wri_dimg(clname, cltext, un, jpk, 'T') 
    294           ELSE 
    295              CALL dia_wri_dimg(clname, cltext, um, jpk, 'T') 
    296           ENDIF 
     285          CALL dia_wri_dimg(clname, cltext, um, jpk, 'T') 
    297286       ENDIF 
    298287 
     
    396385 
    397386  END SUBROUTINE dia_wri 
    398  
    399   SUBROUTINE dia_wri_state ( cdfile_name, kt ) 
    400     !!------------------------------------------------------------------- 
    401     !!        ***     ROUTINE dia_wri_state  *** 
    402     !! 
    403     !! ** Purpose :   Dummy routine for compatibility with IOIPSL output 
    404     !! 
    405     !! ** History : 
    406     !!      9.O  ! 03-06  (J.M. Molines ) dimgout 
    407     !!-------------------------------------------------------------------- 
    408     INTEGER         , INTENT(in) ::   kt            ! ocean time-step index 
    409     CHARACTER(len=*), INTENT(in) ::   cdfile_name   ! name of the file created  
    410     !!-------------------------------------------------------------------- 
    411  
    412     IF( lwp) WRITE(numout,*) 'dia_wri_state: Dummy call', cdfile_name, kt 
    413     IF( lwp) WRITE(numout,*) '-------------' 
    414     IF( lwp) WRITE(numout,*) 
    415  
    416   END SUBROUTINE dia_wri_state 
Note: See TracChangeset for help on using the changeset viewer.