Skip to content

Commit

Permalink
Fix 3D
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyuxie committed Dec 10, 2024
1 parent 4422de3 commit 95d7c07
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions test/tree_dgsem_3d/advection_basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ include("../test_macros.jl")
semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition_convergence_test,
solver)

tspan = (0.0, 1.0)
tspan = tspan_gpu = (0.0, 1.0)
t = t_gpu = 0.0

# Semi on CPU
Expand All @@ -43,7 +43,7 @@ include("../test_macros.jl")
du = Trixi.wrap_array(du_ode, mesh, equations, solver, cache)

# ODE on GPU
ode_gpu = semidiscretizeGPU(semi_gpu, tspan)
ode_gpu = semidiscretizeGPU(semi_gpu, tspan_gpu)
u_gpu = copy(ode_gpu.u0)
du_gpu = similar(u_gpu)

Expand Down
4 changes: 2 additions & 2 deletions test/tree_dgsem_3d/advection_mortar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ include("../test_macros.jl")
semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver)
semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver)

tspan = (0.0, 5.0)
tspan = tspan_gpu = (0.0, 5.0)
t = t_gpu = 0.0

# Semi on CPU
Expand All @@ -46,7 +46,7 @@ include("../test_macros.jl")
du = Trixi.wrap_array(du_ode, mesh, equations, solver, cache)

# ODE on GPU
ode_gpu = semidiscretizeGPU(semi_gpu, tspan)
ode_gpu = semidiscretizeGPU(semi_gpu, tspan_gpu)
u_gpu = copy(ode_gpu.u0)
du_gpu = similar(u_gpu)

Expand Down
4 changes: 2 additions & 2 deletions test/tree_dgsem_3d/euler_convergence.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ include("../test_macros.jl")
semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver,
source_terms = source_terms_eoc_test_euler)

tspan = (0.0, 1.0)
tspan = tspan_gpu = (0.0, 1.0)
t = t_gpu = 0.0

# Semi on CPU
Expand All @@ -44,7 +44,7 @@ include("../test_macros.jl")
du = Trixi.wrap_array(du_ode, mesh, equations, solver, cache)

# ODE on GPU
ode_gpu = semidiscretizeGPU(semi_gpu, tspan)
ode_gpu = semidiscretizeGPU(semi_gpu, tspan_gpu)
u_gpu = copy(ode_gpu.u0)
du_gpu = similar(u_gpu)

Expand Down
4 changes: 2 additions & 2 deletions test/tree_dgsem_3d/euler_ec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ include("../test_macros.jl")
semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver)
semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver)

tspan = (0.0, 0.4)
tspan = tspan_gpu = (0.0, 0.4)
t = t_gpu = 0.0

# Semi on CPU
Expand All @@ -43,7 +43,7 @@ include("../test_macros.jl")
du = Trixi.wrap_array(du_ode, mesh, equations, solver, cache)

# ODE on GPU
ode_gpu = semidiscretizeGPU(semi_gpu, tspan)
ode_gpu = semidiscretizeGPU(semi_gpu, tspan_gpu)
u_gpu = copy(ode_gpu.u0)
du_gpu = similar(u_gpu)

Expand Down
4 changes: 2 additions & 2 deletions test/tree_dgsem_3d/euler_mortar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ include("../test_macros.jl")
semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver,
source_terms = source_terms_convergence_test)

tspan = (0.0, 1.0)
tspan = tspan_gpu = (0.0, 1.0)
t = t_gpu = 0.0

# Semi on CPU
Expand All @@ -45,7 +45,7 @@ include("../test_macros.jl")
du = Trixi.wrap_array(du_ode, mesh, equations, solver, cache)

# ODE on GPU
ode_gpu = semidiscretizeGPU(semi_gpu, tspan)
ode_gpu = semidiscretizeGPU(semi_gpu, tspan_gpu)
u_gpu = copy(ode_gpu.u0)
du_gpu = similar(u_gpu)

Expand Down
4 changes: 2 additions & 2 deletions test/tree_dgsem_3d/euler_shock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ include("../test_macros.jl")
semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver)
semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver)

tspan = (0.0, 0.4)
tspan = tspan_gpu = (0.0, 0.4)
t = t_gpu = 0.0

# Semi on CPU
Expand All @@ -54,7 +54,7 @@ include("../test_macros.jl")
du = Trixi.wrap_array(du_ode, mesh, equations, solver, cache)

# ODE on GPU
ode_gpu = semidiscretizeGPU(semi_gpu, tspan)
ode_gpu = semidiscretizeGPU(semi_gpu, tspan_gpu)
u_gpu = copy(ode_gpu.u0)
du_gpu = similar(u_gpu)

Expand Down
4 changes: 2 additions & 2 deletions test/tree_dgsem_3d/euler_source_terms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ include("../test_macros.jl")
semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver,
source_terms = source_terms_convergence_test)

tspan = (0.0, 5.0)
tspan = tspan_gpu = (0.0, 5.0)
t = t_gpu = 0.0

# Semi on CPU
Expand All @@ -44,7 +44,7 @@ include("../test_macros.jl")
du = Trixi.wrap_array(du_ode, mesh, equations, solver, cache)

# ODE on GPU
ode_gpu = semidiscretizeGPU(semi_gpu, tspan)
ode_gpu = semidiscretizeGPU(semi_gpu, tspan_gpu)
u_gpu = copy(ode_gpu.u0)
du_gpu = similar(u_gpu)

Expand Down
4 changes: 2 additions & 2 deletions test/tree_dgsem_3d/hypdiff_nonperiodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ include("../test_macros.jl")
source_terms = source_terms_poisson_nonperiodic,
boundary_conditions = boundary_conditions)

tspan = (0.0, 5.0)
tspan = tspan_gpu = (0.0, 5.0)
t = t_gpu = 0.0

# Semi on CPU
Expand All @@ -52,7 +52,7 @@ include("../test_macros.jl")
du = Trixi.wrap_array(du_ode, mesh, equations, solver, cache)

# ODE on GPU
ode_gpu = semidiscretizeGPU(semi_gpu, tspan)
ode_gpu = semidiscretizeGPU(semi_gpu, tspan_gpu)
u_gpu = copy(ode_gpu.u0)
du_gpu = similar(u_gpu)

Expand Down
4 changes: 2 additions & 2 deletions test/tree_dgsem_3d/mhd_alfven_wave.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ include("../test_macros.jl")
semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver)
semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver)

tspan = (0.0, 1.0)
tspan = tspan_gpu = (0.0, 1.0)
t = t_gpu = 0.0

# Semi on CPU
Expand All @@ -44,7 +44,7 @@ include("../test_macros.jl")
du = Trixi.wrap_array(du_ode, mesh, equations, solver, cache)

# ODE on GPU
ode_gpu = semidiscretizeGPU(semi_gpu, tspan)
ode_gpu = semidiscretizeGPU(semi_gpu, tspan_gpu)
u_gpu = copy(ode_gpu.u0)
du_gpu = similar(u_gpu)

Expand Down
4 changes: 2 additions & 2 deletions test/tree_dgsem_3d/mhd_alfven_wave_mortar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ include("../test_macros.jl")
semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver)
semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver)

tspan = (0.0, 1.0)
tspan = tspan_gpu = (0.0, 1.0)
t = t_gpu = 0.0

# Semi on CPU
Expand All @@ -48,7 +48,7 @@ include("../test_macros.jl")
du = Trixi.wrap_array(du_ode, mesh, equations, solver, cache)

# ODE on GPU
ode_gpu = semidiscretizeGPU(semi_gpu, tspan)
ode_gpu = semidiscretizeGPU(semi_gpu, tspan_gpu)
u_gpu = copy(ode_gpu.u0)
du_gpu = similar(u_gpu)

Expand Down
4 changes: 2 additions & 2 deletions test/tree_dgsem_3d/mhd_ec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ include("../test_macros.jl")
semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver)
semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver)

tspan = (0.0, 0.4)
tspan = tspan_gpu = (0.0, 0.4)
t = t_gpu = 0.0

# Semi on CPU
Expand All @@ -44,7 +44,7 @@ include("../test_macros.jl")
du = Trixi.wrap_array(du_ode, mesh, equations, solver, cache)

# ODE on GPU
ode_gpu = semidiscretizeGPU(semi_gpu, tspan)
ode_gpu = semidiscretizeGPU(semi_gpu, tspan_gpu)
u_gpu = copy(ode_gpu.u0)
du_gpu = similar(u_gpu)

Expand Down
4 changes: 2 additions & 2 deletions test/tree_dgsem_3d/mhd_shock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ include("../test_macros.jl")
semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver)
semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver)

tspan = (0.0, 1.0)
tspan = tspan_gpu = (0.0, 1.0)
t = t_gpu = 0.0

# Semi on CPU
Expand All @@ -55,7 +55,7 @@ include("../test_macros.jl")
du = Trixi.wrap_array(du_ode, mesh, equations, solver, cache)

# ODE on GPU
ode_gpu = semidiscretizeGPU(semi_gpu, tspan)
ode_gpu = semidiscretizeGPU(semi_gpu, tspan_gpu)
u_gpu = copy(ode_gpu.u0)
du_gpu = similar(u_gpu)

Expand Down

0 comments on commit 95d7c07

Please sign in to comment.