From 0b41d3251f8c67fd1edcd215ee5ad2dafa593005 Mon Sep 17 00:00:00 2001 From: Huiyu Xie Date: Mon, 9 Dec 2024 16:22:02 -1000 Subject: [PATCH] Small changes regarding variable name on tests (#88) * Fix 1D * Fix 2D * Fix 3D * Minor change --- README.md | 2 +- test/tree_dgsem_1d/advection_basic.jl | 4 ++-- test/tree_dgsem_1d/advection_extended.jl | 4 ++-- test/tree_dgsem_1d/burgers_basic.jl | 4 ++-- test/tree_dgsem_1d/burgers_rarefraction.jl | 4 ++-- test/tree_dgsem_1d/burgers_shock.jl | 4 ++-- test/tree_dgsem_1d/euler_blast_wave.jl | 4 ++-- test/tree_dgsem_1d/euler_ec.jl | 4 ++-- test/tree_dgsem_1d/euler_shock.jl | 4 ++-- test/tree_dgsem_1d/euler_source_terms.jl | 4 ++-- test/tree_dgsem_1d/euler_source_terms_nonperiodic.jl | 4 ++-- test/tree_dgsem_1d/eulermulti_ec.jl | 4 ++-- test/tree_dgsem_1d/eulermulti_es.jl | 4 ++-- test/tree_dgsem_1d/eulerquasi_ec.jl | 4 ++-- test/tree_dgsem_1d/eulerquasi_source_terms.jl | 4 ++-- test/tree_dgsem_1d/hypdiff_harmonic_nonperiodic.jl | 4 ++-- test/tree_dgsem_1d/hypdiff_nonperiodic.jl | 4 ++-- test/tree_dgsem_1d/mhd_alfven_wave.jl | 4 ++-- test/tree_dgsem_1d/mhd_ec.jl | 4 ++-- test/tree_dgsem_1d/shallowwater_shock.jl | 4 ++-- test/tree_dgsem_2d/advection_basic.jl | 4 ++-- test/tree_dgsem_2d/advection_mortar.jl | 4 ++-- test/tree_dgsem_2d/euler_blob_mortar.jl | 4 ++-- test/tree_dgsem_2d/euler_shock.jl | 4 ++-- test/tree_dgsem_2d/euler_source_terms.jl | 4 ++-- test/tree_dgsem_2d/euler_source_terms_nonperiodic.jl | 4 ++-- test/tree_dgsem_2d/eulermulti_ec.jl | 4 ++-- test/tree_dgsem_2d/eulermulti_es.jl | 4 ++-- test/tree_dgsem_2d/hypdiff_nonperiodic.jl | 4 ++-- test/tree_dgsem_2d/mhd_alfven_wave.jl | 4 ++-- test/tree_dgsem_2d/mhd_alfven_wave_mortar.jl | 4 ++-- test/tree_dgsem_2d/mhd_shock.jl | 4 ++-- test/tree_dgsem_2d/shallowwater_ec.jl | 4 ++-- test/tree_dgsem_2d/shallowwater_source_terms.jl | 4 ++-- test/tree_dgsem_2d/shawllowwater_source_terms_nonperiodic.jl | 4 ++-- test/tree_dgsem_3d/advection_basic.jl | 4 ++-- test/tree_dgsem_3d/advection_mortar.jl | 4 ++-- test/tree_dgsem_3d/euler_convergence.jl | 4 ++-- test/tree_dgsem_3d/euler_ec.jl | 4 ++-- test/tree_dgsem_3d/euler_mortar.jl | 4 ++-- test/tree_dgsem_3d/euler_shock.jl | 4 ++-- test/tree_dgsem_3d/euler_source_terms.jl | 4 ++-- test/tree_dgsem_3d/hypdiff_nonperiodic.jl | 4 ++-- test/tree_dgsem_3d/mhd_alfven_wave.jl | 4 ++-- test/tree_dgsem_3d/mhd_alfven_wave_mortar.jl | 4 ++-- test/tree_dgsem_3d/mhd_ec.jl | 4 ++-- test/tree_dgsem_3d/mhd_shock.jl | 4 ++-- 47 files changed, 93 insertions(+), 93 deletions(-) diff --git a/README.md b/README.md index 1632bdf..fe47c39 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Our current focus is on the semidiscretization of PDEs. The table below shows th | `DGMultiMesh` | 1D, 2D, 3D | `DGMulti` | 🟡 Planned | # Example of PDE Semidiscretization on GPU -Let's take a look at a simple example to see how to use **TrixiCUDA.jl** to run the simulation on the GPU (now only CUDA-compatible). +Let's take a look at a simple example to see how to use TrixiCUDA.jl to run the simulation on the GPU (now only CUDA-compatible). ```julia # Take 1D linear advection equation as an example diff --git a/test/tree_dgsem_1d/advection_basic.jl b/test/tree_dgsem_1d/advection_basic.jl index c9fd491..bb6d033 100644 --- a/test/tree_dgsem_1d/advection_basic.jl +++ b/test/tree_dgsem_1d/advection_basic.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_1d/advection_extended.jl b/test/tree_dgsem_1d/advection_extended.jl index 91fa26d..ad4b286 100644 --- a/test/tree_dgsem_1d/advection_extended.jl +++ b/test/tree_dgsem_1d/advection_extended.jl @@ -28,7 +28,7 @@ include("../test_macros.jl") semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver, boundary_conditions = boundary_conditions) - tspan = (0.0, 1.0) + tspan = tspan_gpu = (0.0, 1.0) t = t_gpu = 0.0 # Semi on CPU @@ -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) diff --git a/test/tree_dgsem_1d/burgers_basic.jl b/test/tree_dgsem_1d/burgers_basic.jl index a02e03d..5c2196d 100644 --- a/test/tree_dgsem_1d/burgers_basic.jl +++ b/test/tree_dgsem_1d/burgers_basic.jl @@ -23,7 +23,7 @@ include("../test_macros.jl") semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver, source_terms = source_terms_convergence_test) - tspan = (0.0, 2.0) + tspan = tspan_gpu = (0.0, 2.0) t = t_gpu = 0.0 # Semi on CPU @@ -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) diff --git a/test/tree_dgsem_1d/burgers_rarefraction.jl b/test/tree_dgsem_1d/burgers_rarefraction.jl index 8fea555..0fa2ce1 100644 --- a/test/tree_dgsem_1d/burgers_rarefraction.jl +++ b/test/tree_dgsem_1d/burgers_rarefraction.jl @@ -61,7 +61,7 @@ include("../test_macros.jl") semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver, boundary_conditions = boundary_conditions) - tspan = (0.0, 0.2) + tspan = tspan_gpu = (0.0, 0.2) t = t_gpu = 0.0 # Semi on CPU @@ -81,7 +81,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) diff --git a/test/tree_dgsem_1d/burgers_shock.jl b/test/tree_dgsem_1d/burgers_shock.jl index 416a031..538299a 100644 --- a/test/tree_dgsem_1d/burgers_shock.jl +++ b/test/tree_dgsem_1d/burgers_shock.jl @@ -62,7 +62,7 @@ include("../test_macros.jl") semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver, boundary_conditions = boundary_conditions) - tspan = (0.0, 0.2) + tspan = tspan_gpu = (0.0, 0.2) t = t_gpu = 0.0 # Semi on CPU @@ -82,7 +82,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) diff --git a/test/tree_dgsem_1d/euler_blast_wave.jl b/test/tree_dgsem_1d/euler_blast_wave.jl index 505422e..ef314e8 100644 --- a/test/tree_dgsem_1d/euler_blast_wave.jl +++ b/test/tree_dgsem_1d/euler_blast_wave.jl @@ -46,7 +46,7 @@ include("../test_macros.jl") semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver) semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver) - tspan = (0.0, 12.5) + tspan = tspan_gpu = (0.0, 12.5) t = t_gpu = 0.0 # Semi on CPU @@ -66,7 +66,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) diff --git a/test/tree_dgsem_1d/euler_ec.jl b/test/tree_dgsem_1d/euler_ec.jl index edc1b93..a1fede3 100644 --- a/test/tree_dgsem_1d/euler_ec.jl +++ b/test/tree_dgsem_1d/euler_ec.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_1d/euler_shock.jl b/test/tree_dgsem_1d/euler_shock.jl index 0be0578..ed2fae6 100644 --- a/test/tree_dgsem_1d/euler_shock.jl +++ b/test/tree_dgsem_1d/euler_shock.jl @@ -32,7 +32,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 @@ -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) diff --git a/test/tree_dgsem_1d/euler_source_terms.jl b/test/tree_dgsem_1d/euler_source_terms.jl index 5dac728..5b3a76f 100644 --- a/test/tree_dgsem_1d/euler_source_terms.jl +++ b/test/tree_dgsem_1d/euler_source_terms.jl @@ -23,7 +23,7 @@ include("../test_macros.jl") semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver, source_terms = source_terms_convergence_test) - tspan = (0.0, 2.0) + tspan = tspan_gpu = (0.0, 2.0) t = t_gpu = 0.0 # Semi on CPU @@ -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) diff --git a/test/tree_dgsem_1d/euler_source_terms_nonperiodic.jl b/test/tree_dgsem_1d/euler_source_terms_nonperiodic.jl index e7702cf..6ea5797 100644 --- a/test/tree_dgsem_1d/euler_source_terms_nonperiodic.jl +++ b/test/tree_dgsem_1d/euler_source_terms_nonperiodic.jl @@ -30,7 +30,7 @@ include("../test_macros.jl") source_terms = source_terms_convergence_test, boundary_conditions = boundary_conditions) - tspan = (0.0, 2.0) + tspan = tspan_gpu = (0.0, 2.0) t = t_gpu = 0.0 # Semi on CPU @@ -50,7 +50,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) diff --git a/test/tree_dgsem_1d/eulermulti_ec.jl b/test/tree_dgsem_1d/eulermulti_ec.jl index 62e8d98..6846ff2 100644 --- a/test/tree_dgsem_1d/eulermulti_ec.jl +++ b/test/tree_dgsem_1d/eulermulti_ec.jl @@ -29,7 +29,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 @@ -49,7 +49,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) diff --git a/test/tree_dgsem_1d/eulermulti_es.jl b/test/tree_dgsem_1d/eulermulti_es.jl index d5ba4d3..6a23dfa 100644 --- a/test/tree_dgsem_1d/eulermulti_es.jl +++ b/test/tree_dgsem_1d/eulermulti_es.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_1d/eulerquasi_ec.jl b/test/tree_dgsem_1d/eulerquasi_ec.jl index a12e596..5cc65c6 100644 --- a/test/tree_dgsem_1d/eulerquasi_ec.jl +++ b/test/tree_dgsem_1d/eulerquasi_ec.jl @@ -33,7 +33,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 @@ -53,7 +53,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) diff --git a/test/tree_dgsem_1d/eulerquasi_source_terms.jl b/test/tree_dgsem_1d/eulerquasi_source_terms.jl index bc1f336..0af087d 100644 --- a/test/tree_dgsem_1d/eulerquasi_source_terms.jl +++ b/test/tree_dgsem_1d/eulerquasi_source_terms.jl @@ -26,7 +26,7 @@ include("../test_macros.jl") semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver, source_terms = source_terms_convergence_test) - tspan = (0.0, 2.0) + tspan = tspan_gpu = (0.0, 2.0) t = t_gpu = 0.0 # Semi on CPU @@ -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) diff --git a/test/tree_dgsem_1d/hypdiff_harmonic_nonperiodic.jl b/test/tree_dgsem_1d/hypdiff_harmonic_nonperiodic.jl index cf4acde..1a84977 100644 --- a/test/tree_dgsem_1d/hypdiff_harmonic_nonperiodic.jl +++ b/test/tree_dgsem_1d/hypdiff_harmonic_nonperiodic.jl @@ -42,7 +42,7 @@ include("../test_macros.jl") boundary_conditions = boundary_conditions, source_terms = source_terms_harmonic) - tspan = (0.0, 30.0) + tspan = tspan_gpu = (0.0, 30.0) t = t_gpu = 0.0 # Semi on CPU @@ -62,7 +62,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) diff --git a/test/tree_dgsem_1d/hypdiff_nonperiodic.jl b/test/tree_dgsem_1d/hypdiff_nonperiodic.jl index 3db78e5..2487b83 100644 --- a/test/tree_dgsem_1d/hypdiff_nonperiodic.jl +++ b/test/tree_dgsem_1d/hypdiff_nonperiodic.jl @@ -28,7 +28,7 @@ include("../test_macros.jl") boundary_conditions = boundary_conditions, source_terms = source_terms_poisson_nonperiodic) - tspan = (0.0, 5.0) + tspan = tspan_gpu = (0.0, 5.0) t = t_gpu = 0.0 # Semi on CPU @@ -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) diff --git a/test/tree_dgsem_1d/mhd_alfven_wave.jl b/test/tree_dgsem_1d/mhd_alfven_wave.jl index 6199bad..ff09d27 100644 --- a/test/tree_dgsem_1d/mhd_alfven_wave.jl +++ b/test/tree_dgsem_1d/mhd_alfven_wave.jl @@ -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, 2.0) + tspan = tspan_gpu = (0.0, 2.0) t = t_gpu = 0.0 # Semi on CPU @@ -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) diff --git a/test/tree_dgsem_1d/mhd_ec.jl b/test/tree_dgsem_1d/mhd_ec.jl index 8e984fb..21c150e 100644 --- a/test/tree_dgsem_1d/mhd_ec.jl +++ b/test/tree_dgsem_1d/mhd_ec.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_1d/shallowwater_shock.jl b/test/tree_dgsem_1d/shallowwater_shock.jl index 5062328..88c5b43 100644 --- a/test/tree_dgsem_1d/shallowwater_shock.jl +++ b/test/tree_dgsem_1d/shallowwater_shock.jl @@ -65,7 +65,7 @@ include("../test_macros.jl") semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver, boundary_conditions = boundary_condition) - tspan = (0.0, 3.0) + tspan = tspan_gpu = (0.0, 3.0) t = t_gpu = 0.0 # Semi on CPU @@ -85,7 +85,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) diff --git a/test/tree_dgsem_2d/advection_basic.jl b/test/tree_dgsem_2d/advection_basic.jl index 4e32a37..13355cb 100644 --- a/test/tree_dgsem_2d/advection_basic.jl +++ b/test/tree_dgsem_2d/advection_basic.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_2d/advection_mortar.jl b/test/tree_dgsem_2d/advection_mortar.jl index 48560ff..b94b387 100644 --- a/test/tree_dgsem_2d/advection_mortar.jl +++ b/test/tree_dgsem_2d/advection_mortar.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_2d/euler_blob_mortar.jl b/test/tree_dgsem_2d/euler_blob_mortar.jl index 5eec55b..32f068b 100644 --- a/test/tree_dgsem_2d/euler_blob_mortar.jl +++ b/test/tree_dgsem_2d/euler_blob_mortar.jl @@ -67,7 +67,7 @@ include("../test_macros.jl") semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver) semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver) - tspan = (0.0, 16.0) + tspan = tspan_gpu = (0.0, 16.0) t = t_gpu = 0.0 # Semi on CPU @@ -87,7 +87,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) diff --git a/test/tree_dgsem_2d/euler_shock.jl b/test/tree_dgsem_2d/euler_shock.jl index b169151..dfc76b3 100644 --- a/test/tree_dgsem_2d/euler_shock.jl +++ b/test/tree_dgsem_2d/euler_shock.jl @@ -32,7 +32,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 @@ -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) diff --git a/test/tree_dgsem_2d/euler_source_terms.jl b/test/tree_dgsem_2d/euler_source_terms.jl index c7ed8f1..f705d78 100644 --- a/test/tree_dgsem_2d/euler_source_terms.jl +++ b/test/tree_dgsem_2d/euler_source_terms.jl @@ -22,7 +22,7 @@ include("../test_macros.jl") semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver, source_terms = source_terms_convergence_test) - tspan = (0.0, 2.0) + tspan = tspan_gpu = (0.0, 2.0) t = t_gpu = 0.0 # Semi on CPU @@ -42,7 +42,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) diff --git a/test/tree_dgsem_2d/euler_source_terms_nonperiodic.jl b/test/tree_dgsem_2d/euler_source_terms_nonperiodic.jl index e8ed461..081b56b 100644 --- a/test/tree_dgsem_2d/euler_source_terms_nonperiodic.jl +++ b/test/tree_dgsem_2d/euler_source_terms_nonperiodic.jl @@ -32,7 +32,7 @@ include("../test_macros.jl") source_terms = source_terms_convergence_test, boundary_conditions = boundary_conditions) - tspan = (0.0, 2.0) + tspan = tspan_gpu = (0.0, 2.0) t = t_gpu = 0.0 # Semi on CPU @@ -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) diff --git a/test/tree_dgsem_2d/eulermulti_ec.jl b/test/tree_dgsem_2d/eulermulti_ec.jl index 2f1ba07..bbaf2d7 100644 --- a/test/tree_dgsem_2d/eulermulti_ec.jl +++ b/test/tree_dgsem_2d/eulermulti_ec.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_2d/eulermulti_es.jl b/test/tree_dgsem_2d/eulermulti_es.jl index 87c3de0..50ff540 100644 --- a/test/tree_dgsem_2d/eulermulti_es.jl +++ b/test/tree_dgsem_2d/eulermulti_es.jl @@ -29,7 +29,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 @@ -49,7 +49,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) diff --git a/test/tree_dgsem_2d/hypdiff_nonperiodic.jl b/test/tree_dgsem_2d/hypdiff_nonperiodic.jl index 6377deb..0cdd266 100644 --- a/test/tree_dgsem_2d/hypdiff_nonperiodic.jl +++ b/test/tree_dgsem_2d/hypdiff_nonperiodic.jl @@ -31,7 +31,7 @@ include("../test_macros.jl") boundary_conditions = boundary_conditions, source_terms = source_terms_poisson_nonperiodic) - tspan = (0.0, 5.0) + tspan = tspan_gpu = (0.0, 5.0) t = t_gpu = 0.0 # Semi on CPU @@ -51,7 +51,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) diff --git a/test/tree_dgsem_2d/mhd_alfven_wave.jl b/test/tree_dgsem_2d/mhd_alfven_wave.jl index c3bd46a..01b01fd 100644 --- a/test/tree_dgsem_2d/mhd_alfven_wave.jl +++ b/test/tree_dgsem_2d/mhd_alfven_wave.jl @@ -25,7 +25,7 @@ include("../test_macros.jl") semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver) semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver) - tspan = (0.0, 2.0) + tspan = tspan_gpu = (0.0, 2.0) t = t_gpu = 0.0 # Semi on CPU @@ -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) diff --git a/test/tree_dgsem_2d/mhd_alfven_wave_mortar.jl b/test/tree_dgsem_2d/mhd_alfven_wave_mortar.jl index 7a947c6..6087a5e 100644 --- a/test/tree_dgsem_2d/mhd_alfven_wave_mortar.jl +++ b/test/tree_dgsem_2d/mhd_alfven_wave_mortar.jl @@ -29,7 +29,7 @@ include("../test_macros.jl") semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver) semi_gpu = SemidiscretizationHyperbolicGPU(mesh, equations, initial_condition, solver) - tspan = (0.0, 2.0) + tspan = tspan_gpu = (0.0, 2.0) t = t_gpu = 0.0 # Semi on CPU @@ -49,7 +49,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) diff --git a/test/tree_dgsem_2d/mhd_shock.jl b/test/tree_dgsem_2d/mhd_shock.jl index daf4261..18ab3bb 100644 --- a/test/tree_dgsem_2d/mhd_shock.jl +++ b/test/tree_dgsem_2d/mhd_shock.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_2d/shallowwater_ec.jl b/test/tree_dgsem_2d/shallowwater_ec.jl index f6ff841..8e04659 100644 --- a/test/tree_dgsem_2d/shallowwater_ec.jl +++ b/test/tree_dgsem_2d/shallowwater_ec.jl @@ -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, 2.0) + tspan = tspan_gpu = (0.0, 2.0) t = t_gpu = 0.0 # Semi on CPU @@ -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) diff --git a/test/tree_dgsem_2d/shallowwater_source_terms.jl b/test/tree_dgsem_2d/shallowwater_source_terms.jl index e05a74f..cd2789f 100644 --- a/test/tree_dgsem_2d/shallowwater_source_terms.jl +++ b/test/tree_dgsem_2d/shallowwater_source_terms.jl @@ -27,7 +27,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 @@ -47,7 +47,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) diff --git a/test/tree_dgsem_2d/shawllowwater_source_terms_nonperiodic.jl b/test/tree_dgsem_2d/shawllowwater_source_terms_nonperiodic.jl index e8e42f0..311398a 100644 --- a/test/tree_dgsem_2d/shawllowwater_source_terms_nonperiodic.jl +++ b/test/tree_dgsem_2d/shawllowwater_source_terms_nonperiodic.jl @@ -31,7 +31,7 @@ include("../test_macros.jl") boundary_conditions = boundary_condition, 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 @@ -51,7 +51,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) diff --git a/test/tree_dgsem_3d/advection_basic.jl b/test/tree_dgsem_3d/advection_basic.jl index 69a3a73..5a4ff92 100644 --- a/test/tree_dgsem_3d/advection_basic.jl +++ b/test/tree_dgsem_3d/advection_basic.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_3d/advection_mortar.jl b/test/tree_dgsem_3d/advection_mortar.jl index c8bacbf..5456dd0 100644 --- a/test/tree_dgsem_3d/advection_mortar.jl +++ b/test/tree_dgsem_3d/advection_mortar.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_3d/euler_convergence.jl b/test/tree_dgsem_3d/euler_convergence.jl index 66f0cd7..e02905a 100644 --- a/test/tree_dgsem_3d/euler_convergence.jl +++ b/test/tree_dgsem_3d/euler_convergence.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_3d/euler_ec.jl b/test/tree_dgsem_3d/euler_ec.jl index 3f5e981..590e132 100644 --- a/test/tree_dgsem_3d/euler_ec.jl +++ b/test/tree_dgsem_3d/euler_ec.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_3d/euler_mortar.jl b/test/tree_dgsem_3d/euler_mortar.jl index 95189ea..2a99985 100644 --- a/test/tree_dgsem_3d/euler_mortar.jl +++ b/test/tree_dgsem_3d/euler_mortar.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_3d/euler_shock.jl b/test/tree_dgsem_3d/euler_shock.jl index 8444e47..9621638 100644 --- a/test/tree_dgsem_3d/euler_shock.jl +++ b/test/tree_dgsem_3d/euler_shock.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_3d/euler_source_terms.jl b/test/tree_dgsem_3d/euler_source_terms.jl index 817c1e1..82b84c0 100644 --- a/test/tree_dgsem_3d/euler_source_terms.jl +++ b/test/tree_dgsem_3d/euler_source_terms.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_3d/hypdiff_nonperiodic.jl b/test/tree_dgsem_3d/hypdiff_nonperiodic.jl index 74b9594..650c095 100644 --- a/test/tree_dgsem_3d/hypdiff_nonperiodic.jl +++ b/test/tree_dgsem_3d/hypdiff_nonperiodic.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_3d/mhd_alfven_wave.jl b/test/tree_dgsem_3d/mhd_alfven_wave.jl index 97e33a1..cb95eaa 100644 --- a/test/tree_dgsem_3d/mhd_alfven_wave.jl +++ b/test/tree_dgsem_3d/mhd_alfven_wave.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_3d/mhd_alfven_wave_mortar.jl b/test/tree_dgsem_3d/mhd_alfven_wave_mortar.jl index 7c2d253..29e8ce9 100644 --- a/test/tree_dgsem_3d/mhd_alfven_wave_mortar.jl +++ b/test/tree_dgsem_3d/mhd_alfven_wave_mortar.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_3d/mhd_ec.jl b/test/tree_dgsem_3d/mhd_ec.jl index e1bf1e8..adf7686 100644 --- a/test/tree_dgsem_3d/mhd_ec.jl +++ b/test/tree_dgsem_3d/mhd_ec.jl @@ -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 @@ -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) diff --git a/test/tree_dgsem_3d/mhd_shock.jl b/test/tree_dgsem_3d/mhd_shock.jl index 9cc4313..6042c25 100644 --- a/test/tree_dgsem_3d/mhd_shock.jl +++ b/test/tree_dgsem_3d/mhd_shock.jl @@ -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 @@ -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)