limctl.F90 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. MODULE limctl
  2. !!======================================================================
  3. !! *** MODULE limctl ***
  4. !! LIM-3 : control and printing
  5. !!======================================================================
  6. !! History : 3.5 ! 2015-01 (M. Vancoppenolle) Original code
  7. !!----------------------------------------------------------------------
  8. #if defined key_lim3
  9. !!----------------------------------------------------------------------
  10. !! 'key_lim3' LIM3 sea-ice model
  11. !!----------------------------------------------------------------------
  12. !! lim_ctl : control prints in case of crash
  13. !! lim_prt : ice control print at a given grid point
  14. !!----------------------------------------------------------------------
  15. USE oce ! ocean dynamics and tracers
  16. USE dom_oce ! ocean space and time domain
  17. USE ice ! LIM-3: ice variables
  18. USE thd_ice ! LIM-3: thermodynamical variables
  19. USE dom_ice ! LIM-3: ice domain
  20. USE sbc_oce ! Surface boundary condition: ocean fields
  21. USE sbc_ice ! Surface boundary condition: ice fields
  22. USE phycst ! Define parameters for the routines
  23. USE lib_mpp ! MPP library
  24. USE wrk_nemo ! work arrays
  25. USE timing ! Timing
  26. USE in_out_manager ! I/O manager
  27. USE prtctl ! Print control
  28. USE lib_fortran !
  29. IMPLICIT NONE
  30. PRIVATE
  31. PUBLIC lim_ctl
  32. PUBLIC lim_prt
  33. !! * Substitutions
  34. # include "vectopt_loop_substitute.h90"
  35. !!----------------------------------------------------------------------
  36. !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2011)
  37. !! $Id: limctl.F90 5043 2015-01-28 16:44:18Z clem $
  38. !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
  39. !!----------------------------------------------------------------------
  40. CONTAINS
  41. SUBROUTINE lim_ctl( kt )
  42. !!-----------------------------------------------------------------------
  43. !! *** ROUTINE lim_ctl ***
  44. !!
  45. !! ** Purpose : Alerts in case of model crash
  46. !!-------------------------------------------------------------------
  47. INTEGER, INTENT(in) :: kt ! ocean time step
  48. INTEGER :: ji, jj, jk, jl ! dummy loop indices
  49. INTEGER :: inb_altests ! number of alert tests (max 20)
  50. INTEGER :: ialert_id ! number of the current alert
  51. REAL(wp) :: ztmelts ! ice layer melting point
  52. CHARACTER (len=30), DIMENSION(20) :: cl_alname ! name of alert
  53. INTEGER , DIMENSION(20) :: inb_alp ! number of alerts positive
  54. !!-------------------------------------------------------------------
  55. inb_altests = 10
  56. inb_alp(:) = 0
  57. ! Alert if incompatible volume and concentration
  58. ialert_id = 2 ! reference number of this alert
  59. cl_alname(ialert_id) = ' Incompat vol and con ' ! name of the alert
  60. DO jl = 1, jpl
  61. DO jj = 1, jpj
  62. DO ji = 1, jpi
  63. IF( v_i(ji,jj,jl) /= 0._wp .AND. a_i(ji,jj,jl) == 0._wp ) THEN
  64. !WRITE(numout,*) ' ALERTE 2 : Incompatible volume and concentration '
  65. !WRITE(numout,*) ' at_i ', at_i(ji,jj)
  66. !WRITE(numout,*) ' Point - category', ji, jj, jl
  67. !WRITE(numout,*) ' a_i *** a_i_b ', a_i (ji,jj,jl), a_i_b (ji,jj,jl)
  68. !WRITE(numout,*) ' v_i *** v_i_b ', v_i (ji,jj,jl), v_i_b (ji,jj,jl)
  69. inb_alp(ialert_id) = inb_alp(ialert_id) + 1
  70. ENDIF
  71. END DO
  72. END DO
  73. END DO
  74. ! Alerte if very thick ice
  75. ialert_id = 3 ! reference number of this alert
  76. cl_alname(ialert_id) = ' Very thick ice ' ! name of the alert
  77. jl = jpl
  78. DO jj = 1, jpj
  79. DO ji = 1, jpi
  80. IF( ht_i(ji,jj,jl) > 50._wp ) THEN
  81. !CALL lim_prt( kt, ji, jj, 2, ' ALERTE 3 : Very thick ice ' )
  82. inb_alp(ialert_id) = inb_alp(ialert_id) + 1
  83. ENDIF
  84. END DO
  85. END DO
  86. ! Alert if very fast ice
  87. ialert_id = 4 ! reference number of this alert
  88. cl_alname(ialert_id) = ' Very fast ice ' ! name of the alert
  89. DO jj = 1, jpj
  90. DO ji = 1, jpi
  91. IF( MAX( ABS( u_ice(ji,jj) ), ABS( v_ice(ji,jj) ) ) > 1.5 .AND. &
  92. & at_i(ji,jj) > 0._wp ) THEN
  93. !CALL lim_prt( kt, ji, jj, 1, ' ALERTE 4 : Very fast ice ' )
  94. !WRITE(numout,*) ' ice strength : ', strength(ji,jj)
  95. !WRITE(numout,*) ' oceanic stress utau : ', utau(ji,jj)
  96. !WRITE(numout,*) ' oceanic stress vtau : ', vtau(ji,jj)
  97. !WRITE(numout,*) ' sea-ice stress utau_ice : ', utau_ice(ji,jj)
  98. !WRITE(numout,*) ' sea-ice stress vtau_ice : ', vtau_ice(ji,jj)
  99. !WRITE(numout,*) ' oceanic speed u : ', u_oce(ji,jj)
  100. !WRITE(numout,*) ' oceanic speed v : ', v_oce(ji,jj)
  101. !WRITE(numout,*) ' sst : ', sst_m(ji,jj)
  102. !WRITE(numout,*) ' sss : ', sss_m(ji,jj)
  103. !WRITE(numout,*)
  104. inb_alp(ialert_id) = inb_alp(ialert_id) + 1
  105. ENDIF
  106. END DO
  107. END DO
  108. ! Alert if there is ice on continents
  109. ialert_id = 6 ! reference number of this alert
  110. cl_alname(ialert_id) = ' Ice on continents ' ! name of the alert
  111. DO jj = 1, jpj
  112. DO ji = 1, jpi
  113. IF( tmask(ji,jj,1) <= 0._wp .AND. at_i(ji,jj) > 0._wp ) THEN
  114. !CALL lim_prt( kt, ji, jj, 1, ' ALERTE 6 : Ice on continents ' )
  115. !WRITE(numout,*) ' masks s, u, v : ', tmask(ji,jj,1), umask(ji,jj,1), vmask(ji,jj,1)
  116. !WRITE(numout,*) ' sst : ', sst_m(ji,jj)
  117. !WRITE(numout,*) ' sss : ', sss_m(ji,jj)
  118. !WRITE(numout,*) ' at_i(ji,jj) : ', at_i(ji,jj)
  119. !WRITE(numout,*) ' v_ice(ji,jj) : ', v_ice(ji,jj)
  120. !WRITE(numout,*) ' v_ice(ji,jj-1) : ', v_ice(ji,jj-1)
  121. !WRITE(numout,*) ' u_ice(ji-1,jj) : ', u_ice(ji-1,jj)
  122. !WRITE(numout,*) ' u_ice(ji,jj) : ', v_ice(ji,jj)
  123. !
  124. inb_alp(ialert_id) = inb_alp(ialert_id) + 1
  125. ENDIF
  126. END DO
  127. END DO
  128. !
  129. ! ! Alert if very fresh ice
  130. ialert_id = 7 ! reference number of this alert
  131. cl_alname(ialert_id) = ' Very fresh ice ' ! name of the alert
  132. DO jl = 1, jpl
  133. DO jj = 1, jpj
  134. DO ji = 1, jpi
  135. IF( sm_i(ji,jj,jl) < 0.1 .AND. a_i(ji,jj,jl) > 0._wp ) THEN
  136. ! CALL lim_prt(kt,ji,jj,1, ' ALERTE 7 : Very fresh ice ' )
  137. ! WRITE(numout,*) ' sst : ', sst_m(ji,jj)
  138. ! WRITE(numout,*) ' sss : ', sss_m(ji,jj)
  139. ! WRITE(numout,*)
  140. inb_alp(ialert_id) = inb_alp(ialert_id) + 1
  141. ENDIF
  142. END DO
  143. END DO
  144. END DO
  145. !
  146. ! ! Alert if too old ice
  147. ialert_id = 9 ! reference number of this alert
  148. cl_alname(ialert_id) = ' Very old ice ' ! name of the alert
  149. DO jl = 1, jpl
  150. DO jj = 1, jpj
  151. DO ji = 1, jpi
  152. IF ( ( ( ABS( o_i(ji,jj,jl) ) > rdt_ice ) .OR. &
  153. ( ABS( o_i(ji,jj,jl) ) < 0._wp) ) .AND. &
  154. ( a_i(ji,jj,jl) > 0._wp ) ) THEN
  155. !CALL lim_prt( kt, ji, jj, 1, ' ALERTE 9 : Wrong ice age ')
  156. inb_alp(ialert_id) = inb_alp(ialert_id) + 1
  157. ENDIF
  158. END DO
  159. END DO
  160. END DO
  161. ! Alert on salt flux
  162. ialert_id = 5 ! reference number of this alert
  163. cl_alname(ialert_id) = ' High salt flux ' ! name of the alert
  164. DO jj = 1, jpj
  165. DO ji = 1, jpi
  166. IF( ABS( sfx (ji,jj) ) > 1.0e-2 ) THEN ! = 1 psu/day for 1m ocean depth
  167. !CALL lim_prt( kt, ji, jj, 3, ' ALERTE 5 : High salt flux ' )
  168. !DO jl = 1, jpl
  169. !WRITE(numout,*) ' Category no: ', jl
  170. !WRITE(numout,*) ' a_i : ', a_i (ji,jj,jl) , ' a_i_b : ', a_i_b (ji,jj,jl)
  171. !WRITE(numout,*) ' v_i : ', v_i (ji,jj,jl) , ' v_i_b : ', v_i_b (ji,jj,jl)
  172. !WRITE(numout,*) ' '
  173. !END DO
  174. inb_alp(ialert_id) = inb_alp(ialert_id) + 1
  175. ENDIF
  176. END DO
  177. END DO
  178. ! Alert if qns very big
  179. ialert_id = 8 ! reference number of this alert
  180. cl_alname(ialert_id) = ' fnsolar very big ' ! name of the alert
  181. DO jj = 1, jpj
  182. DO ji = 1, jpi
  183. IF( ABS( qns(ji,jj) ) > 1500._wp .AND. at_i(ji,jj) > 0._wp ) THEN
  184. !
  185. !WRITE(numout,*) ' ALERTE 8 : Very high non-solar heat flux'
  186. !WRITE(numout,*) ' ji, jj : ', ji, jj
  187. !WRITE(numout,*) ' qns : ', qns(ji,jj)
  188. !WRITE(numout,*) ' sst : ', sst_m(ji,jj)
  189. !WRITE(numout,*) ' sss : ', sss_m(ji,jj)
  190. !
  191. !CALL lim_prt( kt, ji, jj, 2, ' ')
  192. inb_alp(ialert_id) = inb_alp(ialert_id) + 1
  193. !
  194. ENDIF
  195. END DO
  196. END DO
  197. !+++++
  198. ! Alert if very warm ice
  199. ialert_id = 10 ! reference number of this alert
  200. cl_alname(ialert_id) = ' Very warm ice ' ! name of the alert
  201. inb_alp(ialert_id) = 0
  202. DO jl = 1, jpl
  203. DO jk = 1, nlay_i
  204. DO jj = 1, jpj
  205. DO ji = 1, jpi
  206. ztmelts = -tmut * s_i(ji,jj,jk,jl) + rt0
  207. IF( t_i(ji,jj,jk,jl) >= ztmelts .AND. v_i(ji,jj,jl) > 1.e-10 &
  208. & .AND. a_i(ji,jj,jl) > 0._wp ) THEN
  209. !WRITE(numout,*) ' ALERTE 10 : Very warm ice'
  210. !WRITE(numout,*) ' ji, jj, jk, jl : ', ji, jj, jk, jl
  211. !WRITE(numout,*) ' t_i : ', t_i(ji,jj,jk,jl)
  212. !WRITE(numout,*) ' e_i : ', e_i(ji,jj,jk,jl)
  213. !WRITE(numout,*) ' s_i : ', s_i(ji,jj,jk,jl)
  214. !WRITE(numout,*) ' ztmelts : ', ztmelts
  215. inb_alp(ialert_id) = inb_alp(ialert_id) + 1
  216. ENDIF
  217. END DO
  218. END DO
  219. END DO
  220. END DO
  221. ! sum of the alerts on all processors
  222. IF( lk_mpp ) THEN
  223. DO ialert_id = 1, inb_altests
  224. CALL mpp_sum(inb_alp(ialert_id))
  225. END DO
  226. ENDIF
  227. ! print alerts
  228. IF( lwp ) THEN
  229. ialert_id = 1 ! reference number of this alert
  230. cl_alname(ialert_id) = ' NO alerte 1 ' ! name of the alert
  231. WRITE(numout,*) ' time step ',kt
  232. WRITE(numout,*) ' All alerts at the end of ice model '
  233. DO ialert_id = 1, inb_altests
  234. WRITE(numout,*) ialert_id, cl_alname(ialert_id)//' : ', inb_alp(ialert_id), ' times ! '
  235. END DO
  236. ENDIF
  237. !
  238. END SUBROUTINE lim_ctl
  239. SUBROUTINE lim_prt( kt, ki, kj, kn, cd1 )
  240. !!-----------------------------------------------------------------------
  241. !! *** ROUTINE lim_prt ***
  242. !!
  243. !! ** Purpose : Writes global ice state on the (i,j) point
  244. !! in ocean.ouput
  245. !! 3 possibilities exist
  246. !! n = 1/-1 -> simple ice state (plus Mechanical Check if -1)
  247. !! n = 2 -> exhaustive state
  248. !! n = 3 -> ice/ocean salt fluxes
  249. !!
  250. !! ** input : point coordinates (i,j)
  251. !! n : number of the option
  252. !!-------------------------------------------------------------------
  253. INTEGER , INTENT(in) :: kt ! ocean time step
  254. INTEGER , INTENT(in) :: ki, kj, kn ! ocean gridpoint indices
  255. CHARACTER(len=*), INTENT(in) :: cd1 !
  256. !!
  257. INTEGER :: jl, ji, jj
  258. !!-------------------------------------------------------------------
  259. DO ji = mi0(ki), mi1(ki)
  260. DO jj = mj0(kj), mj1(kj)
  261. WRITE(numout,*) ' time step ',kt,' ',cd1 ! print title
  262. !----------------
  263. ! Simple state
  264. !----------------
  265. IF ( kn == 1 .OR. kn == -1 ) THEN
  266. WRITE(numout,*) ' lim_prt - Point : ',ji,jj
  267. WRITE(numout,*) ' ~~~~~~~~~~~~~~ '
  268. WRITE(numout,*) ' Simple state '
  269. WRITE(numout,*) ' masks s,u,v : ', tmask(ji,jj,1), umask(ji,jj,1), vmask(ji,jj,1)
  270. WRITE(numout,*) ' lat - long : ', gphit(ji,jj), glamt(ji,jj)
  271. WRITE(numout,*) ' Time step : ', numit
  272. WRITE(numout,*) ' - Ice drift '
  273. WRITE(numout,*) ' ~~~~~~~~~~~ '
  274. WRITE(numout,*) ' u_ice(i-1,j) : ', u_ice(ji-1,jj)
  275. WRITE(numout,*) ' u_ice(i ,j) : ', u_ice(ji,jj)
  276. WRITE(numout,*) ' v_ice(i ,j-1): ', v_ice(ji,jj-1)
  277. WRITE(numout,*) ' v_ice(i ,j) : ', v_ice(ji,jj)
  278. WRITE(numout,*) ' strength : ', strength(ji,jj)
  279. WRITE(numout,*)
  280. WRITE(numout,*) ' - Cell values '
  281. WRITE(numout,*) ' ~~~~~~~~~~~ '
  282. WRITE(numout,*) ' cell area : ', e12t(ji,jj)
  283. WRITE(numout,*) ' at_i : ', at_i(ji,jj)
  284. WRITE(numout,*) ' vt_i : ', vt_i(ji,jj)
  285. WRITE(numout,*) ' vt_s : ', vt_s(ji,jj)
  286. DO jl = 1, jpl
  287. WRITE(numout,*) ' - Category (', jl,')'
  288. WRITE(numout,*) ' a_i : ', a_i(ji,jj,jl)
  289. WRITE(numout,*) ' ht_i : ', ht_i(ji,jj,jl)
  290. WRITE(numout,*) ' ht_s : ', ht_s(ji,jj,jl)
  291. WRITE(numout,*) ' v_i : ', v_i(ji,jj,jl)
  292. WRITE(numout,*) ' v_s : ', v_s(ji,jj,jl)
  293. WRITE(numout,*) ' e_s : ', e_s(ji,jj,1,jl)
  294. WRITE(numout,*) ' e_i : ', e_i(ji,jj,1:nlay_i,jl)
  295. WRITE(numout,*) ' t_su : ', t_su(ji,jj,jl)
  296. WRITE(numout,*) ' t_snow : ', t_s(ji,jj,1,jl)
  297. WRITE(numout,*) ' t_i : ', t_i(ji,jj,1:nlay_i,jl)
  298. WRITE(numout,*) ' sm_i : ', sm_i(ji,jj,jl)
  299. WRITE(numout,*) ' smv_i : ', smv_i(ji,jj,jl)
  300. WRITE(numout,*)
  301. END DO
  302. ENDIF
  303. IF( kn == -1 ) THEN
  304. WRITE(numout,*) ' Mechanical Check ************** '
  305. WRITE(numout,*) ' Check what means ice divergence '
  306. WRITE(numout,*) ' Total ice concentration ', at_i (ji,jj)
  307. WRITE(numout,*) ' Total lead fraction ', ato_i(ji,jj)
  308. WRITE(numout,*) ' Sum of both ', ato_i(ji,jj) + at_i(ji,jj)
  309. WRITE(numout,*) ' Sum of both minus 1 ', ato_i(ji,jj) + at_i(ji,jj) - 1.00
  310. ENDIF
  311. !--------------------
  312. ! Exhaustive state
  313. !--------------------
  314. IF ( kn .EQ. 2 ) THEN
  315. WRITE(numout,*) ' lim_prt - Point : ',ji,jj
  316. WRITE(numout,*) ' ~~~~~~~~~~~~~~ '
  317. WRITE(numout,*) ' Exhaustive state '
  318. WRITE(numout,*) ' lat - long ', gphit(ji,jj), glamt(ji,jj)
  319. WRITE(numout,*) ' Time step ', numit
  320. WRITE(numout,*)
  321. WRITE(numout,*) ' - Cell values '
  322. WRITE(numout,*) ' ~~~~~~~~~~~ '
  323. WRITE(numout,*) ' cell area : ', e12t(ji,jj)
  324. WRITE(numout,*) ' at_i : ', at_i(ji,jj)
  325. WRITE(numout,*) ' vt_i : ', vt_i(ji,jj)
  326. WRITE(numout,*) ' vt_s : ', vt_s(ji,jj)
  327. WRITE(numout,*) ' u_ice(i-1,j) : ', u_ice(ji-1,jj)
  328. WRITE(numout,*) ' u_ice(i ,j) : ', u_ice(ji,jj)
  329. WRITE(numout,*) ' v_ice(i ,j-1): ', v_ice(ji,jj-1)
  330. WRITE(numout,*) ' v_ice(i ,j) : ', v_ice(ji,jj)
  331. WRITE(numout,*) ' strength : ', strength(ji,jj)
  332. WRITE(numout,*) ' u_ice_b : ', u_ice_b(ji,jj) , ' v_ice_b : ', v_ice_b(ji,jj)
  333. WRITE(numout,*)
  334. DO jl = 1, jpl
  335. WRITE(numout,*) ' - Category (',jl,')'
  336. WRITE(numout,*) ' ~~~~~~~~ '
  337. WRITE(numout,*) ' ht_i : ', ht_i(ji,jj,jl) , ' ht_s : ', ht_s(ji,jj,jl)
  338. WRITE(numout,*) ' t_i : ', t_i(ji,jj,1:nlay_i,jl)
  339. WRITE(numout,*) ' t_su : ', t_su(ji,jj,jl) , ' t_s : ', t_s(ji,jj,1,jl)
  340. WRITE(numout,*) ' sm_i : ', sm_i(ji,jj,jl) , ' o_i : ', o_i(ji,jj,jl)
  341. WRITE(numout,*) ' a_i : ', a_i(ji,jj,jl) , ' a_i_b : ', a_i_b(ji,jj,jl)
  342. WRITE(numout,*) ' v_i : ', v_i(ji,jj,jl) , ' v_i_b : ', v_i_b(ji,jj,jl)
  343. WRITE(numout,*) ' v_s : ', v_s(ji,jj,jl) , ' v_s_b : ', v_s_b(ji,jj,jl)
  344. WRITE(numout,*) ' e_i1 : ', e_i(ji,jj,1,jl) , ' ei1 : ', e_i_b(ji,jj,1,jl)
  345. WRITE(numout,*) ' e_i2 : ', e_i(ji,jj,2,jl) , ' ei2_b : ', e_i_b(ji,jj,2,jl)
  346. WRITE(numout,*) ' e_snow : ', e_s(ji,jj,1,jl) , ' e_snow_b : ', e_s_b(ji,jj,1,jl)
  347. WRITE(numout,*) ' smv_i : ', smv_i(ji,jj,jl) , ' smv_i_b : ', smv_i_b(ji,jj,jl)
  348. WRITE(numout,*) ' oa_i : ', oa_i(ji,jj,jl) , ' oa_i_b : ', oa_i_b(ji,jj,jl)
  349. END DO !jl
  350. WRITE(numout,*)
  351. WRITE(numout,*) ' - Heat / FW fluxes '
  352. WRITE(numout,*) ' ~~~~~~~~~~~~~~~~ '
  353. WRITE(numout,*) ' - Heat fluxes in and out the ice ***'
  354. WRITE(numout,*) ' qsr_ini : ', pfrld(ji,jj) * qsr(ji,jj) + SUM( a_i_b(ji,jj,:) * qsr_ice(ji,jj,:) )
  355. WRITE(numout,*) ' qns_ini : ', pfrld(ji,jj) * qns(ji,jj) + SUM( a_i_b(ji,jj,:) * qns_ice(ji,jj,:) )
  356. WRITE(numout,*)
  357. WRITE(numout,*)
  358. WRITE(numout,*) ' sst : ', sst_m(ji,jj)
  359. WRITE(numout,*) ' sss : ', sss_m(ji,jj)
  360. WRITE(numout,*)
  361. WRITE(numout,*) ' - Stresses '
  362. WRITE(numout,*) ' ~~~~~~~~ '
  363. WRITE(numout,*) ' utau_ice : ', utau_ice(ji,jj)
  364. WRITE(numout,*) ' vtau_ice : ', vtau_ice(ji,jj)
  365. WRITE(numout,*) ' utau : ', utau (ji,jj)
  366. WRITE(numout,*) ' vtau : ', vtau (ji,jj)
  367. WRITE(numout,*) ' oc. vel. u : ', u_oce (ji,jj)
  368. WRITE(numout,*) ' oc. vel. v : ', v_oce (ji,jj)
  369. ENDIF
  370. !---------------------
  371. ! Salt / heat fluxes
  372. !---------------------
  373. IF ( kn .EQ. 3 ) THEN
  374. WRITE(numout,*) ' lim_prt - Point : ',ji,jj
  375. WRITE(numout,*) ' ~~~~~~~~~~~~~~ '
  376. WRITE(numout,*) ' - Salt / Heat Fluxes '
  377. WRITE(numout,*) ' ~~~~~~~~~~~~~~~~ '
  378. WRITE(numout,*) ' lat - long ', gphit(ji,jj), glamt(ji,jj)
  379. WRITE(numout,*) ' Time step ', numit
  380. WRITE(numout,*)
  381. WRITE(numout,*) ' - Heat fluxes at bottom interface ***'
  382. WRITE(numout,*) ' qsr : ', qsr(ji,jj)
  383. WRITE(numout,*) ' qns : ', qns(ji,jj)
  384. WRITE(numout,*)
  385. WRITE(numout,*) ' hfx_mass : ', hfx_thd(ji,jj) + hfx_dyn(ji,jj) + hfx_snw(ji,jj) + hfx_res(ji,jj)
  386. WRITE(numout,*) ' hfx_in : ', hfx_in(ji,jj)
  387. WRITE(numout,*) ' hfx_out : ', hfx_out(ji,jj)
  388. WRITE(numout,*) ' dhc : ', diag_heat(ji,jj)
  389. WRITE(numout,*)
  390. WRITE(numout,*) ' hfx_dyn : ', hfx_dyn(ji,jj)
  391. WRITE(numout,*) ' hfx_thd : ', hfx_thd(ji,jj)
  392. WRITE(numout,*) ' hfx_res : ', hfx_res(ji,jj)
  393. WRITE(numout,*) ' fhtur : ', fhtur(ji,jj)
  394. WRITE(numout,*) ' qlead : ', qlead(ji,jj) * r1_rdtice
  395. WRITE(numout,*)
  396. WRITE(numout,*) ' - Salt fluxes at bottom interface ***'
  397. WRITE(numout,*) ' emp : ', emp (ji,jj)
  398. WRITE(numout,*) ' sfx : ', sfx (ji,jj)
  399. WRITE(numout,*) ' sfx_res : ', sfx_res(ji,jj)
  400. WRITE(numout,*) ' sfx_bri : ', sfx_bri(ji,jj)
  401. WRITE(numout,*) ' sfx_dyn : ', sfx_dyn(ji,jj)
  402. WRITE(numout,*)
  403. WRITE(numout,*) ' - Momentum fluxes '
  404. WRITE(numout,*) ' utau : ', utau(ji,jj)
  405. WRITE(numout,*) ' vtau : ', vtau(ji,jj)
  406. ENDIF
  407. WRITE(numout,*) ' '
  408. !
  409. END DO
  410. END DO
  411. !
  412. END SUBROUTINE lim_prt
  413. #else
  414. !!--------------------------------------------------------------------------
  415. !! Default option Empty Module No LIM3 sea-ice model
  416. !!--------------------------------------------------------------------------
  417. CONTAINS
  418. SUBROUTINE lim_ctl ! Empty routine
  419. END SUBROUTINE lim_ctl
  420. SUBROUTINE lim_prt ! Empty routine
  421. END SUBROUTINE lim_prt
  422. #endif
  423. !!======================================================================
  424. END MODULE limctl