p4zflx.F90 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. MODULE p4zflx
  2. !!======================================================================
  3. !! *** MODULE p4zflx ***
  4. !! TOP : PISCES CALCULATES GAS EXCHANGE AND CHEMISTRY AT SEA SURFACE
  5. !!======================================================================
  6. !! History : - ! 1988-07 (E. MAIER-REIMER) Original code
  7. !! - ! 1998 (O. Aumont) additions
  8. !! - ! 1999 (C. Le Quere) modifications
  9. !! 1.0 ! 2004 (O. Aumont) modifications
  10. !! 2.0 ! 2007-12 (C. Ethe, G. Madec) F90
  11. !! ! 2011-02 (J. Simeon, J. Orr) Include total atm P correction
  12. !!----------------------------------------------------------------------
  13. #if defined key_pisces
  14. !!----------------------------------------------------------------------
  15. !! 'key_pisces' PISCES bio-model
  16. !!----------------------------------------------------------------------
  17. !! p4z_flx : CALCULATES GAS EXCHANGE AND CHEMISTRY AT SEA SURFACE
  18. !! p4z_flx_init : Read the namelist
  19. !! p4z_patm : Read sfc atm pressure [atm] for each grid cell
  20. !!----------------------------------------------------------------------
  21. USE oce_trc ! shared variables between ocean and passive tracers
  22. USE trc ! passive tracers common variables
  23. USE sms_pisces ! PISCES Source Minus Sink variables
  24. USE p4zche ! Chemical model
  25. USE prtctl_trc ! print control for debugging
  26. USE iom ! I/O manager
  27. USE fldread ! read input fields
  28. #if defined key_cpl_carbon_cycle
  29. USE sbc_oce, ONLY : atm_co2 ! atmospheric pCO2
  30. #endif
  31. IMPLICIT NONE
  32. PRIVATE
  33. PUBLIC p4z_flx
  34. PUBLIC p4z_flx_init
  35. PUBLIC p4z_flx_alloc
  36. ! !!** Namelist nampisext **
  37. REAL(wp) :: atcco2 !: pre-industrial atmospheric [co2] (ppm)
  38. LOGICAL :: ln_co2int !: flag to read in a file and interpolate atmospheric pco2 or not
  39. CHARACTER(len=34) :: clname !: filename of pco2 values
  40. INTEGER :: nn_offset !: Offset model-data start year (default = 0)
  41. !! Variables related to reading atmospheric CO2 time history
  42. REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:) :: atcco2h, years
  43. INTEGER :: nmaxrec, numco2
  44. ! !!* nampisatm namelist (Atmospheric PRessure) *
  45. LOGICAL, PUBLIC :: ln_presatm !: ref. pressure: global mean Patm (F) or a constant (F)
  46. REAL(wp) , ALLOCATABLE, SAVE, DIMENSION(:,:) :: patm ! atmospheric pressure at kt [N/m2]
  47. TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_patm ! structure of input fields (file informations, fields read)
  48. REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: oce_co2 !: ocean carbon flux
  49. REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: satmco2 !: atmospheric pco2
  50. REAL(wp) :: xconv = 0.01_wp / 3600._wp !: coefficients for conversion
  51. !!* Substitution
  52. # include "top_substitute.h90"
  53. !!----------------------------------------------------------------------
  54. !! NEMO/TOP 3.3 , NEMO Consortium (2010)
  55. !! $Id: p4zflx.F90 7607 2017-01-25 15:37:31Z cetlod $
  56. !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
  57. !!----------------------------------------------------------------------
  58. CONTAINS
  59. SUBROUTINE p4z_flx ( kt, knt )
  60. !!---------------------------------------------------------------------
  61. !! *** ROUTINE p4z_flx ***
  62. !!
  63. !! ** Purpose : CALCULATES GAS EXCHANGE AND CHEMISTRY AT SEA SURFACE
  64. !!
  65. !! ** Method :
  66. !! - Include total atm P correction via Esbensen & Kushnir (1981)
  67. !! - Pressure correction NOT done for key_cpl_carbon_cycle
  68. !! - Remove Wanninkhof chemical enhancement;
  69. !! - Add option for time-interpolation of atcco2.txt
  70. !!---------------------------------------------------------------------
  71. !
  72. INTEGER, INTENT(in) :: kt, knt !
  73. !
  74. INTEGER :: ji, jj, jm, iind, iindm1
  75. REAL(wp) :: ztc, ztc2, ztc3, ztc4, zws, zkgwan
  76. REAL(wp) :: zfld, zflu, zfld16, zflu16, zfact
  77. REAL(wp) :: zvapsw, zsal, zfco2, zxc2, xCO2approx, ztkel, zfugcoeff
  78. REAL(wp) :: zph, zdic, zsch_o2, zsch_co2
  79. REAL(wp) :: zyr_dec, zdco2dt
  80. CHARACTER (len=25) :: charout
  81. REAL(wp), POINTER, DIMENSION(:,:) :: zkgco2, zkgo2, zh2co3, zoflx, zw2d, zpco2atm
  82. !!---------------------------------------------------------------------
  83. !
  84. IF( nn_timing == 1 ) CALL timing_start('p4z_flx')
  85. !
  86. CALL wrk_alloc( jpi, jpj, zkgco2, zkgo2, zh2co3, zoflx, zpco2atm )
  87. !
  88. ! SURFACE CHEMISTRY (PCO2 AND [H+] IN
  89. ! SURFACE LAYER); THE RESULT OF THIS CALCULATION
  90. ! IS USED TO COMPUTE AIR-SEA FLUX OF CO2
  91. IF( kt /= nit000 .AND. knt == 1 ) CALL p4z_patm( kt ) ! Get sea-level pressure (E&K [1981] climatology) for use in flux calcs
  92. IF( ln_co2int ) THEN
  93. ! Linear temporal interpolation of atmospheric pco2. atcco2.txt has annual values.
  94. ! Caveats: First column of .txt must be in years, decimal years preferably.
  95. ! For nn_offset, if your model year is iyy, nn_offset=(years(1)-iyy)
  96. ! then the first atmospheric CO2 record read is at years(1)
  97. zyr_dec = REAL( nyear + nn_offset, wp ) + REAL( nday_year, wp ) / REAL( nyear_len(1), wp )
  98. jm = 1
  99. DO WHILE( jm <= nmaxrec .AND. years(jm) < zyr_dec ) ; jm = jm + 1 ; END DO
  100. iind = jm ; iindm1 = jm - 1
  101. zdco2dt = ( atcco2h(iind) - atcco2h(iindm1) ) / ( years(iind) - years(iindm1) + rtrn )
  102. atcco2 = zdco2dt * ( zyr_dec - years(iindm1) ) + atcco2h(iindm1)
  103. satmco2(:,:) = atcco2
  104. IF(lwp) WRITE(numout,*) 'atcco2=', atcco2 , 'at year=', zyr_dec , 'index jm in atcco2 file=', jm
  105. ENDIF
  106. #if defined key_cpl_carbon_cycle
  107. satmco2(:,:) = atm_co2(:,:)
  108. #endif
  109. DO jj = 1, jpj
  110. DO ji = 1, jpi
  111. ! DUMMY VARIABLES FOR DIC, H+, AND BORATE
  112. zfact = rhop(ji,jj,1) / 1000. + rtrn
  113. zdic = trb(ji,jj,1,jpdic)
  114. zph = MAX( hi(ji,jj,1), 1.e-10 ) / zfact
  115. ! CALCULATE [H2CO3]
  116. zh2co3(ji,jj) = zdic/(1. + ak13(ji,jj,1)/zph + ak13(ji,jj,1)*ak23(ji,jj,1)/zph**2)
  117. END DO
  118. END DO
  119. ! --------------
  120. ! COMPUTE FLUXES
  121. ! --------------
  122. ! FIRST COMPUTE GAS EXCHANGE COEFFICIENTS
  123. ! -------------------------------------------
  124. !CDIR NOVERRCHK
  125. DO jj = 1, jpj
  126. !CDIR NOVERRCHK
  127. DO ji = 1, jpi
  128. ztc = MIN( 35., tsn(ji,jj,1,jp_tem) )
  129. ztc2 = ztc * ztc
  130. ztc3 = ztc * ztc2
  131. ztc4 = ztc2 * ztc2
  132. ! Compute the schmidt Number both O2 and CO2
  133. zsch_co2 = 2116.8 - 136.25 * ztc + 4.7353 * ztc2 - 0.092307 * ztc3 + 0.0007555 * ztc4
  134. zsch_o2 = 1920.4 - 135.6 * ztc + 5.2122 * ztc2 - 0.109390 * ztc3 + 0.0009377 * ztc4
  135. ! wind speed
  136. zws = wndm(ji,jj) * wndm(ji,jj)
  137. ! Compute the piston velocity for O2 and CO2
  138. zkgwan = 0.251 * zws
  139. zkgwan = zkgwan * xconv * ( 1.- fr_i(ji,jj) ) * tmask(ji,jj,1)
  140. # if defined key_degrad
  141. zkgwan = zkgwan * facvol(ji,jj,1)
  142. #endif
  143. ! compute gas exchange for CO2 and O2
  144. zkgco2(ji,jj) = zkgwan * SQRT( 660./ zsch_co2 )
  145. zkgo2 (ji,jj) = zkgwan * SQRT( 660./ zsch_o2 )
  146. END DO
  147. END DO
  148. DO jj = 1, jpj
  149. DO ji = 1, jpi
  150. ztkel = tsn(ji,jj,1,jp_tem) + 273.15
  151. zsal = tsn(ji,jj,1,jp_sal) + ( 1.- tmask(ji,jj,1) ) * 35.
  152. zvapsw = EXP(24.4543 - 67.4509*(100.0/ztkel) - 4.8489*LOG(ztkel/100) - 0.000544*zsal)
  153. zpco2atm(ji,jj) = satmco2(ji,jj) * ( patm(ji,jj) - zvapsw )
  154. zxc2 = (1.0 - zpco2atm(ji,jj) * 1E-6 )**2
  155. zfugcoeff = EXP(patm(ji,jj) * (chemc(ji,jj,2) + 2.0 * zxc2 * chemc(ji,jj,3) ) &
  156. & / (82.05736 * ztkel))
  157. zfco2 = zpco2atm(ji,jj) * zfugcoeff
  158. ! Compute CO2 flux for the sea and air
  159. zfld = zfco2 * chemc(ji,jj,1) * zkgco2(ji,jj) ! (mol/L) * (m/s)
  160. zflu = zh2co3(ji,jj) * zkgco2(ji,jj) ! (mol/L) (m/s) ?
  161. oce_co2(ji,jj) = ( zfld - zflu ) * rfact2 * e1e2t(ji,jj) * tmask(ji,jj,1) * 1000.
  162. ! compute the trend
  163. tra(ji,jj,1,jpdic) = tra(ji,jj,1,jpdic) + ( zfld - zflu ) * rfact2 / fse3t(ji,jj,1) * tmask(ji,jj,1)
  164. ! Compute O2 flux
  165. zfld16 = patm(ji,jj) * chemo2(ji,jj,1) * zkgo2(ji,jj) ! (mol/L) * (m/s)
  166. zflu16 = trb(ji,jj,1,jpoxy) * zkgo2(ji,jj)
  167. zoflx(ji,jj) = ( zfld16 - zflu16 ) * tmask(ji,jj,1)
  168. tra(ji,jj,1,jpoxy) = tra(ji,jj,1,jpoxy) + zoflx(ji,jj) * rfact2 / fse3t(ji,jj,1)
  169. END DO
  170. END DO
  171. t_oce_co2_flx = glob_sum( oce_co2(:,:) ) ! Total Flux of Carbon
  172. t_oce_co2_flx_cum = t_oce_co2_flx_cum + t_oce_co2_flx ! Cumulative Total Flux of Carbon
  173. ! t_atm_co2_flx = glob_sum( satmco2(:,:) * e1e2t(:,:) ) ! Total atmospheric pCO2
  174. t_atm_co2_flx = atcco2 ! Total atmospheric pCO2
  175. IF(ln_ctl) THEN ! print mean trends (used for debugging)
  176. WRITE(charout, FMT="('flx ')")
  177. CALL prt_ctl_trc_info(charout)
  178. CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm)
  179. ENDIF
  180. IF( lk_iomput .AND. knt == nrdttrc ) THEN
  181. CALL wrk_alloc( jpi, jpj, zw2d )
  182. IF( iom_use( "Cflx" ) ) THEN
  183. zw2d(:,:) = oce_co2(:,:) / e1e2t(:,:) * rfact2r
  184. CALL iom_put( "Cflx" , zw2d )
  185. ENDIF
  186. IF( iom_use( "Oflx" ) ) THEN
  187. zw2d(:,:) = zoflx(:,:) * 1000 * tmask(:,:,1)
  188. CALL iom_put( "Oflx" , zw2d )
  189. ENDIF
  190. IF( iom_use( "Kg" ) ) THEN
  191. zw2d(:,:) = zkgco2(:,:) * tmask(:,:,1)
  192. CALL iom_put( "Kg" , zw2d )
  193. ENDIF
  194. IF( iom_use( "Dpco2" ) ) THEN
  195. zw2d(:,:) = ( zpco2atm(:,:) - zh2co3(:,:) / ( chemc(:,:,1) + rtrn ) ) * tmask(:,:,1)
  196. CALL iom_put( "Dpco2" , zw2d )
  197. ENDIF
  198. IF( iom_use( "pCO2sea" ) ) THEN
  199. zw2d(:,:) = ( zh2co3(:,:) / ( chemc(:,:,1) + rtrn ) ) * tmask(:,:,1)
  200. CALL iom_put( "pCO2sea" , zw2d )
  201. ENDIF
  202. IF( iom_use( "Dpo2" ) ) THEN
  203. zw2d(:,:) = ( atcox * patm(:,:) - atcox * trn(:,:,1,jpoxy) / ( chemo2(:,:,1) + rtrn ) ) * tmask(:,:,1)
  204. CALL iom_put( "Dpo2" , zw2d )
  205. ENDIF
  206. IF( iom_use( "tcflx" ) ) CALL iom_put( "tcflx" , t_oce_co2_flx * rfact2r ) ! molC/s
  207. CALL iom_put( "tcflxcum" , t_oce_co2_flx_cum ) ! molC
  208. !
  209. CALL wrk_dealloc( jpi, jpj, zw2d )
  210. ELSE
  211. IF( ln_diatrc ) THEN
  212. trc2d(:,:,jp_pcs0_2d ) = oce_co2(:,:) / e1e2t(:,:) * rfact2r
  213. trc2d(:,:,jp_pcs0_2d + 1) = zoflx(:,:) * 1000 * tmask(:,:,1)
  214. trc2d(:,:,jp_pcs0_2d + 2) = zkgco2(:,:) * tmask(:,:,1)
  215. trc2d(:,:,jp_pcs0_2d + 3) = ( zpco2atm(:,:) - zh2co3(:,:) / ( chemc(:,:,1) + rtrn ) ) * tmask(:,:,1)
  216. ENDIF
  217. ENDIF
  218. !
  219. #if defined key_cpl_carbon_cycle
  220. ! change units for carbon cycle coupling
  221. oce_co2(:,:) = oce_co2(:,:) / e1e2t(:,:) * rfact2r ! in molC/m2/s
  222. #endif
  223. !
  224. CALL wrk_dealloc( jpi, jpj, zkgco2, zkgo2, zh2co3, zoflx, zpco2atm )
  225. !
  226. IF( nn_timing == 1 ) CALL timing_stop('p4z_flx')
  227. !
  228. END SUBROUTINE p4z_flx
  229. SUBROUTINE p4z_flx_init
  230. !!----------------------------------------------------------------------
  231. !! *** ROUTINE p4z_flx_init ***
  232. !!
  233. !! ** Purpose : Initialization of atmospheric conditions
  234. !!
  235. !! ** Method : Read the nampisext namelist and check the parameters
  236. !! called at the first timestep (nittrc000)
  237. !! ** input : Namelist nampisext
  238. !!----------------------------------------------------------------------
  239. NAMELIST/nampisext/ln_co2int, atcco2, clname, nn_offset
  240. INTEGER :: jm
  241. INTEGER :: ios ! Local integer output status for namelist read
  242. !!----------------------------------------------------------------------
  243. !
  244. REWIND( numnatp_ref ) ! Namelist nampisext in reference namelist : Pisces atm. conditions
  245. READ ( numnatp_ref, nampisext, IOSTAT = ios, ERR = 901)
  246. 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisext in reference namelist', lwp )
  247. REWIND( numnatp_cfg ) ! Namelist nampisext in configuration namelist : Pisces atm. conditions
  248. READ ( numnatp_cfg, nampisext, IOSTAT = ios, ERR = 902 )
  249. 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisext in configuration namelist', lwp )
  250. IF(lwm) WRITE ( numonp, nampisext )
  251. !
  252. IF(lwp) THEN ! control print
  253. WRITE(numout,*) ' '
  254. WRITE(numout,*) ' Namelist parameters for air-sea exchange, nampisext'
  255. WRITE(numout,*) ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
  256. WRITE(numout,*) ' Choice for reading in the atm pCO2 file or constant value, ln_co2int =', ln_co2int
  257. WRITE(numout,*) ' '
  258. ENDIF
  259. IF( .NOT.ln_co2int ) THEN
  260. IF(lwp) THEN ! control print
  261. WRITE(numout,*) ' Constant Atmospheric pCO2 value atcco2 =', atcco2
  262. WRITE(numout,*) ' '
  263. ENDIF
  264. satmco2(:,:) = atcco2 ! Initialisation of atmospheric pco2
  265. ELSE
  266. IF(lwp) THEN
  267. WRITE(numout,*) ' Atmospheric pCO2 value from file clname =', TRIM( clname )
  268. WRITE(numout,*) ' Offset model-data start year nn_offset =', nn_offset
  269. WRITE(numout,*) ' '
  270. ENDIF
  271. CALL ctl_opn( numco2, TRIM( clname) , 'OLD', 'FORMATTED', 'SEQUENTIAL', -1 , numout, lwp )
  272. jm = 0 ! Count the number of record in co2 file
  273. DO
  274. READ(numco2,*,END=100)
  275. jm = jm + 1
  276. END DO
  277. ! 100 nmaxrec = jm - 1
  278. 100 nmaxrec = jm
  279. ALLOCATE( years (nmaxrec) ) ; years (:) = 0._wp
  280. ALLOCATE( atcco2h(nmaxrec) ) ; atcco2h(:) = 0._wp
  281. REWIND(numco2)
  282. DO jm = 1, nmaxrec ! get xCO2 data
  283. READ(numco2, *) years(jm), atcco2h(jm)
  284. IF(lwp) WRITE(numout, '(f7.2,f7.2)') years(jm), atcco2h(jm)
  285. END DO
  286. CLOSE(numco2)
  287. ENDIF
  288. !
  289. oce_co2(:,:) = 0._wp ! Initialization of Flux of Carbon
  290. t_oce_co2_flx = 0._wp
  291. t_atm_co2_flx = 0._wp
  292. !
  293. CALL p4z_patm( nit000 )
  294. !
  295. END SUBROUTINE p4z_flx_init
  296. SUBROUTINE p4z_patm( kt )
  297. !!----------------------------------------------------------------------
  298. !! *** ROUTINE p4z_atm ***
  299. !!
  300. !! ** Purpose : Read and interpolate the external atmospheric sea-levl pressure
  301. !! ** Method : Read the files and interpolate the appropriate variables
  302. !!
  303. !!----------------------------------------------------------------------
  304. !! * arguments
  305. INTEGER, INTENT( in ) :: kt ! ocean time step
  306. !
  307. INTEGER :: ierr
  308. INTEGER :: ios ! Local integer output status for namelist read
  309. CHARACTER(len=100) :: cn_dir ! Root directory for location of ssr files
  310. TYPE(FLD_N) :: sn_patm ! informations about the fields to be read
  311. !!
  312. NAMELIST/nampisatm/ ln_presatm, sn_patm, cn_dir
  313. ! ! ----------------------- !
  314. IF( kt == nit000 ) THEN ! First call kt=nittrc000 !
  315. REWIND( numnatp_ref ) ! Namelist nampisatm in reference namelist : Pisces atm. sea level pressure file
  316. READ ( numnatp_ref, nampisatm, IOSTAT = ios, ERR = 901)
  317. 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisatm in reference namelist', lwp )
  318. REWIND( numnatp_cfg ) ! Namelist nampisatm in configuration namelist : Pisces atm. sea level pressure file
  319. READ ( numnatp_cfg, nampisatm, IOSTAT = ios, ERR = 902 )
  320. 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisatm in configuration namelist', lwp )
  321. IF(lwm) WRITE ( numonp, nampisatm )
  322. !
  323. !
  324. IF(lwp) THEN !* control print
  325. WRITE(numout,*)
  326. WRITE(numout,*) ' Namelist nampisatm : Atmospheric Pressure as external forcing'
  327. WRITE(numout,*) ' constant atmopsheric pressure (F) or from a file (T) ln_presatm = ', ln_presatm
  328. WRITE(numout,*)
  329. ENDIF
  330. !
  331. IF( ln_presatm ) THEN
  332. ALLOCATE( sf_patm(1), STAT=ierr ) !* allocate and fill sf_patm (forcing structure) with sn_patm
  333. IF( ierr > 0 ) CALL ctl_stop( 'STOP', 'p4z_flx: unable to allocate sf_patm structure' )
  334. !
  335. CALL fld_fill( sf_patm, (/ sn_patm /), cn_dir, 'p4z_flx', 'Atmospheric pressure ', 'nampisatm' )
  336. ALLOCATE( sf_patm(1)%fnow(jpi,jpj,1) )
  337. IF( sn_patm%ln_tint ) ALLOCATE( sf_patm(1)%fdta(jpi,jpj,1,2) )
  338. ENDIF
  339. !
  340. IF( .NOT.ln_presatm ) patm(:,:) = 1.e0 ! Initialize patm if no reading from a file
  341. !
  342. ENDIF
  343. !
  344. IF( ln_presatm ) THEN
  345. CALL fld_read( kt, 1, sf_patm ) !* input Patm provided at kt + 1/2
  346. patm(:,:) = sf_patm(1)%fnow(:,:,1) ! atmospheric pressure
  347. ENDIF
  348. !
  349. END SUBROUTINE p4z_patm
  350. INTEGER FUNCTION p4z_flx_alloc()
  351. !!----------------------------------------------------------------------
  352. !! *** ROUTINE p4z_flx_alloc ***
  353. !!----------------------------------------------------------------------
  354. ALLOCATE( oce_co2(jpi,jpj), satmco2(jpi,jpj), patm(jpi,jpj), STAT=p4z_flx_alloc )
  355. !
  356. IF( p4z_flx_alloc /= 0 ) CALL ctl_warn('p4z_flx_alloc : failed to allocate arrays')
  357. !
  358. END FUNCTION p4z_flx_alloc
  359. #else
  360. !!======================================================================
  361. !! Dummy module : No PISCES bio-model
  362. !!======================================================================
  363. CONTAINS
  364. SUBROUTINE p4z_flx( kt ) ! Empty routine
  365. INTEGER, INTENT( in ) :: kt
  366. WRITE(*,*) 'p4z_flx: You should not have seen this print! error?', kt
  367. END SUBROUTINE p4z_flx
  368. #endif
  369. !!======================================================================
  370. END MODULE p4zflx