Changeset 2528 for trunk/NEMOGCM/NEMO/OPA_SRC/DIA/diawri_dimg.h90
- Timestamp:
- 2010-12-27T18:33:53+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/OPA_SRC/DIA/diawri_dimg.h90
- Property svn:eol-style deleted
r1685 r2528 2 2 !! *** diawri_dimg.h90 *** 3 3 !!---------------------------------------------------------------------- 4 !! OPA 9.0 , LOCEAN-IPSL (2005)5 !! $Id $6 !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt4 !! NEMO/OPA 3.3 , NEMO Consortium (2010) 5 !! $Id $ 6 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 7 7 !!---------------------------------------------------------------------- 8 8 9 SUBROUTINE dia_wri (kt)9 SUBROUTINE dia_wri( kt ) 10 10 !!---------------------------------------------------------------------- 11 11 !! *** routine dia_wri *** … … 42 42 !! level 2: vtau(:,:) * vmask(:,:,1) meridional stress in N. m-2 43 43 !! level 3: qsr + qns total heat flux (W/m2) 44 !! level 4: emp (:,:)E-P flux (mm/day)44 !! level 4: ( emp (:,:)-rnf(:,:) ) E-P flux (mm/day) 45 45 !! level 5: tb (:,:,1)-sst model SST -forcing sst (degree C) ! deprecated 46 46 !! level 6: bsfb(:,:) streamfunction (m**3/s) … … 54 54 !! level 14: qct(:,:) equivalent flux due to treshold SST 55 55 !! level 15: fbt(:,:) feedback term . 56 !! level 16: emps(:,:)concentration/dilution water flux56 !! level 16: ( emps(:,:) - rnf(:,:) ) concentration/dilution water flux 57 57 !! level 17: fsalt(:,:) Ice=>ocean net freshwater 58 58 !! level 18: gps(:,:) the surface pressure (m). … … 60 60 !! level 20: spgv(:,:) the surface pressure gradient in Y direction. 61 61 !! 62 !! History 63 !! original : 91-03 () 64 !! additions : 91-11 (G. Madec) 65 !! additions : 92-06 (M. Imbard) correction restart file 66 !! additions : 92-07 (M. Imbard) split into diawri and rstwri 67 !! additions : 93-03 (M. Imbard) suppress writibm 68 !! additions : 94-12 (M. Imbard) acces direct files 69 !! additions : 97-2002 ( Clipper Group ) dimg files 70 !! dec 2003 ( J.M. Molines) f90, mpp output for OPA9.0 71 !! 9.0 ! 05-05 (S. Theetten) add emps fsalt move gps spgu spgv 2 lines below 72 !! 9.0 ! 05-11 (V. Garnier) Surface pressure gradient organization 62 !! History: OPA ! 1997-02 ( Clipper Group ) dimg files 63 !! - ! 2003-12 ( J.M. Molines) f90, mpp output for OPA9.0 64 !! NEMO 1.0 ! 2005-05 (S. Theetten) add emps fsalt move gps spgu spgv 2 lines below 65 !! - ! 2005-11 (V. Garnier) Surface pressure gradient organization 73 66 !!---------------------------------------------------------------------- 74 !! * modules used75 67 USE lib_mpp 76 77 !! * Arguments 68 !! 78 69 INTEGER ,INTENT(in) :: kt 79 80 !! * local declarations 70 !! 81 71 INTEGER :: inbsel, jk 82 !! INTEGER :: iwrite83 72 INTEGER :: iyear,imon,iday 84 73 INTEGER, SAVE :: nmoyct … … 101 90 CHARACTER(LEN=80) :: clmode 102 91 CHARACTER(LEN= 4) :: clver 92 !!---------------------------------------------------------------------- 103 93 ! 104 94 ! Initialization 105 95 ! --------------- 106 96 ! 107 #ifdef key_diaspr108 inbsel = 20109 #else110 97 inbsel = 17 111 #endif 112 #if defined key_flx_core 113 inbsel = 23 114 #endif 115 116 IF( inbsel > jpk) THEN 117 IF( lwp) WRITE(numout,*) & 118 ' STOP inbsel =',inbsel,' is larger than jpk=',jpk 98 99 IF( inbsel > jpk ) THEN 100 IF(lwp) WRITE(numout,*) ' STOP inbsel =',inbsel,' is larger than jpk=',jpk 119 101 STOP 120 102 ENDIF 121 122 103 123 104 iyear = ndastp/10000 … … 167 148 fsel(:,:,2 ) = fsel(:,:,2 ) + vtau(:,:) * vmask(:,:,1) 168 149 fsel(:,:,3 ) = fsel(:,:,3 ) + qsr (:,:) + qns (:,:) 169 fsel(:,:,4 ) = fsel(:,:,4 ) + emp (:,:)150 fsel(:,:,4 ) = fsel(:,:,4 ) + ( emp(:,:)-rnf(:,:) ) 170 151 ! fsel(:,:,5 ) = fsel(:,:,5 ) + tb (:,:,1) !RB not used 171 152 fsel(:,:,6 ) = fsel(:,:,6 ) + sshn(:,:) … … 179 160 ! fsel(:,:,14) = fsel(:,:,14) + qct(:,:) 180 161 ! fsel(:,:,15) = fsel(:,:,15) + fbt(:,:) 181 fsel(:,:,16) = fsel(:,:,16) + emps(:,:) 182 #ifdef key_diaspr 183 fsel(:,:,18) = fsel(:,:,18) + gps(:,:)/g 184 #endif 162 fsel(:,:,16) = fsel(:,:,16) + ( emps(:,:)-rnf(:,:) ) 185 163 ! 186 164 ! Output of dynamics and tracer fields and selected fields … … 210 188 ! computed from the averaged gradients. 211 189 ! 212 #ifdef key_diaspr213 fsel(:,:,18)= gps(:,:)/g214 fsel(:,:,19)= spgu(:,:)215 fsel(:,:,20)= spgv(:,:)216 #endif217 190 ! mask mean field with tmask except utau vtau (1,2) 218 191 DO jk=3,inbsel … … 242 215 fsel(:,:,2 ) = vtau(:,:) * vmask(:,:,1) 243 216 fsel(:,:,3 ) = (qsr (:,:) + qns (:,:)) * tmask(:,:,1) 244 fsel(:,:,4 ) = emp (:,:) * tmask(:,:,1)217 fsel(:,:,4 ) = ( emp(:,:)-rnf(:,:) ) * tmask(:,:,1) 245 218 ! fsel(:,:,5 ) = (tb (:,:,1) - sf_sst(1)%fnow(:,:) ) *tmask(:,:,1) !RB not used 246 219 … … 255 228 ! fsel(:,:,14) = qct(:,:) 256 229 ! fsel(:,:,15) = fbt(:,:) 257 fsel(:,:,16) = emps(:,:) * tmask(:,:,1) 258 #ifdef key_diaspr 259 fsel(:,:,18) = gps(:,:) /g 260 fsel(:,:,19) = spgu(:,:) 261 fsel(:,:,20) = spgv(:,:) 262 #endif 230 fsel(:,:,16) = ( emps(:,:)-rnf(:,:) ) * tmask(:,:,1) 263 231 ! 264 232 ! qct(:,:) = 0._wp … … 383 351 ! 384 352 9000 FORMAT(a,"_",a,"_y",i4.4,"m",i2.2,"d",i2.2,".dimgproc") 385 353 ! 386 354 END SUBROUTINE dia_wri
Note: See TracChangeset
for help on using the changeset viewer.