1- !- ----------------------------------------------------------------------
2- ! %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3- !- ----------------------------------------------------------------------
4- !
5- subroutine post_alctvars (imi ,jmi ,lmi ,mype ,nwtlpes ,lead_write , mpicomp , &
6- jts ,jte ,jtsgrp ,jtegrp ,its ,ite ,itsgrp ,itegrp )
7- !
8- !
9- ! revision history:
10- ! Jul 2019 Jun Wang: allocate arrays for post processing
11- ! Feb 2022 J. Meng/B. Cui: create interface to run inline post with post_2d_decomp
12- !
13- !- ----------------------------------------------------------------------
14- ! *** allocate post variables
15- !- ----------------------------------------------------------------------
16- !
1+ ! > @file
2+ ! > @brief Miscellaneous subroutines to support inline post.
3+ ! > @author Jun Wang @date Oct 8, 2019
4+
5+ ! > Allocate post variables.
6+ ! >
7+ ! > ## Subroutine History
8+ ! >
9+ ! > Date | Programmer | Modification
10+ ! > -----|------------|-------------
11+ ! > Jul 2019 | Jun Wang | allocate arrays for post processing
12+ ! > Feb 2022 | J. Meng/B. Cui | create interface to run inline post with post_2d_decomp
13+ ! >
14+ ! > @param[in] imi i dimension size of the output grid.
15+ ! > @param[in] jmi j dimension size of the output grid.
16+ ! > @param[in] lmi l (layer) dimension size of the output grid.
17+ ! > @param[in] mype MPI rank.
18+ ! > @param[in] nwtlpes number of write tasks in the write group.
19+ ! > @param[in] lead_write lead task of the write group.
20+ ! > @param[in] mpicomp MPI communicator of the write grid component.
21+ ! > @param[in] jts start index in j dimention in a task subdomain.
22+ ! > @param[in] jte end index in j dimention in a task subdomain.
23+ ! > @param[in] jtsgrp start index in j dimention of all write tasks.
24+ ! > @param[in] jtegrp end index in j dimention of all write tasks.
25+ ! > @param[in] its start index in i dimention in a task subdomain.
26+ ! > @param[in] ite end index in j dimention in a task subdomain.
27+ ! > @param[in] itsgrp start index in i dimention of all write tasks.
28+ ! > @param[in] itegrp end idex in i dimention of all write tasks.
29+ ! >
30+ ! > @author Jun Wang @date Oct 8 2019
31+ subroutine post_alctvars (imi ,jmi ,lmi ,mype ,nwtlpes ,lead_write , mpicomp , &
32+ jts ,jte ,jtsgrp ,jtegrp ,its ,ite ,itsgrp ,itegrp )
1733 use vrbls4d
1834 use vrbls3d
1935 use vrbls2d
@@ -215,11 +231,18 @@ subroutine post_alctvars(imi,jmi,lmi,mype,nwtlpes,lead_write, mpicomp, &
215231 end do
216232 end do
217233 end subroutine post_alctvars
218- !
219- !- --------------------------------------------------------------------
220- ! &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
221- !- --------------------------------------------------------------------
222- !
234+
235+ ! > Read post namelist.
236+ ! >
237+ ! > @param[in] kpo number of pressure levels.
238+ ! > @param[in] kth number of isentropic levels.
239+ ! > @param[in] kpv number of potential vorticity levels.
240+ ! > @param[in] po pressure levels to output.
241+ ! > @param[in] th isentropic levels to output.
242+ ! > @param[in] pv potential vorticity levels to output.
243+ ! > @param[in] post_namelist post namelist array.
244+ ! >
245+ ! > @author Jun Wang @date Jul 2019
223246 subroutine read_postnmlt (kpo ,kth ,kpv ,po ,th ,pv ,post_namelist )
224247!
225248 use ctlblk_mod, only : komax,fileNameD3D,lsm,lsmp1,spl,spldef, &
@@ -228,10 +251,6 @@ subroutine read_postnmlt(kpo,kth,kpv,po,th,pv,post_namelist)
228251 isf_surface_physics,modelname,submodelname,&
229252 rdaod,d2d_chem,nasa_on,gccpp_on
230253 use upp_ifi_mod, only: write_ifi_debug_files
231- !
232- ! revision history:
233- ! Jul 2019 Jun Wang: read post namelist
234- !
235254 implicit none
236255!- --
237256 character (len=* ), intent (in ) :: post_namelist
@@ -335,16 +354,13 @@ subroutine read_postnmlt(kpo,kth,kpv,po,th,pv,post_namelist)
3353541000 continue
336355
337356 end subroutine read_postnmlt
338- !
339- !- --------------------------------------------------------------------
340- ! &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
341- !- --------------------------------------------------------------------
342- !
357+
358+ ! > Finalize post step.
359+ ! >
360+ ! > @param[in] post_gribversion grib version(1 or 2) used in post.
361+ ! >
362+ ! > @author Jun Wang @date Jul 2019
343363 subroutine post_finalize (post_gribversion )
344- !
345- ! revision history:
346- ! Jul 2019 Jun Wang: finalize post step
347- !
348364 use grib2_module, only : grib_info_finalize
349365!
350366 character (* ),intent (in ) :: post_gribversion
0 commit comments