Skip to content

Commit 7a287ce

Browse files
committed
Possible fix for Cray
1 parent 082b2ba commit 7a287ce

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/common/m_variables_conversion.fpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,9 @@ contains
487487
real(wp), optional, intent(out) :: G_K
488488
real(wp), optional, dimension(num_fluids), intent(in) :: G
489489
real(wp) :: alpha_K_sum
490-
490+
integer :: i
491491
#ifdef MFC_SIMULATION
492-
integer :: i, j !< Generic loop iterators
492+
integer :: j !< Generic loop iterators
493493
#endif
494494
! Initiate the variables to avoid compiler warnings
495495
rho_K = 0._wp
@@ -498,7 +498,9 @@ contains
498498
qv_K = 0._wp
499499
alpha_K_sum = 0._wp
500500
if (present(G_K) .and. present(G)) G_K = 0._wp
501-
Re_K(:) = dflt_real
501+
do i = 1, 2
502+
Re_K(i) = dflt_real
503+
end do
502504
#ifdef MFC_SIMULATION
503505
! Constraining the partial densities and the volume fractions within
504506
! their physical bounds to make sure that any mixture variables that

0 commit comments

Comments
 (0)