@@ -194,15 +194,6 @@ module m_global_parameters
194194 type(bounds_info) :: x_output, y_output, z_output !< Portion of domain to output for post- processing
195195 type(int_bounds_info) :: x_output_idx, y_output_idx, z_output_idx !< Indices of domain to output for post- processing
196196
197- !> @name Size of the ghost zone layer in the x- , y- and z- coordinate directions.
198- !! The definition of the ghost zone layers is only necessary when using the
199- !! Silo database file format in multidimensions. These zones provide VisIt
200- !! with the subdomain connectivity information that it requires in order to
201- !! produce smooth plots.
202- !> @{
203- type(int_bounds_info) :: offset_x, offset_y, offset_z
204- !> @}
205-
206197 !> @name The list of all possible flow variables that may be written to a database
207198 !! file. It includes partial densities, density, momentum, velocity, energy,
208199 !! pressure, volume fraction (s), specific heat ratio function, specific heat
@@ -719,7 +710,6 @@ contains
719710 chemxe = species_idx%end
720711
721712#ifdef MFC_MPI
722-
723713 if (bubbles_lagrange) then
724714 allocate (MPI_IO_DATA%view(1 :sys_size + 1 ))
725715 allocate (MPI_IO_DATA%var(1 :sys_size + 1 ))
@@ -739,35 +729,7 @@ contains
739729 if (ib) allocate (MPI_IO_IB_DATA%var%sf(0 :m, 0 :n, 0 :p))
740730#endif
741731
742- ! Size of the ghost zone layer is non- zero only when post- processing
743- ! the raw simulation data of a parallel multidimensional computation
744- ! in the Silo- HDF5 format . If this is the case, one must also verify
745- ! whether the raw simulation data is 2D or 3D . In the 2D case, size
746- ! of the z- coordinate direction ghost zone layer must be zeroed out .
747- if (num_procs == 1 .or. format /= 1 .or. n == 0 ) then
748-
749- offset_x%beg = 0
750- offset_x%end = 0
751- offset_y%beg = 0
752- offset_y%end = 0
753- offset_z%beg = 0
754- offset_z%end = 0
755-
756- elseif (p == 0 ) then
757-
758- offset_z%beg = 0
759- offset_z%end = 0
760-
761- end if
762-
763- ! Determining the finite- difference number and the buffer size. Note
764- ! that the size of the buffer is unrelated to the order of the WENO
765- ! scheme. Rather, it is directly dependent on maximum size of ghost
766- ! zone layers and possibly the order of the finite difference scheme
767- ! used for the computation of vorticity and/ or numerical Schlieren
768- ! function.
769- buff_size = max (offset_x%beg, offset_x%end, offset_y%beg, &
770- offset_y%end, offset_z%beg, offset_z%end)
732+ buff_size = 0
771733
772734 if (any (omega_wrt) .or. schlieren_wrt .or. qm_wrt) then
773735 fd_number = max (1 , fd_order/ 2 )
@@ -788,31 +750,31 @@ contains
788750
789751 ! Allocating single precision grid variables if needed
790752 if (precision == 1 ) then
791- allocate (x_cb_s(- 1 - offset_x%beg:m + offset_x%end ))
753+ allocate (x_cb_s(- 1 :m ))
792754 if (n > 0 ) then
793- allocate (y_cb_s(- 1 - offset_x%beg:n + offset_x%end ))
755+ allocate (y_cb_s(- 1 :n ))
794756 if (p > 0 ) then
795- allocate (z_cb_s(- 1 - offset_x%beg:m + offset_x%end ))
757+ allocate (z_cb_s(- 1 :m ))
796758 end if
797759 end if
798760 else
799761 allocate (x_cc_s(- buff_size:m + buff_size))
800762 end if
801763
802764 ! Allocating the grid variables in the x- coordinate direction
803- allocate (x_cb(- 1 - offset_x%beg:m + offset_x%end ))
765+ allocate (x_cb(- 1 :m ))
804766 allocate (x_cc(- buff_size:m + buff_size))
805767 allocate (dx(- buff_size:m + buff_size))
806768
807769 ! Allocating grid variables in the y- and z- coordinate directions
808770 if (n > 0 ) then
809771
810- allocate (y_cb(- 1 - offset_y%beg:n + offset_y%end ))
772+ allocate (y_cb(- 1 :n ))
811773 allocate (y_cc(- buff_size:n + buff_size))
812774 allocate (dy(- buff_size:n + buff_size))
813775
814776 if (p > 0 ) then
815- allocate (z_cb(- 1 - offset_z%beg:p + offset_z%end ))
777+ allocate (z_cb(- 1 :p ))
816778 allocate (z_cc(- buff_size:p + buff_size))
817779 allocate (dz(- buff_size:p + buff_size))
818780 end if
0 commit comments