diafwb.F90 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  1. MODULE diafwb
  2. !!======================================================================
  3. !! *** MODULE diafwb ***
  4. !! Ocean diagnostics: freshwater budget
  5. !!======================================================================
  6. !! History : 8.2 ! 01-02 (E. Durand) Original code
  7. !! 8.5 ! 02-06 (G. Madec) F90: Free form and module
  8. !! 9.0 ! 05-11 (V. Garnier) Surface pressure gradient organization
  9. !!----------------------------------------------------------------------
  10. !!----------------------------------------------------------------------
  11. !! Only for ORCA2 ORCA1 and ORCA025
  12. !!----------------------------------------------------------------------
  13. !!----------------------------------------------------------------------
  14. !! dia_fwb : freshwater budget for global ocean configurations
  15. !!----------------------------------------------------------------------
  16. USE oce ! ocean dynamics and tracers
  17. USE dom_oce ! ocean space and time domain
  18. USE phycst ! physical constants
  19. USE sbc_oce ! ???
  20. USE zdf_oce ! ocean vertical physics
  21. USE in_out_manager ! I/O manager
  22. USE lib_mpp ! distributed memory computing library
  23. USE timing ! preformance summary
  24. IMPLICIT NONE
  25. PRIVATE
  26. PUBLIC dia_fwb ! routine called by step.F90
  27. REAL(wp) :: a_fwf , &
  28. & a_sshb, a_sshn, a_salb, a_saln
  29. REAL(wp), DIMENSION(4) :: a_flxi, a_flxo, a_temi, a_temo, a_sali, a_salo
  30. !! * Substitutions
  31. # include "domzgr_substitute.h90"
  32. # include "vectopt_loop_substitute.h90"
  33. !!----------------------------------------------------------------------
  34. !! NEMO/OPA 3.3 , NEMO Consortium (2010)
  35. !! $Id: diafwb.F90 5506 2015-06-29 15:19:38Z clevy $
  36. !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
  37. !!----------------------------------------------------------------------
  38. CONTAINS
  39. SUBROUTINE dia_fwb( kt )
  40. !!---------------------------------------------------------------------
  41. !! *** ROUTINE dia_fwb ***
  42. !!
  43. !! ** Purpose :
  44. !!----------------------------------------------------------------------
  45. INTEGER, INTENT( in ) :: kt ! ocean time-step index
  46. !!
  47. INTEGER :: inum ! temporary logical unit
  48. INTEGER :: ji, jj, jk, jt ! dummy loop indices
  49. INTEGER :: ii0, ii1, ij0, ij1
  50. INTEGER :: isrow ! index for ORCA1 starting row
  51. REAL(wp) :: zarea, zvol, zwei
  52. REAL(wp) :: ztemi(4), ztemo(4), zsali(4), zsalo(4), zflxi(4), zflxo(4)
  53. REAL(wp) :: zt, zs, zu
  54. REAL(wp) :: zsm0, zfwfnew
  55. IF( cp_cfg == "orca" .AND. jp_cfg == 1 .OR. jp_cfg == 2 .OR. jp_cfg == 4 ) THEN
  56. !!----------------------------------------------------------------------
  57. IF( nn_timing == 1 ) CALL timing_start('dia_fwb')
  58. ! Mean global salinity
  59. zsm0 = 34.72654
  60. ! To compute fwf mean value mean fwf
  61. IF( kt == nit000 ) THEN
  62. a_fwf = 0.e0
  63. a_sshb = 0.e0 ! valeur de ssh au debut de la simulation
  64. a_salb = 0.e0 ! valeur de sal au debut de la simulation
  65. ! sshb used because diafwb called after tranxt (i.e. after the swap)
  66. a_sshb = SUM( e1t(:,:) * e2t(:,:) * sshb(:,:) * tmask_i(:,:) )
  67. IF( lk_mpp ) CALL mpp_sum( a_sshb ) ! sum over the global domain
  68. DO jk = 1, jpkm1
  69. DO jj = 2, jpjm1
  70. DO ji = fs_2, fs_jpim1 ! vector opt.
  71. zwei = e1t(ji,jj) * e2t(ji,jj) * fse3t(ji,jj,jk) * tmask(ji,jj,jk) * tmask_i(ji,jj)
  72. a_salb = a_salb + ( tsb(ji,jj,jk,jp_sal) - zsm0 ) * zwei
  73. END DO
  74. END DO
  75. END DO
  76. IF( lk_mpp ) CALL mpp_sum( a_salb ) ! sum over the global domain
  77. ENDIF
  78. a_fwf = SUM( e1t(:,:) * e2t(:,:) * ( emp(:,:)-rnf(:,:) ) * tmask_i(:,:) )
  79. IF( lk_mpp ) CALL mpp_sum( a_fwf ) ! sum over the global domain
  80. IF( kt == nitend ) THEN
  81. a_sshn = 0.e0
  82. a_saln = 0.e0
  83. zarea = 0.e0
  84. zvol = 0.e0
  85. zfwfnew = 0.e0
  86. ! Mean sea level at nitend
  87. a_sshn = SUM( e1t(:,:) * e2t(:,:) * sshn(:,:) * tmask_i(:,:) )
  88. IF( lk_mpp ) CALL mpp_sum( a_sshn ) ! sum over the global domain
  89. zarea = SUM( e1t(:,:) * e2t(:,:) * tmask_i(:,:) )
  90. IF( lk_mpp ) CALL mpp_sum( zarea ) ! sum over the global domain
  91. DO jk = 1, jpkm1
  92. DO jj = 2, jpjm1
  93. DO ji = fs_2, fs_jpim1 ! vector opt.
  94. zwei = e1t(ji,jj) * e2t(ji,jj) * fse3t(ji,jj,jk) * tmask(ji,jj,jk) * tmask_i(ji,jj)
  95. a_saln = a_saln + ( tsn(ji,jj,jk,jp_sal) - zsm0 ) * zwei
  96. zvol = zvol + zwei
  97. END DO
  98. END DO
  99. END DO
  100. IF( lk_mpp ) CALL mpp_sum( a_saln ) ! sum over the global domain
  101. IF( lk_mpp ) CALL mpp_sum( zvol ) ! sum over the global domain
  102. ! Conversion in m3
  103. a_fwf = a_fwf * rdttra(1) * 1.e-3
  104. ! fwf correction to bring back the mean ssh to zero
  105. zfwfnew = a_sshn / ( ( nitend - nit000 + 1 ) * rdt ) * 1.e3 / zarea
  106. ENDIF
  107. ! Calcul des termes de transport
  108. ! ------------------------------
  109. ! 1 --> Gibraltar
  110. ! 2 --> Cadiz
  111. ! 3 --> Red Sea
  112. ! 4 --> Baltic Sea
  113. IF( kt == nit000 ) THEN
  114. a_flxi(:) = 0.e0
  115. a_flxo(:) = 0.e0
  116. a_temi(:) = 0.e0
  117. a_temo(:) = 0.e0
  118. a_sali(:) = 0.e0
  119. a_salo(:) = 0.e0
  120. ENDIF
  121. zflxi(:) = 0.e0
  122. zflxo(:) = 0.e0
  123. ztemi(:) = 0.e0
  124. ztemo(:) = 0.e0
  125. zsali(:) = 0.e0
  126. zsalo(:) = 0.e0
  127. ! Mean flow at Gibraltar
  128. IF( cp_cfg == "orca" ) THEN
  129. SELECT CASE ( jp_cfg )
  130. ! ! =======================
  131. CASE ( 4 ) ! ORCA_R4 configuration
  132. ! ! =======================
  133. ii0 = 70 ; ii1 = 70
  134. ij0 = 52 ; ij1 = 52
  135. ! ! =======================
  136. CASE ( 2 ) ! ORCA_R2 configuration
  137. ! ! =======================
  138. ii0 = 140 ; ii1 = 140
  139. ij0 = 102 ; ij1 = 102
  140. ! ! =======================
  141. CASE ( 1 ) ! ORCA_R1 configurations
  142. ! ! =======================
  143. ! This dirty section will be suppressed by simplification process:
  144. ! all this will come back in input files
  145. ! Currently these hard-wired indices relate to configuration with
  146. ! extend grid (jpjglo=332)
  147. isrow = 332 - jpjglo
  148. !
  149. ii0 = 283 ; ii1 = 283
  150. ij0 = 241 - isrow ; ij1 = 241 - isrow
  151. ! ! =======================
  152. CASE DEFAULT ! ORCA R05 or R025
  153. ! ! =======================
  154. CALL ctl_stop( ' dia_fwb Not yet implemented in ORCA_R05 or R025' )
  155. !
  156. END SELECT
  157. !
  158. DO ji = mi0(ii0), MIN(mi1(ii1),jpim1)
  159. DO jj = mj0(ij0), mj1(ij1)
  160. DO jk = 1, jpk
  161. zt = 0.5 * ( tsn(ji,jj,jk,jp_tem) + tsn(ji+1,jj,jk,jp_tem) )
  162. zs = 0.5 * ( tsn(ji,jj,jk,jp_sal) + tsn(ji+1,jj,jk,jp_sal) )
  163. zu = un(ji,jj,jk) * fse3t(ji,jj,jk) * e2u(ji,jj) * tmask_i(ji,jj)
  164. IF( un(ji,jj,jk) > 0.e0 ) THEN
  165. zflxi(1) = zflxi(1) + zu
  166. ztemi(1) = ztemi(1) + zt*zu
  167. zsali(1) = zsali(1) + zs*zu
  168. ELSE
  169. zflxo(1) = zflxo(1) + zu
  170. ztemo(1) = ztemo(1) + zt*zu
  171. zsalo(1) = zsalo(1) + zs*zu
  172. ENDIF
  173. END DO
  174. END DO
  175. END DO
  176. ENDIF
  177. ! Mean flow at Cadiz
  178. IF( cp_cfg == "orca" ) THEN
  179. SELECT CASE ( jp_cfg )
  180. ! ! =======================
  181. CASE ( 4 ) ! ORCA_R4 configuration
  182. ! ! =======================
  183. ii0 = 69 ; ii1 = 69
  184. ij0 = 52 ; ij1 = 52
  185. ! ! =======================
  186. CASE ( 2 ) ! ORCA_R2 configuration
  187. ! ! =======================
  188. ii0 = 137 ; ii1 = 137
  189. ij0 = 101 ; ij1 = 102
  190. ! ! =======================
  191. CASE ( 1 ) ! ORCA_R1 configurations
  192. ! ! =======================
  193. ! This dirty section will be suppressed by simplification process:
  194. ! all this will come back in input files
  195. ! Currently these hard-wired indices relate to configuration with
  196. ! extend grid (jpjglo=332)
  197. isrow = 332 - jpjglo
  198. ii0 = 282 ; ii1 = 282
  199. ij0 = 240 - isrow ; ij1 = 240 - isrow
  200. ! ! =======================
  201. CASE DEFAULT ! ORCA R05 or R025
  202. ! ! =======================
  203. CALL ctl_stop( ' dia_fwb Not yet implemented in ORCA_R05 or R025' )
  204. !
  205. END SELECT
  206. !
  207. DO ji = mi0(ii0), MIN(mi1(ii1),jpim1)
  208. DO jj = mj0(ij0), mj1(ij1)
  209. DO jk = 1, jpk
  210. zt = 0.5 * ( tsn(ji,jj,jk,jp_tem) + tsn(ji+1,jj,jk,jp_tem) )
  211. zs = 0.5 * ( tsn(ji,jj,jk,jp_sal) + tsn(ji+1,jj,jk,jp_sal) )
  212. zu = un(ji,jj,jk) * fse3t(ji,jj,jk) * e2u(ji,jj) * tmask_i(ji,jj)
  213. IF( un(ji,jj,jk) > 0.e0 ) THEN
  214. zflxi(2) = zflxi(2) + zu
  215. ztemi(2) = ztemi(2) + zt*zu
  216. zsali(2) = zsali(2) + zs*zu
  217. ELSE
  218. zflxo(2) = zflxo(2) + zu
  219. ztemo(2) = ztemo(2) + zt*zu
  220. zsalo(2) = zsalo(2) + zs*zu
  221. ENDIF
  222. END DO
  223. END DO
  224. END DO
  225. ENDIF
  226. ! Mean flow at Red Sea entrance
  227. IF( cp_cfg == "orca" ) THEN
  228. SELECT CASE ( jp_cfg )
  229. ! ! =======================
  230. CASE ( 4 ) ! ORCA_R4 configuration
  231. ! ! =======================
  232. ii0 = 83 ; ii1 = 83
  233. ij0 = 45 ; ij1 = 45
  234. ! ! =======================
  235. CASE ( 2 ) ! ORCA_R2 configuration
  236. ! ! =======================
  237. ii0 = 160 ; ii1 = 160
  238. ij0 = 88 ; ij1 = 88
  239. ! ! =======================
  240. CASE ( 1 ) ! ORCA_R1 configurations
  241. ! ! =======================
  242. ! This dirty section will be suppressed by simplification process:
  243. ! all this will come back in input files
  244. ! Currently these hard-wired indices relate to configuration with
  245. ! extend grid (jpjglo=332)
  246. isrow = 332 - jpjglo
  247. ii0 = 331 ; ii1 = 331
  248. ij0 = 215 - isrow ; ij1 = 215 - isrow
  249. ! ! =======================
  250. CASE DEFAULT ! ORCA R05 or R025
  251. ! ! =======================
  252. CALL ctl_stop( ' dia_fwb Not yet implemented in ORCA_R05 or R025' )
  253. !
  254. END SELECT
  255. !
  256. DO ji = mi0(ii0), MIN(mi1(ii1),jpim1)
  257. DO jj = mj0(ij0), mj1(ij1)
  258. DO jk = 1, jpk
  259. zt = 0.5 * ( tsn(ji,jj,jk,jp_tem) + tsn(ji+1,jj,jk,jp_tem) )
  260. zs = 0.5 * ( tsn(ji,jj,jk,jp_sal) + tsn(ji+1,jj,jk,jp_sal) )
  261. zu = un(ji,jj,jk) * fse3t(ji,jj,jk) * e2u(ji,jj) * tmask_i(ji,jj)
  262. IF( un(ji,jj,jk) > 0.e0 ) THEN
  263. zflxi(3) = zflxi(3) + zu
  264. ztemi(3) = ztemi(3) + zt*zu
  265. zsali(3) = zsali(3) + zs*zu
  266. ELSE
  267. zflxo(3) = zflxo(3) + zu
  268. ztemo(3) = ztemo(3) + zt*zu
  269. zsalo(3) = zsalo(3) + zs*zu
  270. ENDIF
  271. END DO
  272. END DO
  273. END DO
  274. ENDIF
  275. ! Mean flow at Baltic Sea entrance
  276. IF( cp_cfg == "orca" ) THEN
  277. SELECT CASE ( jp_cfg )
  278. ! ! =======================
  279. CASE ( 4 ) ! ORCA_R4 configuration
  280. ! ! =======================
  281. ii0 = 1 ; ii1 = 1
  282. ij0 = 1 ; ij1 = 1
  283. ! ! =======================
  284. CASE ( 2 ) ! ORCA_R2 configuration
  285. ! ! =======================
  286. ii0 = 146 ; ii1 = 146
  287. ij0 = 116 ; ij1 = 116
  288. ! ! =======================
  289. CASE ( 1 ) ! ORCA_R1 configurations
  290. ! ! =======================
  291. ! This dirty section will be suppressed by simplification process:
  292. ! all this will come back in input files
  293. ! Currently these hard-wired indices relate to configuration with
  294. ! extend grid (jpjglo=332)
  295. isrow = 332 - jpjglo
  296. ii0 = 297 ; ii1 = 297
  297. ij0 = 269 - isrow ; ij1 = 269 - isrow
  298. ! ! =======================
  299. CASE DEFAULT ! ORCA R05 or R025
  300. ! ! =======================
  301. CALL ctl_stop( ' dia_fwb Not yet implemented in ORCA_R05 or R025' )
  302. !
  303. END SELECT
  304. !
  305. DO ji = mi0(ii0), MIN(mi1(ii1),jpim1)
  306. DO jj = mj0(ij0), mj1(ij1)
  307. DO jk = 1, jpk
  308. zt = 0.5 * ( tsn(ji,jj,jk,jp_tem) + tsn(ji+1,jj,jk,jp_tem) )
  309. zs = 0.5 * ( tsn(ji,jj,jk,jp_sal) + tsn(ji+1,jj,jk,jp_sal) )
  310. zu = un(ji,jj,jk) * fse3t(ji,jj,jk) * e2u(ji,jj) * tmask_i(ji,jj)
  311. IF( un(ji,jj,jk) > 0.e0 ) THEN
  312. zflxi(4) = zflxi(4) + zu
  313. ztemi(4) = ztemi(4) + zt*zu
  314. zsali(4) = zsali(4) + zs*zu
  315. ELSE
  316. zflxo(4) = zflxo(4) + zu
  317. ztemo(4) = ztemo(4) + zt*zu
  318. zsalo(4) = zsalo(4) + zs*zu
  319. ENDIF
  320. END DO
  321. END DO
  322. END DO
  323. ENDIF
  324. ! Sum at each time-step
  325. DO jt = 1, 4
  326. !
  327. IF( zflxi(jt) /= 0.e0 ) THEN
  328. a_flxi(jt) = a_flxi(jt) + zflxi(jt)
  329. a_temi(jt) = a_temi(jt) + ztemi(jt)/zflxi(jt)
  330. a_sali(jt) = a_sali(jt) + zsali(jt)/zflxi(jt)
  331. ENDIF
  332. !
  333. IF( zflxo(jt) /= 0.e0 ) THEN
  334. a_flxo(jt) = a_flxo(jt) + zflxo(jt)
  335. a_temo(jt) = a_temo(jt) + ztemo(jt)/zflxo(jt)
  336. a_salo(jt) = a_salo(jt) + zsalo(jt)/zflxo(jt)
  337. ENDIF
  338. !
  339. END DO
  340. IF( kt == nitend ) THEN
  341. DO jt = 1, 4
  342. a_flxi(jt) = a_flxi(jt) / ( FLOAT( nitend - nit000 + 1 ) * 1.e6 )
  343. a_temi(jt) = a_temi(jt) / FLOAT( nitend - nit000 + 1 )
  344. a_sali(jt) = a_sali(jt) / FLOAT( nitend - nit000 + 1 )
  345. a_flxo(jt) = a_flxo(jt) / ( FLOAT( nitend - nit000 + 1 ) * 1.e6 )
  346. a_temo(jt) = a_temo(jt) / FLOAT( nitend - nit000 + 1 )
  347. a_salo(jt) = a_salo(jt) / FLOAT( nitend - nit000 + 1 )
  348. END DO
  349. IF( lk_mpp ) THEN
  350. CALL mpp_sum( a_flxi, 4 ) ! sum over the global domain
  351. CALL mpp_sum( a_temi, 4 ) ! sum over the global domain
  352. CALL mpp_sum( a_sali, 4 ) ! sum over the global domain
  353. CALL mpp_sum( a_flxo, 4 ) ! sum over the global domain
  354. CALL mpp_sum( a_temo, 4 ) ! sum over the global domain
  355. CALL mpp_sum( a_salo, 4 ) ! sum over the global domain
  356. ENDIF
  357. ENDIF
  358. ! Ecriture des diagnostiques
  359. ! --------------------------
  360. IF ( kt == nitend .AND. cp_cfg == "orca" .AND. lwp ) THEN
  361. CALL ctl_opn( inum, 'STRAIT.dat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea )
  362. WRITE(inum,*)
  363. WRITE(inum,*) 'Net freshwater budget '
  364. WRITE(inum,9010) ' fwf = ',a_fwf, ' m3 =', a_fwf /(FLOAT(nitend-nit000+1)*rdttra(1)) * 1.e-6,' Sv'
  365. WRITE(inum,*)
  366. WRITE(inum,9010) ' zarea =',zarea
  367. WRITE(inum,9010) ' zvol =',zvol
  368. WRITE(inum,*)
  369. WRITE(inum,*) 'Mean sea level : '
  370. WRITE(inum,9010) ' at nit000 = ',a_sshb ,' m3 '
  371. WRITE(inum,9010) ' at nitend = ',a_sshn ,' m3 '
  372. WRITE(inum,9010) ' diff = ',(a_sshn-a_sshb),' m3 =', (a_sshn-a_sshb)/(FLOAT(nitend-nit000+1)*rdt) * 1.e-6,' Sv'
  373. WRITE(inum,9020) ' mean sea level elevation =', a_sshn/zarea,' m'
  374. WRITE(inum,*)
  375. WRITE(inum,*) 'Anomaly of salinity content : '
  376. WRITE(inum,9010) ' at nit000 = ',a_salb ,' psu.m3 '
  377. WRITE(inum,9010) ' at nitend = ',a_saln ,' psu.m3 '
  378. WRITE(inum,9010) ' diff = ',(a_saln-a_salb),' psu.m3'
  379. WRITE(inum,*)
  380. WRITE(inum,*) 'Mean salinity : '
  381. WRITE(inum,9020) ' at nit000 =',a_salb/zvol+zsm0 ,' psu '
  382. WRITE(inum,9020) ' at nitend =',a_saln/zvol+zsm0 ,' psu '
  383. WRITE(inum,9020) ' diff =',(a_saln-a_salb)/zvol,' psu'
  384. WRITE(inum,9020) ' S-SLevitus=',a_saln/zvol,' psu'
  385. WRITE(inum,*)
  386. WRITE(inum,*) 'Gibraltar : '
  387. WRITE(inum,9030) ' Flux entrant (Sv) :', a_flxi(1)
  388. WRITE(inum,9030) ' Flux sortant (Sv) :', a_flxo(1)
  389. WRITE(inum,9030) ' T entrant (deg) :', a_temi(1)
  390. WRITE(inum,9030) ' T sortant (deg) :', a_temo(1)
  391. WRITE(inum,9030) ' S entrant (psu) :', a_sali(1)
  392. WRITE(inum,9030) ' S sortant (psu) :', a_salo(1)
  393. WRITE(inum,*)
  394. WRITE(inum,*) 'Cadiz : '
  395. WRITE(inum,9030) ' Flux entrant (Sv) :', a_flxi(2)
  396. WRITE(inum,9030) ' Flux sortant (Sv) :', a_flxo(2)
  397. WRITE(inum,9030) ' T entrant (deg) :', a_temi(2)
  398. WRITE(inum,9030) ' T sortant (deg) :', a_temo(2)
  399. WRITE(inum,9030) ' S entrant (psu) :', a_sali(2)
  400. WRITE(inum,9030) ' S sortant (psu) :', a_salo(2)
  401. WRITE(inum,*)
  402. WRITE(inum,*) 'Bab el Mandeb : '
  403. WRITE(inum,9030) ' Flux entrant (Sv) :', a_flxi(3)
  404. WRITE(inum,9030) ' Flux sortant (Sv) :', a_flxo(3)
  405. WRITE(inum,9030) ' T entrant (deg) :', a_temi(3)
  406. WRITE(inum,9030) ' T sortant (deg) :', a_temo(3)
  407. WRITE(inum,9030) ' S entrant (psu) :', a_sali(3)
  408. WRITE(inum,9030) ' S sortant (psu) :', a_salo(3)
  409. WRITE(inum,*)
  410. WRITE(inum,*) 'Baltic : '
  411. WRITE(inum,9030) ' Flux entrant (Sv) :', a_flxi(4)
  412. WRITE(inum,9030) ' Flux sortant (Sv) :', a_flxo(4)
  413. WRITE(inum,9030) ' T entrant (deg) :', a_temi(4)
  414. WRITE(inum,9030) ' T sortant (deg) :', a_temo(4)
  415. WRITE(inum,9030) ' S entrant (psu) :', a_sali(4)
  416. WRITE(inum,9030) ' S sortant (psu) :', a_salo(4)
  417. CLOSE(inum)
  418. ENDIF
  419. IF( nn_timing == 1 ) CALL timing_start('dia_fwb')
  420. 9005 FORMAT(1X,A,ES24.16)
  421. 9010 FORMAT(1X,A,ES12.5,A,F10.5,A)
  422. 9020 FORMAT(1X,A,F10.5,A)
  423. 9030 FORMAT(1X,A,F9.4,A)
  424. ENDIF
  425. END SUBROUTINE dia_fwb
  426. !!======================================================================
  427. END MODULE diafwb