Skip to content

Commit 2c53a90

Browse files
committed
remove fluid_rho
1 parent a950ad8 commit 2c53a90

5 files changed

Lines changed: 4 additions & 14 deletions

File tree

src/pre_process/m_global_parameters.fpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,13 @@ module m_global_parameters
7878
type(int_bounds_info) :: mom_idx !< Indexes of first & last momentum eqns.
7979
integer :: E_idx !< Index of total energy equation
8080
type(int_bounds_info) :: adv_idx !< Indexes of first & last advection eqns.
81-
integer :: gamma_idx !< Index of specific heat ratio func. eqn.
82-
integer :: pi_inf_idx !< Index of liquid stiffness func. eqn.
8381

8482
type(int_bounds_info) :: bc_x, bc_y !<
8583
!! Boundary conditions in the x-, y- and z-coordinate directions
8684

8785
logical :: parallel_io !< Format of the data files
8886
integer :: precision !< Precision of output files
8987

90-
real(kind(0d0)), dimension(num_fluids_max) :: fluid_rho
9188

9289
integer, allocatable, dimension(:) :: proc_coords !<
9390
!! Processor coordinates in MPI_CART_COMM
@@ -187,7 +184,6 @@ contains
187184

188185
parallel_io = .false.
189186
precision = 2
190-
fluid_rho = dflt_real
191187

192188
! Initial condition parameters
193189
num_patches = dflt_int

src/pre_process/m_mpi_proxy.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ contains
148148
#:for VAR in [ 'old_grid','old_ic','stretch_x','stretch_y', 'parallel_io' ]
149149
call MPI_BCAST(${VAR}$, 1, MPI_LOGICAL, 0, MPI_COMM_WORLD, ierr)
150150
#:endfor
151-
call MPI_BCAST(fluid_rho(1), num_fluids_max, MPI_LOGICAL, 0, MPI_COMM_WORLD, ierr)
152151
153152
154153
#:for VAR in [ 'x_domain%beg', 'x_domain%end', 'y_domain%beg', &

src/pre_process/m_start_up.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ contains
9494
weno_order, bc_x, bc_y, num_patches, &
9595
patch_icpp, fluid_pp, &
9696
precision, parallel_io, &
97-
fluid_rho, &
9897
loops_x, loops_y
9998

10099
! Inquiring the status of the pre_process.inp file

src/simulation/m_global_parameters.fpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ module m_global_parameters
4040
character(LEN=path_len) :: case_dir !< Case folder location
4141
logical :: run_time_info !< Run-time output flag
4242
integer :: t_step_old !< Existing IC/grid folder
43-
real(kind(0d0)), parameter :: small_alf = 1d-7 !< Small alf tolerance
4443
! ==========================================================================
44+
4545
! Computational Domain Parameters ==========================================
4646
integer :: proc_rank !< Rank of the local processor
4747

@@ -72,7 +72,7 @@ module m_global_parameters
7272

7373
real(kind(0d0)) :: dt !< Size of the time-step
7474

75-
!$acc declare create(x_cb, y_cb, x_cc, y_cc, dx, dy, dt, m, n)
75+
!$acc declare create(x_cb, y_cb, x_cc, y_cc, dx, dy, dt, m, n)
7676

7777
!> @name Starting time-step iteration, stopping time-step iteration and the number
7878
!! of time-step iterations between successive solution backups, respectively
@@ -112,7 +112,7 @@ module m_global_parameters
112112

113113
!> @name Boundary conditions (BC) in the x-, y- and z-directions, respectively
114114
!> @{
115-
type(int_bounds_info) :: bc_x, bc_y, bc_z
115+
type(int_bounds_info) :: bc_x, bc_y
116116
type(int_bounds_info) :: bc_x_glb, bc_y_glb
117117
!> @}
118118

@@ -258,7 +258,6 @@ contains
258258

259259
bc_x%beg = dflt_int; bc_x%end = dflt_int
260260
bc_y%beg = dflt_int; bc_y%end = dflt_int
261-
bc_z%beg = dflt_int; bc_z%end = dflt_int
262261

263262
! Fluids physical parameters
264263
do i = 1, num_fluids_max

toolchain/mfc/run/case_dicts.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212

1313
PRE_PROCESS = COMMON + [
14-
'old_grid', 'old_ic', 't_step_old',
15-
'fluid_rho', 'num_patches'
14+
'old_grid', 'old_ic', 't_step_old', 'num_patches'
1615
]
1716

1817
for cmp in ["x", "y"]:
@@ -26,8 +25,6 @@
2625
PRE_PROCESS.append(f"bc_{cmp}%end")
2726

2827
for f_id in range(1, 10+1):
29-
PRE_PROCESS.append(f'fluid_rho({f_id})')
30-
3128
for attribute in ["gamma", "pi_inf"]:
3229
PRE_PROCESS.append(f"fluid_pp({f_id})%{attribute}")
3330

0 commit comments

Comments
 (0)