Skip to content

Commit

Permalink
Remove comments for reset_du! function in tests (#108)
Browse files Browse the repository at this point in the history
* Comments 1D

* Comments 2D

* Comments 3D
  • Loading branch information
huiyuxie authored Jan 7, 2025
1 parent 2a5cb3e commit b4c4d8f
Show file tree
Hide file tree
Showing 47 changed files with 0 additions and 188 deletions.
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/advection_basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/advection_extended.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/burgers_basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/burgers_rarefraction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/burgers_shock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/euler_blast_wave.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/euler_ec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/euler_shock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/euler_source_terms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/euler_source_terms_nonperiodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/eulermulti_ec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/eulermulti_es.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/eulerquasi_ec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/eulerquasi_source_terms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/hypdiff_harmonic_nonperiodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/hypdiff_nonperiodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/mhd_alfven_wave.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/mhd_ec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_1d/shallowwater_shock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/advection_basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/advection_mortar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/euler_blob_mortar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/euler_ec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/euler_shock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/euler_source_terms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/euler_source_terms_nonperiodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/eulermulti_ec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/eulermulti_es.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/hypdiff_nonperiodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/mhd_alfven_wave.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/mhd_alfven_wave_mortar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/mhd_shock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/shallowwater_ec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/shallowwater_source_terms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_2d/shawllowwater_source_terms_nonperiodic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
4 changes: 0 additions & 4 deletions test/tree_dgsem_3d/advection_basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ include("../test_macros.jl")
# du is initlaizaed as undefined, cannot test now

# Tests for semidiscretization process
# TrixiCUDA.reset_du!(du_gpu)
# Trixi.reset_du!(du, solver, cache)
# @test_approx (du_gpu, du)

Trixi.reset_du!(du, solver, cache)

TrixiCUDA.cuda_volume_integral!(du_gpu, u_gpu, mesh_gpu,
Expand Down
Loading

0 comments on commit b4c4d8f

Please sign in to comment.