@@ -50,7 +50,7 @@ module m_global_parameters
5050 ! > @name Cell-boundary locations in the x-, y- and z-coordinate directions
5151 ! > @{
5252 real (kind (0d0 )), allocatable , dimension (:) :: x_cb, x_root_cb, y_cb, z_cb
53- real (kind (0d0 )), allocatable , dimension (:) :: coarse_x_cb, coarse_y_cb, coarse_z_cb
53+ real (kind (0.0 )), allocatable , dimension (:) :: x_cb_s, y_cb_s, z_cb_s
5454 ! > @}
5555
5656 ! > @name Cell-center locations in the x-, y- and z-coordinate directions
@@ -146,8 +146,6 @@ module m_global_parameters
146146
147147 integer :: format ! < Format of the database file(s)
148148
149- logical :: coarsen_silo
150-
151149 integer :: precision ! < Floating point precision of the database file(s)
152150
153151 ! > @name Size of the ghost zone layer in the x-, y- and z-coordinate directions.
@@ -187,12 +185,6 @@ module m_global_parameters
187185 logical :: schlieren_wrt
188186 ! > @}
189187
190- ! > @name Options for Fourier decomposition in the azimuthal direction if 3D
191- ! ! cylindrical coordinates are used
192- ! > @{
193- logical :: fourier_decomp
194- ! > @}
195-
196188 real (kind (0d0 )), dimension (num_fluids_max) :: schlieren_alpha ! <
197189 ! ! Amplitude coefficients of the numerical Schlieren function that are used
198190 ! ! to adjust the intensity of numerical Schlieren renderings for individual
@@ -298,8 +290,6 @@ subroutine s_assign_default_values_to_user_inputs() ! ------------------
298290
299291 precision = dflt_int
300292
301- coarsen_silo = .false.
302-
303293 alpha_rho_wrt = .false.
304294 rho_wrt = .false.
305295 mom_wrt = .false.
@@ -323,8 +313,6 @@ subroutine s_assign_default_values_to_user_inputs() ! ------------------
323313
324314 schlieren_alpha = dflt_real
325315
326- fourier_decomp = .false.
327-
328316 fd_order = dflt_int
329317
330318 ! Tait EOS
@@ -494,7 +482,7 @@ subroutine s_initialize_global_parameters_module() ! ----------------------
494482 internalEnergies_idx% beg = adv_idx% end + 1
495483 internalEnergies_idx% end = adv_idx% end + num_fluids
496484 sys_size = internalEnergies_idx% end
497- alf_idx = 1
485+ alf_idx = 1 ! dummy, cannot actually have a void fraction
498486
499487 else if (model_eqns == 4 ) then
500488 cont_idx% beg = 1 ! one continuity equation
@@ -540,15 +528,12 @@ subroutine s_initialize_global_parameters_module() ! ----------------------
540528 R0(:) = 1d0
541529 V0(:) = 0d0
542530 else if (nb > 1 ) then
543- ! call s_simpson
544531 V0(:) = 0d0
545532 else
546533 stop ' Invalid value of nb'
547534 end if
548535
549- if (polytropic .neqv. .true. ) then
550- ! call s_initialize_nonpoly
551- else
536+ if (polytropic ) then
552537 rhoref = 1.d0
553538 pref = 1.d0
554539 end if
@@ -614,6 +599,17 @@ subroutine s_initialize_global_parameters_module() ! ----------------------
614599 buff_size = buff_size + fd_number
615600 end if
616601
602+ ! Allocating single precision grid variables if needed
603+ if (precision == 1 ) then
604+ allocate (x_cb_s(- 1 - offset_x% beg:m + offset_x% end))
605+ if (n > 0 ) then
606+ allocate (y_cb_s(- 1 - offset_x% beg:n + offset_x% end))
607+ if (p > 0 ) then
608+ allocate (z_cb_s(- 1 - offset_x% beg:m + offset_x% end))
609+ end if
610+ end if
611+ end if
612+
617613 ! Allocating the grid variables in the x-coordinate direction
618614 allocate (x_cb(- 1 - offset_x% beg:m + offset_x% end))
619615 allocate (x_cc(- buff_size:m + buff_size))
@@ -641,14 +637,6 @@ subroutine s_initialize_global_parameters_module() ! ----------------------
641637
642638 end if
643639
644- if (coarsen_silo) then
645- allocate (coarse_x_cb(- 1 - offset_x% beg:(m/ 2 ) + offset_x% end))
646- if (n > 0 ) then
647- allocate (coarse_y_cb(- 1 - offset_y% beg:(n/ 2 ) + offset_y% end))
648- if (p > 0 ) allocate (coarse_z_cb(- 1 - offset_z% beg:(p/ 2 ) + offset_z% end))
649- end if
650- end if
651-
652640 allocate (adv(num_fluids))
653641
654642 if (cyl_coord .neqv. .true. ) then ! Cartesian grid
@@ -712,14 +700,6 @@ subroutine s_finalize_global_parameters_module() ! -------------------
712700
713701 end if
714702
715- if (coarsen_silo) then
716- deallocate (coarse_x_cb)
717- if (n > 0 ) then
718- deallocate (coarse_y_cb)
719- if (p > 0 ) deallocate (coarse_z_cb)
720- end if
721- end if
722-
723703 deallocate (proc_coords)
724704
725705 deallocate (adv)
0 commit comments