p4zflx.F90 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  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. ENDIF
  105. #if defined key_cpl_carbon_cycle
  106. satmco2(:,:) = atm_co2(:,:)
  107. #endif
  108. DO jj = 1, jpj
  109. DO ji = 1, jpi
  110. ! DUMMY VARIABLES FOR DIC, H+, AND BORATE
  111. zfact = rhop(ji,jj,1) / 1000. + rtrn
  112. zdic = trb(ji,jj,1,jpdic)
  113. zph = MAX( hi(ji,jj,1), 1.e-10 ) / zfact
  114. ! CALCULATE [H2CO3]
  115. zh2co3(ji,jj) = zdic/(1. + ak13(ji,jj,1)/zph + ak13(ji,jj,1)*ak23(ji,jj,1)/zph**2)
  116. END DO
  117. END DO
  118. ! --------------
  119. ! COMPUTE FLUXES
  120. ! --------------
  121. ! FIRST COMPUTE GAS EXCHANGE COEFFICIENTS
  122. ! -------------------------------------------
  123. !CDIR NOVERRCHK
  124. DO jj = 1, jpj
  125. !CDIR NOVERRCHK
  126. DO ji = 1, jpi
  127. ztc = MIN( 35., tsn(ji,jj,1,jp_tem) )
  128. ztc2 = ztc * ztc
  129. ztc3 = ztc * ztc2
  130. ztc4 = ztc2 * ztc2
  131. ! Compute the schmidt Number both O2 and CO2
  132. zsch_co2 = 2116.8 - 136.25 * ztc + 4.7353 * ztc2 - 0.092307 * ztc3 + 0.0007555 * ztc4
  133. zsch_o2 = 1920.4 - 135.6 * ztc + 5.2122 * ztc2 - 0.109390 * ztc3 + 0.0009377 * ztc4
  134. ! wind speed
  135. zws = wndm(ji,jj) * wndm(ji,jj)
  136. ! Compute the piston velocity for O2 and CO2
  137. zkgwan = 0.251 * zws
  138. zkgwan = zkgwan * xconv * ( 1.- fr_i(ji,jj) ) * tmask(ji,jj,1)
  139. # if defined key_degrad
  140. zkgwan = zkgwan * facvol(ji,jj,1)
  141. #endif
  142. ! compute gas exchange for CO2 and O2
  143. zkgco2(ji,jj) = zkgwan * SQRT( 660./ zsch_co2 )
  144. zkgo2 (ji,jj) = zkgwan * SQRT( 660./ zsch_o2 )
  145. END DO
  146. END DO
  147. DO jj = 1, jpj
  148. DO ji = 1, jpi
  149. ztkel = tsn(ji,jj,1,jp_tem) + 273.15
  150. zsal = tsn(ji,jj,1,jp_sal) + ( 1.- tmask(ji,jj,1) ) * 35.
  151. zvapsw = EXP(24.4543 - 67.4509*(100.0/ztkel) - 4.8489*LOG(ztkel/100) - 0.000544*zsal)
  152. zpco2atm(ji,jj) = satmco2(ji,jj) * ( patm(ji,jj) - zvapsw )
  153. zxc2 = (1.0 - zpco2atm(ji,jj) * 1E-6 )**2
  154. zfugcoeff = EXP(patm(ji,jj) * (chemc(ji,jj,2) + 2.0 * zxc2 * chemc(ji,jj,3) ) &
  155. & / (82.05736 * ztkel))
  156. zfco2 = zpco2atm(ji,jj) * zfugcoeff
  157. ! Compute CO2 flux for the sea and air
  158. zfld = zfco2 * chemc(ji,jj,1) * zkgco2(ji,jj) ! (mol/L) * (m/s)
  159. zflu = zh2co3(ji,jj) * zkgco2(ji,jj) ! (mol/L) (m/s) ?
  160. oce_co2(ji,jj) = ( zfld - zflu ) * rfact2 * e1e2t(ji,jj) * tmask(ji,jj,1) * 1000.
  161. ! compute the trend
  162. tra(ji,jj,1,jpdic) = tra(ji,jj,1,jpdic) + ( zfld - zflu ) * rfact2 / fse3t(ji,jj,1) * tmask(ji,jj,1)
  163. ! Compute O2 flux
  164. zfld16 = patm(ji,jj) * chemo2(ji,jj,1) * zkgo2(ji,jj) ! (mol/L) * (m/s)
  165. zflu16 = trb(ji,jj,1,jpoxy) * zkgo2(ji,jj)
  166. zoflx(ji,jj) = ( zfld16 - zflu16 ) * tmask(ji,jj,1)
  167. tra(ji,jj,1,jpoxy) = tra(ji,jj,1,jpoxy) + zoflx(ji,jj) * rfact2 / fse3t(ji,jj,1)
  168. END DO
  169. END DO
  170. t_oce_co2_flx = glob_sum( oce_co2(:,:) ) ! Total Flux of Carbon
  171. t_oce_co2_flx_cum = t_oce_co2_flx_cum + t_oce_co2_flx ! Cumulative Total Flux of Carbon
  172. ! t_atm_co2_flx = glob_sum( satmco2(:,:) * e1e2t(:,:) ) ! Total atmospheric pCO2
  173. t_atm_co2_flx = atcco2 ! Total atmospheric pCO2
  174. IF(ln_ctl) THEN ! print mean trends (used for debugging)
  175. WRITE(charout, FMT="('flx ')")
  176. CALL prt_ctl_trc_info(charout)
  177. CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm)
  178. ENDIF
  179. IF( lk_iomput .AND. knt == nrdttrc ) THEN
  180. CALL wrk_alloc( jpi, jpj, zw2d )
  181. IF( iom_use( "Cflx" ) ) THEN
  182. zw2d(:,:) = oce_co2(:,:) / e1e2t(:,:) * rfact2r
  183. CALL iom_put( "Cflx" , zw2d )
  184. ENDIF
  185. IF( iom_use( "Oflx" ) ) THEN
  186. zw2d(:,:) = zoflx(:,:) * 1000 * tmask(:,:,1)
  187. CALL iom_put( "Oflx" , zw2d )
  188. ENDIF
  189. IF( iom_use( "Kg" ) ) THEN
  190. zw2d(:,:) = zkgco2(:,:) * tmask(:,:,1)
  191. CALL iom_put( "Kg" , zw2d )
  192. ENDIF
  193. IF( iom_use( "Dpco2" ) ) THEN
  194. zw2d(:,:) = ( zpco2atm(:,:) - zh2co3(:,:) / ( chemc(:,:,1) + rtrn ) ) * tmask(:,:,1)
  195. CALL iom_put( "Dpco2" , zw2d )
  196. ENDIF
  197. IF( iom_use( "pCO2sea" ) ) THEN
  198. zw2d(:,:) = ( zh2co3(:,:) / ( chemc(:,:,1) + rtrn ) ) * tmask(:,:,1)
  199. CALL iom_put( "pCO2sea" , zw2d )
  200. ENDIF
  201. IF( iom_use( "Dpo2" ) ) THEN
  202. zw2d(:,:) = ( atcox * patm(:,:) - atcox * trn(:,:,1,jpoxy) / ( chemo2(:,:,1) + rtrn ) ) * tmask(:,:,1)
  203. CALL iom_put( "Dpo2" , zw2d )
  204. ENDIF
  205. IF( iom_use( "tcflx" ) ) CALL iom_put( "tcflx" , t_oce_co2_flx * rfact2r ) ! molC/s
  206. CALL iom_put( "tcflxcum" , t_oce_co2_flx_cum ) ! molC
  207. !
  208. CALL wrk_dealloc( jpi, jpj, zw2d )
  209. ELSE
  210. IF( ln_diatrc ) THEN
  211. trc2d(:,:,jp_pcs0_2d ) = oce_co2(:,:) / e1e2t(:,:) * rfact2r
  212. trc2d(:,:,jp_pcs0_2d + 1) = zoflx(:,:) * 1000 * tmask(:,:,1)
  213. trc2d(:,:,jp_pcs0_2d + 2) = zkgco2(:,:) * tmask(:,:,1)
  214. trc2d(:,:,jp_pcs0_2d + 3) = ( zpco2atm(:,:) - zh2co3(:,:) / ( chemc(:,:,1) + rtrn ) ) * tmask(:,:,1)
  215. ENDIF
  216. ENDIF
  217. !
  218. #if defined key_cpl_carbon_cycle
  219. ! change units for carbon cycle coupling
  220. oce_co2(:,:) = oce_co2(:,:) / e1e2t(:,:) * rfact2r ! in molC/m2/s
  221. #endif
  222. !
  223. CALL wrk_dealloc( jpi, jpj, zkgco2, zkgo2, zh2co3, zoflx, zpco2atm )
  224. !
  225. IF( nn_timing == 1 ) CALL timing_stop('p4z_flx')
  226. !
  227. END SUBROUTINE p4z_flx
  228. SUBROUTINE p4z_flx_init
  229. !!----------------------------------------------------------------------
  230. !! *** ROUTINE p4z_flx_init ***
  231. !!
  232. !! ** Purpose : Initialization of atmospheric conditions
  233. !!
  234. !! ** Method : Read the nampisext namelist and check the parameters
  235. !! called at the first timestep (nittrc000)
  236. !! ** input : Namelist nampisext
  237. !!----------------------------------------------------------------------
  238. NAMELIST/nampisext/ln_co2int, atcco2, clname, nn_offset
  239. INTEGER :: jm
  240. INTEGER :: ios ! Local integer output status for namelist read
  241. !!----------------------------------------------------------------------
  242. !
  243. REWIND( numnatp_ref ) ! Namelist nampisext in reference namelist : Pisces atm. conditions
  244. READ ( numnatp_ref, nampisext, IOSTAT = ios, ERR = 901)
  245. 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisext in reference namelist', lwp )
  246. REWIND( numnatp_cfg ) ! Namelist nampisext in configuration namelist : Pisces atm. conditions
  247. READ ( numnatp_cfg, nampisext, IOSTAT = ios, ERR = 902 )
  248. 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisext in configuration namelist', lwp )
  249. IF(lwm) WRITE ( numonp, nampisext )
  250. !
  251. IF(lwp) THEN ! control print
  252. WRITE(numout,*) ' '
  253. WRITE(numout,*) ' Namelist parameters for air-sea exchange, nampisext'
  254. WRITE(numout,*) ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
  255. WRITE(numout,*) ' Choice for reading in the atm pCO2 file or constant value, ln_co2int =', ln_co2int
  256. WRITE(numout,*) ' '
  257. ENDIF
  258. IF( .NOT.ln_co2int ) THEN
  259. IF(lwp) THEN ! control print
  260. WRITE(numout,*) ' Constant Atmospheric pCO2 value atcco2 =', atcco2
  261. WRITE(numout,*) ' '
  262. ENDIF
  263. satmco2(:,:) = atcco2 ! Initialisation of atmospheric pco2
  264. ELSE
  265. IF(lwp) THEN
  266. WRITE(numout,*) ' Atmospheric pCO2 value from file clname =', TRIM( clname )
  267. WRITE(numout,*) ' Offset model-data start year nn_offset =', nn_offset
  268. WRITE(numout,*) ' '
  269. ENDIF
  270. CALL ctl_opn( numco2, TRIM( clname) , 'OLD', 'FORMATTED', 'SEQUENTIAL', -1 , numout, lwp )
  271. jm = 0 ! Count the number of record in co2 file
  272. DO
  273. READ(numco2,*,END=100)
  274. jm = jm + 1
  275. END DO
  276. 100 nmaxrec = jm - 1
  277. ALLOCATE( years (nmaxrec) ) ; years (:) = 0._wp
  278. ALLOCATE( atcco2h(nmaxrec) ) ; atcco2h(:) = 0._wp
  279. REWIND(numco2)
  280. DO jm = 1, nmaxrec ! get xCO2 data
  281. READ(numco2, *) years(jm), atcco2h(jm)
  282. IF(lwp) WRITE(numout, '(f6.0,f7.2)') years(jm), atcco2h(jm)
  283. END DO
  284. CLOSE(numco2)
  285. ENDIF
  286. !
  287. oce_co2(:,:) = 0._wp ! Initialization of Flux of Carbon
  288. t_oce_co2_flx = 0._wp
  289. t_atm_co2_flx = 0._wp
  290. !
  291. CALL p4z_patm( nit000 )
  292. !
  293. END SUBROUTINE p4z_flx_init
  294. SUBROUTINE p4z_patm( kt )
  295. !!----------------------------------------------------------------------
  296. !! *** ROUTINE p4z_atm ***
  297. !!
  298. !! ** Purpose : Read and interpolate the external atmospheric sea-levl pressure
  299. !! ** Method : Read the files and interpolate the appropriate variables
  300. !!
  301. !!----------------------------------------------------------------------
  302. !! * arguments
  303. INTEGER, INTENT( in ) :: kt ! ocean time step
  304. !
  305. INTEGER :: ierr
  306. INTEGER :: ios ! Local integer output status for namelist read
  307. CHARACTER(len=100) :: cn_dir ! Root directory for location of ssr files
  308. TYPE(FLD_N) :: sn_patm ! informations about the fields to be read
  309. !!
  310. NAMELIST/nampisatm/ ln_presatm, sn_patm, cn_dir
  311. ! ! ----------------------- !
  312. IF( kt == nit000 ) THEN ! First call kt=nittrc000 !
  313. REWIND( numnatp_ref ) ! Namelist nampisatm in reference namelist : Pisces atm. sea level pressure file
  314. READ ( numnatp_ref, nampisatm, IOSTAT = ios, ERR = 901)
  315. 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisatm in reference namelist', lwp )
  316. REWIND( numnatp_cfg ) ! Namelist nampisatm in configuration namelist : Pisces atm. sea level pressure file
  317. READ ( numnatp_cfg, nampisatm, IOSTAT = ios, ERR = 902 )
  318. 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisatm in configuration namelist', lwp )
  319. IF(lwm) WRITE ( numonp, nampisatm )
  320. !
  321. !
  322. IF(lwp) THEN !* control print
  323. WRITE(numout,*)
  324. WRITE(numout,*) ' Namelist nampisatm : Atmospheric Pressure as external forcing'
  325. WRITE(numout,*) ' constant atmopsheric pressure (F) or from a file (T) ln_presatm = ', ln_presatm
  326. WRITE(numout,*)
  327. ENDIF
  328. !
  329. IF( ln_presatm ) THEN
  330. ALLOCATE( sf_patm(1), STAT=ierr ) !* allocate and fill sf_patm (forcing structure) with sn_patm
  331. IF( ierr > 0 ) CALL ctl_stop( 'STOP', 'p4z_flx: unable to allocate sf_patm structure' )
  332. !
  333. CALL fld_fill( sf_patm, (/ sn_patm /), cn_dir, 'p4z_flx', 'Atmospheric pressure ', 'nampisatm' )
  334. ALLOCATE( sf_patm(1)%fnow(jpi,jpj,1) )
  335. IF( sn_patm%ln_tint ) ALLOCATE( sf_patm(1)%fdta(jpi,jpj,1,2) )
  336. ENDIF
  337. !
  338. IF( .NOT.ln_presatm ) patm(:,:) = 1.e0 ! Initialize patm if no reading from a file
  339. !
  340. ENDIF
  341. !
  342. IF( ln_presatm ) THEN
  343. CALL fld_read( kt, 1, sf_patm ) !* input Patm provided at kt + 1/2
  344. patm(:,:) = sf_patm(1)%fnow(:,:,1) ! atmospheric pressure
  345. ENDIF
  346. !
  347. END SUBROUTINE p4z_patm
  348. INTEGER FUNCTION p4z_flx_alloc()
  349. !!----------------------------------------------------------------------
  350. !! *** ROUTINE p4z_flx_alloc ***
  351. !!----------------------------------------------------------------------
  352. ALLOCATE( oce_co2(jpi,jpj), satmco2(jpi,jpj), patm(jpi,jpj), STAT=p4z_flx_alloc )
  353. !
  354. IF( p4z_flx_alloc /= 0 ) CALL ctl_warn('p4z_flx_alloc : failed to allocate arrays')
  355. !
  356. END FUNCTION p4z_flx_alloc
  357. #else
  358. !!======================================================================
  359. !! Dummy module : No PISCES bio-model
  360. !!======================================================================
  361. CONTAINS
  362. SUBROUTINE p4z_flx( kt ) ! Empty routine
  363. INTEGER, INTENT( in ) :: kt
  364. WRITE(*,*) 'p4z_flx: You should not have seen this print! error?', kt
  365. END SUBROUTINE p4z_flx
  366. #endif
  367. !!======================================================================
  368. END MODULE p4zflx