Skip to content

Commit e5728fb

Browse files
committed
fix: extend VLA guards from USING_AMD to (USING_AMD or USING_INTEL) in m_qbmm and m_hyperelastic
1 parent 8d2c6b1 commit e5728fb

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/simulation/m_hyperelastic.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ contains
7777
type(scalar_field), dimension(sys_size), intent(inout) :: q_cons_vf
7878
type(scalar_field), dimension(sys_size), intent(inout) :: q_prim_vf
7979

80-
#:if USING_AMD
80+
#:if (USING_AMD or USING_INTEL)
8181
real(wp), dimension(10) :: tensora, tensorb
8282
#:else
8383
real(wp), dimension(tensor_size) :: tensora, tensorb

src/simulation/m_qbmm.fpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ contains
587587
$:GPU_ROUTINE(function_name='s_coeff_nonpoly',parallelism='[seq]', cray_inline=True)
588588

589589
real(wp), intent(in) :: pres, rho, c
590-
#:if USING_AMD
590+
#:if (USING_AMD or USING_INTEL)
591591
real(wp), dimension(32,0:2,0:2), intent(out) :: coeffs
592592
#:else
593593
real(wp), dimension(nterms,0:2,0:2), intent(out) :: coeffs
@@ -666,7 +666,7 @@ contains
666666
$:GPU_ROUTINE(function_name='s_coeff',parallelism='[seq]', cray_inline=True)
667667

668668
real(wp), intent(in) :: pres, rho, c
669-
#:if USING_AMD
669+
#:if (USING_AMD or USING_INTEL)
670670
real(wp), dimension(32,0:2,0:2), intent(out) :: coeffs
671671
#:else
672672
real(wp), dimension(nterms,0:2,0:2), intent(out) :: coeffs
@@ -748,7 +748,7 @@ contains
748748
real(wp), dimension(nmom) :: moms, msum
749749
real(wp), dimension(nnode, nb) :: wght, abscX, abscY, wght_pb, wght_mv, wght_ht, ht
750750
#:endif
751-
#:if USING_AMD
751+
#:if (USING_AMD or USING_INTEL)
752752
real(wp), dimension(32,0:2,0:2) :: coeff
753753
#:else
754754
real(wp), dimension(nterms,0:2,0:2) :: coeff
@@ -930,7 +930,7 @@ contains
930930

931931
$:GPU_ROUTINE(function_name='s_coeff_selector',parallelism='[seq]', cray_inline=True)
932932
real(wp), intent(in) :: pres, rho, c
933-
#:if USING_AMD
933+
#:if (USING_AMD or USING_INTEL)
934934
real(wp), dimension(32,0:2,0:2), intent(out) :: coeff
935935
#:else
936936
real(wp), dimension(nterms,0:2,0:2), intent(out) :: coeff

0 commit comments

Comments
 (0)