Skip to content

Commit 32b1d99

Browse files
committed
Readded re_size_max
1 parent b1a5774 commit 32b1d99

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/simulation/m_global_parameters.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ contains
815815
! of fluids for which the physical and geometric curvatures of the
816816
! interfaces will be computed
817817
Re_size = 0
818-
818+
Re_size_max = 0
819819
! Gamma/Pi_inf Model
820820
if (model_eqns == 1) then
821821

src/simulation/m_mpi_proxy.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ contains
6262
& (m + 2*gp_layers + 1)* &
6363
& (n + 2*gp_layers + 1)* &
6464
& (p + 2*gp_layers + 1)/ &
65-
& (min(m, n, p) + 2*gp_layers + 1)
65+
& (cells_bounds%mnp_min + 2*gp_layers + 1)
6666
else
6767
i_halo_size = -1 + gp_layers* &
68-
& (max(m, n) + 2*gp_layers + 1)
68+
& (cells_bounds%mn_max + 2*gp_layers + 1)
6969
end if
7070
else
7171
i_halo_size = -1 + gp_layers

src/simulation/m_pressure_relaxation.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ contains
4242
$:GPU_UPDATE(device='[gamma_min, pres_inf]')
4343

4444
if (viscous) then
45-
@:ALLOCATE(Res(1:2, 1:maxval(Re_size)))
45+
@:ALLOCATE(Res(1:2, 1:Re_size_max))
4646
do i = 1, 2
4747
do j = 1, Re_size(i)
4848
Res(i, j) = fluid_pp(Re_idx(i, j))%Re(i)

0 commit comments

Comments
 (0)