Changeset 1561 for trunk/NEMO/OPA_SRC/DIA/diawri.F90
- Timestamp:
- 2009-07-30T10:50:07+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/DIA/diawri.F90
r1546 r1561 74 74 !!---------------------------------------------------------------------- 75 75 # if defined key_iomput 76 SUBROUTINE dia_wri( kt , kindic)76 SUBROUTINE dia_wri( kt ) 77 77 !!--------------------------------------------------------------------- 78 78 !! *** ROUTINE dia_wri *** … … 87 87 !!---------------------------------------------------------------------- 88 88 INTEGER, INTENT( in ) :: kt ! ocean time-step index 89 INTEGER, INTENT( in ) :: kindic !90 89 !!---------------------------------------------------------------------- 91 90 ! … … 112 111 113 112 #else 114 SUBROUTINE dia_wri( kt , kindic)113 SUBROUTINE dia_wri( kt ) 115 114 !!--------------------------------------------------------------------- 116 115 !! *** ROUTINE dia_wri *** … … 123 122 !! At each time step call histdef to compute the mean if ncessary 124 123 !! Each nwrite time step, output the instantaneous or mean fields 125 !! IF kindic <0, output of fields before the model interruption.126 !! IF kindic =0, time step loop127 !! IF kindic >0, output of fields before the time step loop128 124 !! 129 125 !! History : … … 140 136 !! * Arguments 141 137 INTEGER, INTENT( in ) :: kt ! ocean time-step index 142 INTEGER, INTENT( in ) :: kindic !143 138 144 139 !! * Local declarations … … 199 194 ! 1. Define NETCDF files and fields at beginning of first time step 200 195 ! ----------------------------------------------------------------- 201 202 IF(ll_print) WRITE(numout,*) 'dia_wri kt = ', kt, ' kindic ', kindic203 196 204 197 IF( kt == nit000 ) THEN … … 525 518 ! 3. Close all files 526 519 ! --------------------------------------- 527 IF( kt == nitend .OR. kindic < 0) THEN520 IF( kt == nitend ) THEN 528 521 CALL histclo( nid_T ) 529 522 CALL histclo( nid_U ) … … 658 651 ! ----------------- 659 652 CALL histclo( id_i ) 653 #if ! defined key_iomput 654 IF( ninist /= 1 ) THEN 655 CALL histclo( nid_T ) 656 CALL histclo( nid_U ) 657 CALL histclo( nid_V ) 658 CALL histclo( nid_W ) 659 ENDIF 660 #endif 660 661 661 662 END SUBROUTINE dia_wri_state
Note: See TracChangeset
for help on using the changeset viewer.