@@ -22,13 +22,10 @@ module m_data_output
2222 & s_write_energy_data_file, s_close_formatted_database_file, s_close_intf_data_file, s_close_energy_data_file, &
2323 & s_finalize_data_output_module
2424
25- ! Including the Silo Fortran interface library that features the subroutines and parameters that are required to write in the
26- ! Silo- HDF5 database format INCLUDE ' silo.inc'
25+ ! Include Silo- HDF5 interface library
2726 include ' silo_f9x.inc'
2827
29- ! Generic storage for flow variable(s) that are to be written to formatted database file(s). Note that for 1D simulations,
30- ! q_root_sf is employed to gather the flow variable(s) from all sub- domains on to the root process. If the run is not parallel,
31- ! but serial, then q_root_sf is equal to q_sf.
28+ ! Flow variable storage; q_root_sf gathers to rank 0 in 1D parallel runs
3229 real (wp), allocatable, dimension (:,:,:), public :: q_sf
3330 real (wp), allocatable, dimension (:,:,:) :: q_root_sf
3431 real (wp), allocatable, dimension (:,:,:) :: cyl_q_sf
@@ -38,20 +35,15 @@ module m_data_output
3835 real (sp), allocatable, dimension (:,:,:) :: q_root_sf_s
3936 real (sp), allocatable, dimension (:,:,:) :: cyl_q_sf_s
4037
41- ! The spatial and data extents array variables contain information about the minimum and maximum values of the grid and flow
42- ! variable(s), respectively. The purpose of bookkeeping this information is to boost the visualization of the Silo- HDF5 database
43- ! file(s) in VisIt.
38+ ! Spatial and data extents for VisIt visualization
4439 real (wp), allocatable, dimension (:,:) :: spatial_extents
4540 real (wp), allocatable, dimension (:,:) :: data_extents
4641
47- ! The size of the ghost zone layer at beginning of each coordinate direction (lo) and at end of each coordinate direction (hi).
48- ! Adding this information to Silo- HDF5 database file(s) is recommended since it supplies VisIt with connectivity information
49- ! between the sub- domains of a parallel data set.
42+ ! Ghost zone layer sizes (lo/ hi) for subdomain connectivity in VisIt
5043 integer , allocatable, dimension (:) :: lo_offset
5144 integer , allocatable, dimension (:) :: hi_offset
5245
53- ! For Silo- HDF5 database format , this variable is used to keep track of the number of cell- boundaries, for the grid associated
54- ! with the local process, in each of the active coordinate directions.
46+ ! Track cell- boundary count per active coordinate direction
5547 integer , allocatable, dimension (:) :: dims
5648
5749 ! Locations of various folders in the case' s directory tree, associated with the choice of the formatted database format. These
@@ -404,11 +396,7 @@ contains
404396 !> @brief Open (or create) the Silo-HDF5 or Binary formatted database slave and master files for a given time step.
405397 impure subroutine s_open_formatted_database_file(t_step)
406398
407- ! Description: This subroutine opens a new formatted database file, or replaces an old one, and readies it for the data
408- ! storage of the grid and the flow variable(s) associated with the current time-step, t_step. This is performed by all the
409- ! local process(es). The root processor, in addition, must also generate a master formatted database file whose job will be
410- ! to link, and thus combine, the data from all of the local process(es). Note that for the Binary format, this extra task
411- ! that is assigned to the root process is not performed in multidimensions.
399+ ! Open/create DB file for current time-step; rank 0 creates master file (Silo only)
412400
413401 ! Time-step that is currently being post-processed
414402 integer, intent(in) :: t_step
0 commit comments