@@ -38,7 +38,7 @@ contains
3838
3939 $:GPU_ROUTINE(parallelism= ' [seq]' )
4040 #:if USING_AMD
41- real (wp), dimension (20 ), intent (inout ) :: L
41+ real (wp), dimension (${AMD_SYS_SIZE_MAX}$ ), intent (inout ) :: L
4242 #:else
4343 real (wp), dimension (sys_size), intent (inout ) :: L
4444 #:endif
@@ -62,7 +62,7 @@ contains
6262
6363 $:GPU_ROUTINE(parallelism= ' [seq]' )
6464 #:if USING_AMD
65- real (wp), dimension (20 ), intent (inout ) :: L
65+ real (wp), dimension (${AMD_SYS_SIZE_MAX}$ ), intent (inout ) :: L
6666 #:else
6767 real (wp), dimension (sys_size), intent (inout ) :: L
6868 #:endif
@@ -85,7 +85,7 @@ contains
8585
8686 $:GPU_ROUTINE(parallelism= ' [seq]' )
8787 #:if USING_AMD
88- real (wp), dimension (20 ), intent (inout ) :: L
88+ real (wp), dimension (${AMD_SYS_SIZE_MAX}$ ), intent (inout ) :: L
8989 #:else
9090 real (wp), dimension (sys_size), intent (inout ) :: L
9191 #:endif
@@ -108,12 +108,12 @@ contains
108108
109109 $:GPU_ROUTINE(parallelism= ' [seq]' )
110110 #:if USING_AMD
111- real (wp), dimension (20 ), intent (inout ) :: L
111+ real (wp), dimension (${AMD_SYS_SIZE_MAX}$ ), intent (inout ) :: L
112112 #:else
113113 real (wp), dimension (sys_size), intent (inout ) :: L
114114 #:endif
115115 #:if not MFC_CASE_OPTIMIZATION and USING_AMD
116- real (wp), dimension (10 ), intent (in ) :: dYs_ds
116+ real (wp), dimension (${AMD_NUM_SPECIES_MAX}$ ), intent (in ) :: dYs_ds
117117 #:else
118118 real (wp), dimension (num_species), intent (in ) :: dYs_ds
119119 #:endif
@@ -135,7 +135,7 @@ contains
135135
136136 real (wp), dimension (3 ), intent (in ) :: lambda
137137 #:if USING_AMD
138- real (wp), dimension (20 ), intent (inout ) :: L
138+ real (wp), dimension (${AMD_SYS_SIZE_MAX}$ ), intent (inout ) :: L
139139 #:else
140140 real (wp), dimension (sys_size), intent (inout ) :: L
141141 #:endif
@@ -159,15 +159,15 @@ contains
159159
160160 real (wp), dimension (3 ), intent (in ) :: lambda
161161 #:if USING_AMD
162- real (wp), dimension (20 ), intent (inout ) :: L
162+ real (wp), dimension (${AMD_SYS_SIZE_MAX}$ ), intent (inout ) :: L
163163 #:else
164164 real (wp), dimension (sys_size), intent (inout ) :: L
165165 #:endif
166166 #:if not MFC_CASE_OPTIMIZATION and USING_AMD
167- real (wp), dimension (3 ), intent (in ) :: mf, dalpha_rho_ds
168- real (wp), dimension (3 ), intent (in ) :: dvel_ds
169- real (wp), dimension (3 ), intent (in ) :: dadv_ds
170- real (wp), dimension (10 ), intent (in ) :: dYs_ds
167+ real (wp), dimension (3 ), intent (in ) :: mf, dalpha_rho_ds
168+ real (wp), dimension (3 ), intent (in ) :: dvel_ds
169+ real (wp), dimension (3 ), intent (in ) :: dadv_ds
170+ real (wp), dimension (${AMD_NUM_SPECIES_MAX}$ ), intent (in ) :: dYs_ds
171171 #:else
172172 real (wp), dimension (num_fluids), intent (in ) :: mf, dalpha_rho_ds
173173 real (wp), dimension (num_dims), intent (in ) :: dvel_ds
@@ -199,7 +199,7 @@ contains
199199
200200 real (wp), dimension (3 ), intent (in ) :: lambda
201201 #:if USING_AMD
202- real (wp), dimension (20 ), intent (inout ) :: L
202+ real (wp), dimension (${AMD_SYS_SIZE_MAX}$ ), intent (inout ) :: L
203203 #:else
204204 real (wp), dimension (sys_size), intent (inout ) :: L
205205 #:endif
@@ -223,15 +223,15 @@ contains
223223
224224 real (wp), dimension (3 ), intent (in ) :: lambda
225225 #:if USING_AMD
226- real (wp), dimension (20 ), intent (inout ) :: L
226+ real (wp), dimension (${AMD_SYS_SIZE_MAX}$ ), intent (inout ) :: L
227227 #:else
228228 real (wp), dimension (sys_size), intent (inout ) :: L
229229 #:endif
230230 #:if not MFC_CASE_OPTIMIZATION and USING_AMD
231- real (wp), dimension (3 ), intent (in ) :: mf, dalpha_rho_ds
232- real (wp), dimension (3 ), intent (in ) :: dvel_ds
233- real (wp), dimension (3 ), intent (in ) :: dadv_ds
234- real (wp), dimension (10 ), intent (in ) :: dYs_ds
231+ real (wp), dimension (3 ), intent (in ) :: mf, dalpha_rho_ds
232+ real (wp), dimension (3 ), intent (in ) :: dvel_ds
233+ real (wp), dimension (3 ), intent (in ) :: dadv_ds
234+ real (wp), dimension (${AMD_NUM_SPECIES_MAX}$ ), intent (in ) :: dYs_ds
235235 #:else
236236 real (wp), dimension (num_fluids), intent (in ) :: mf, dalpha_rho_ds
237237 real (wp), dimension (num_dims), intent (in ) :: dvel_ds
@@ -257,7 +257,7 @@ contains
257257
258258 real (wp), dimension (3 ), intent (in ) :: lambda
259259 #:if USING_AMD
260- real (wp), dimension (20 ), intent (inout ) :: L
260+ real (wp), dimension (${AMD_SYS_SIZE_MAX}$ ), intent (inout ) :: L
261261 #:else
262262 real (wp), dimension (sys_size), intent (inout ) :: L
263263 #:endif
@@ -288,7 +288,7 @@ contains
288288
289289 real (wp), dimension (3 ), intent (in ) :: lambda
290290 #:if USING_AMD
291- real (wp), dimension (20 ), intent (inout ) :: L
291+ real (wp), dimension (${AMD_SYS_SIZE_MAX}$ ), intent (inout ) :: L
292292 #:else
293293 real (wp), dimension (sys_size), intent (inout ) :: L
294294 #:endif
@@ -317,7 +317,7 @@ contains
317317
318318 $:GPU_ROUTINE(function_name= ' s_compute_supersonic_inflow_L' , parallelism= ' [seq]' , cray_inline= True)
319319 #:if USING_AMD
320- real (wp), dimension (20 ), intent (inout ) :: L
320+ real (wp), dimension (${AMD_SYS_SIZE_MAX}$ ), intent (inout ) :: L
321321 #:else
322322 real (wp), dimension (sys_size), intent (inout ) :: L
323323 #:endif
@@ -333,15 +333,15 @@ contains
333333
334334 real (wp), dimension (3 ), intent (in ) :: lambda
335335 #:if USING_AMD
336- real (wp), dimension (20 ), intent (inout ) :: L
336+ real (wp), dimension (${AMD_SYS_SIZE_MAX}$ ), intent (inout ) :: L
337337 #:else
338338 real (wp), dimension (sys_size), intent (inout ) :: L
339339 #:endif
340340 #:if not MFC_CASE_OPTIMIZATION and USING_AMD
341- real (wp), dimension (3 ), intent (in ) :: mf, dalpha_rho_ds
342- real (wp), dimension (3 ), intent (in ) :: dvel_ds
343- real (wp), dimension (3 ), intent (in ) :: dadv_ds
344- real (wp), dimension (10 ), intent (in ) :: dYs_ds
341+ real (wp), dimension (3 ), intent (in ) :: mf, dalpha_rho_ds
342+ real (wp), dimension (3 ), intent (in ) :: dvel_ds
343+ real (wp), dimension (3 ), intent (in ) :: dadv_ds
344+ real (wp), dimension (${AMD_NUM_SPECIES_MAX}$ ), intent (in ) :: dYs_ds
345345 #:else
346346 real (wp), dimension (num_fluids), intent (in ) :: mf, dalpha_rho_ds
347347 real (wp), dimension (num_dims), intent (in ) :: dvel_ds
0 commit comments