@@ -16,27 +16,25 @@ function create_cache(mesh::Union{TreeMesh{3}, StructuredMesh{3}, P4estMesh{3},
1616 VolumeIntegralFluxDifferencing (volume_integral. volume_flux_dg),
1717 dg, uEltype)
1818
19- A4dp1_x = Array{uEltype, 4 }
20- A4dp1_y = Array{uEltype, 4 }
21- A4dp1_z = Array{uEltype, 4 }
22- fstar1_L_threaded = A4dp1_x[A4dp1_x (undef, nvariables (equations), nnodes (dg) + 1 ,
23- nnodes (dg), nnodes (dg))
24- for _ in 1 : Threads. maxthreadid ()]
25- fstar1_R_threaded = A4dp1_x[A4dp1_x (undef, nvariables (equations), nnodes (dg) + 1 ,
26- nnodes (dg), nnodes (dg))
27- for _ in 1 : Threads. maxthreadid ()]
28- fstar2_L_threaded = A4dp1_y[A4dp1_y (undef, nvariables (equations), nnodes (dg),
29- nnodes (dg) + 1 , nnodes (dg))
30- for _ in 1 : Threads. maxthreadid ()]
31- fstar2_R_threaded = A4dp1_y[A4dp1_y (undef, nvariables (equations), nnodes (dg),
32- nnodes (dg) + 1 , nnodes (dg))
33- for _ in 1 : Threads. maxthreadid ()]
34- fstar3_L_threaded = A4dp1_z[A4dp1_z (undef, nvariables (equations), nnodes (dg),
35- nnodes (dg), nnodes (dg) + 1 )
36- for _ in 1 : Threads. maxthreadid ()]
37- fstar3_R_threaded = A4dp1_z[A4dp1_z (undef, nvariables (equations), nnodes (dg),
38- nnodes (dg), nnodes (dg) + 1 )
39- for _ in 1 : Threads. maxthreadid ()]
19+ A4d = Array{uEltype, 4 }
20+ fstar1_L_threaded = A4d[A4d (undef, nvariables (equations),
21+ nnodes (dg) + 1 , nnodes (dg), nnodes (dg))
22+ for _ in 1 : Threads. maxthreadid ()]
23+ fstar1_R_threaded = A4d[A4d (undef, nvariables (equations),
24+ nnodes (dg) + 1 , nnodes (dg), nnodes (dg))
25+ for _ in 1 : Threads. maxthreadid ()]
26+ fstar2_L_threaded = A4d[A4d (undef, nvariables (equations),
27+ nnodes (dg), nnodes (dg) + 1 , nnodes (dg))
28+ for _ in 1 : Threads. maxthreadid ()]
29+ fstar2_R_threaded = A4d[A4d (undef, nvariables (equations),
30+ nnodes (dg), nnodes (dg) + 1 , nnodes (dg))
31+ for _ in 1 : Threads. maxthreadid ()]
32+ fstar3_L_threaded = A4d[A4d (undef, nvariables (equations),
33+ nnodes (dg), nnodes (dg), nnodes (dg) + 1 )
34+ for _ in 1 : Threads. maxthreadid ()]
35+ fstar3_R_threaded = A4d[A4d (undef, nvariables (equations),
36+ nnodes (dg), nnodes (dg), nnodes (dg) + 1 )
37+ for _ in 1 : Threads. maxthreadid ()]
4038
4139 return (; cache... , fstar1_L_threaded, fstar1_R_threaded,
4240 fstar2_L_threaded, fstar2_R_threaded, fstar3_L_threaded, fstar3_R_threaded)
@@ -46,27 +44,25 @@ function create_cache(mesh::Union{TreeMesh{3}, StructuredMesh{3}, P4estMesh{3},
4644 T8codeMesh{3 }}, equations,
4745 volume_integral:: VolumeIntegralPureLGLFiniteVolume , dg:: DG ,
4846 uEltype)
49- A4dp1_x = Array{uEltype, 4 }
50- A4dp1_y = Array{uEltype, 4 }
51- A4dp1_z = Array{uEltype, 4 }
52- fstar1_L_threaded = A4dp1_x[A4dp1_x (undef, nvariables (equations), nnodes (dg) + 1 ,
53- nnodes (dg), nnodes (dg))
54- for _ in 1 : Threads. maxthreadid ()]
55- fstar1_R_threaded = A4dp1_x[A4dp1_x (undef, nvariables (equations), nnodes (dg) + 1 ,
56- nnodes (dg), nnodes (dg))
57- for _ in 1 : Threads. maxthreadid ()]
58- fstar2_L_threaded = A4dp1_y[A4dp1_y (undef, nvariables (equations), nnodes (dg),
59- nnodes (dg) + 1 , nnodes (dg))
60- for _ in 1 : Threads. maxthreadid ()]
61- fstar2_R_threaded = A4dp1_y[A4dp1_y (undef, nvariables (equations), nnodes (dg),
62- nnodes (dg) + 1 , nnodes (dg))
63- for _ in 1 : Threads. maxthreadid ()]
64- fstar3_L_threaded = A4dp1_z[A4dp1_z (undef, nvariables (equations), nnodes (dg),
65- nnodes (dg), nnodes (dg) + 1 )
66- for _ in 1 : Threads. maxthreadid ()]
67- fstar3_R_threaded = A4dp1_z[A4dp1_z (undef, nvariables (equations), nnodes (dg),
68- nnodes (dg), nnodes (dg) + 1 )
69- for _ in 1 : Threads. maxthreadid ()]
47+ A4d = Array{uEltype, 4 }
48+ fstar1_L_threaded = A4d[A4d (undef, nvariables (equations), nnodes (dg) + 1 ,
49+ nnodes (dg), nnodes (dg))
50+ for _ in 1 : Threads. maxthreadid ()]
51+ fstar1_R_threaded = A4d[A4d (undef, nvariables (equations), nnodes (dg) + 1 ,
52+ nnodes (dg), nnodes (dg))
53+ for _ in 1 : Threads. maxthreadid ()]
54+ fstar2_L_threaded = A4d[A4d (undef, nvariables (equations), nnodes (dg),
55+ nnodes (dg) + 1 , nnodes (dg))
56+ for _ in 1 : Threads. maxthreadid ()]
57+ fstar2_R_threaded = A4d[A4d (undef, nvariables (equations), nnodes (dg),
58+ nnodes (dg) + 1 , nnodes (dg))
59+ for _ in 1 : Threads. maxthreadid ()]
60+ fstar3_L_threaded = A4d[A4d (undef, nvariables (equations), nnodes (dg),
61+ nnodes (dg), nnodes (dg) + 1 )
62+ for _ in 1 : Threads. maxthreadid ()]
63+ fstar3_R_threaded = A4d[A4d (undef, nvariables (equations), nnodes (dg),
64+ nnodes (dg), nnodes (dg) + 1 )
65+ for _ in 1 : Threads. maxthreadid ()]
7066
7167 return (; fstar1_L_threaded, fstar1_R_threaded, fstar2_L_threaded,
7268 fstar2_R_threaded,
0 commit comments