Skip to content

Commit 9f89155

Browse files
committed
Replace intrinsics in allocate
1 parent 978e320 commit 9f89155

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/common/m_mpi_common.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ contains
6767
& (m + 2*buff_size + 1)* &
6868
& (n + 2*buff_size + 1)* &
6969
& (p + 2*buff_size + 1)/ &
70-
& (min(m, n, p) + 2*buff_size + 1))
70+
& ((mnp_min + 2*buff_size + 1))
7171
else
7272
halo_size = -1 + buff_size*(v_size)* &
73-
& (max(m, n) + 2*buff_size + 1)
73+
& (mn_max + 2*buff_size + 1)
7474
end if
7575
else
7676
halo_size = -1 + buff_size*(v_size)

src/simulation/m_global_parameters.fpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,8 @@ contains
10421042
if (Re_size(1) > 0._wp) shear_stress = .true.
10431043
if (Re_size(2) > 0._wp) bulk_stress = .true.
10441044
1045+
Re_size_max = maxval(Re_size)
1046+
10451047
$:GPU_UPDATE(device='[Re_size,viscous,shear_stress,bulk_stress]')
10461048
10471049
! Bookkeeping the indexes of any viscous fluids and any pairs of

0 commit comments

Comments
 (0)