Conversation
…mework/Trixi.jl into feature-t8code-curved-geometry
it refers to level of refinement in lat lon direction, not number of tree as in the p4est version
…mework/Trixi.jl into feature-t8code-curved-geometry
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
JuliaFormatter
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/callbacks_step/analysis.jl
Line 624 in d942046
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
Line 764 in d942046
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/containers.jl
Lines 308 to 309 in d942046
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d.jl
Line 457 in d942046
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d.jl
Lines 801 to 802 in d942046
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Line 264 in d942046
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Line 353 in d942046
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Line 504 in d942046
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Lines 512 to 513 in d942046
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Lines 517 to 519 in d942046
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Lines 523 to 524 in d942046
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Lines 528 to 530 in d942046
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Lines 534 to 535 in d942046
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Lines 539 to 541 in d942046
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Line 591 in d942046
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/test/test_t8code_3d.jl
Line 349 in d942046
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/test/test_t8code_3d.jl
Line 356 in d942046
| function initial_condition_taylor_green_vortex(x, t, equations::CompressibleEulerEquations3D) | ||
| A = 1.0 # magnitude of speed | ||
| Ms = 0.1 # maximum Mach number | ||
|
|
||
| rho = 1.0 | ||
| v1 = A * sin(x[1]) * cos(x[2]) * cos(x[3]) | ||
| v2 = -A * cos(x[1]) * sin(x[2]) * cos(x[3]) | ||
| v3 = 0.0 | ||
| p = (A / Ms)^2 * rho / equations.gamma # scaling to get Ms | ||
| p = p + 1.0/16.0 * A^2 * rho * (cos(2*x[1])*cos(2*x[3]) + 2*cos(2*x[2]) + 2*cos(2*x[1]) + cos(2*x[2])*cos(2*x[3])) | ||
|
|
||
| return prim2cons(SVector(rho, v1, v2, v3, p), equations) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| function initial_condition_taylor_green_vortex(x, t, equations::CompressibleEulerEquations3D) | |
| A = 1.0 # magnitude of speed | |
| Ms = 0.1 # maximum Mach number | |
| rho = 1.0 | |
| v1 = A * sin(x[1]) * cos(x[2]) * cos(x[3]) | |
| v2 = -A * cos(x[1]) * sin(x[2]) * cos(x[3]) | |
| v3 = 0.0 | |
| p = (A / Ms)^2 * rho / equations.gamma # scaling to get Ms | |
| p = p + 1.0/16.0 * A^2 * rho * (cos(2*x[1])*cos(2*x[3]) + 2*cos(2*x[2]) + 2*cos(2*x[1]) + cos(2*x[2])*cos(2*x[3])) | |
| return prim2cons(SVector(rho, v1, v2, v3, p), equations) | |
| function initial_condition_taylor_green_vortex(x, t, | |
| equations::CompressibleEulerEquations3D) | |
| A = 1.0 # magnitude of speed | |
| Ms = 0.1 # maximum Mach number | |
| rho = 1.0 | |
| v1 = A * sin(x[1]) * cos(x[2]) * cos(x[3]) | |
| v2 = -A * cos(x[1]) * sin(x[2]) * cos(x[3]) | |
| v3 = 0.0 | |
| p = (A / Ms)^2 * rho / equations.gamma # scaling to get Ms | |
| p = p + | |
| 1.0 / 16.0 * A^2 * rho * | |
| (cos(2 * x[1]) * cos(2 * x[3]) + 2 * cos(2 * x[2]) + 2 * cos(2 * x[1]) + | |
| cos(2 * x[2]) * cos(2 * x[3])) | |
| return prim2cons(SVector(rho, v1, v2, v3, p), equations) |
| solver = DGSEM(polydeg=3, surface_flux=flux_lax_friedrichs, | ||
| volume_integral=VolumeIntegralFluxDifferencing(flux_lax_friedrichs)) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| solver = DGSEM(polydeg=3, surface_flux=flux_lax_friedrichs, | |
| volume_integral=VolumeIntegralFluxDifferencing(flux_lax_friedrichs)) | |
| solver = DGSEM(polydeg = 3, surface_flux = flux_lax_friedrichs, | |
| volume_integral = VolumeIntegralFluxDifferencing(flux_lax_friedrichs)) |
| volume_integral=VolumeIntegralFluxDifferencing(flux_lax_friedrichs)) | ||
|
|
||
| coordinates_min = (-1.0, -1.0, -1.0) .* pi | ||
| coordinates_max = ( 1.0, 1.0, 1.0) .* pi |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| coordinates_max = ( 1.0, 1.0, 1.0) .* pi | |
| coordinates_max = (1.0, 1.0, 1.0) .* pi |
| mesh = P4estMesh(trees_per_dimension, polydeg=1, | ||
| coordinates_min=coordinates_min, coordinates_max=coordinates_max, | ||
| initial_refinement_level=2) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| mesh = P4estMesh(trees_per_dimension, polydeg=1, | |
| coordinates_min=coordinates_min, coordinates_max=coordinates_max, | |
| initial_refinement_level=2) | |
| mesh = P4estMesh(trees_per_dimension, polydeg = 1, | |
| coordinates_min = coordinates_min, coordinates_max = coordinates_max, | |
| initial_refinement_level = 2) |
|
|
||
| semi = SemidiscretizationHyperbolic(mesh, equations, initial_condition, solver) | ||
|
|
||
|
|
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| boundary_conditions_y_neg3 = BoundaryConditionCoupled(1, (Indexing.i_forward, Indexing.last), Float64, | ||
| coupling_function31) | ||
| boundary_conditions_y_pos3 = BoundaryConditionCoupled(1, (:i_forward, :begin), Float64, | ||
| boundary_conditions_y_pos3 = BoundaryConditionCoupled(1, (Indexing.i_forward, Indexing.first), Float64, |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| boundary_conditions_y_pos3 = BoundaryConditionCoupled(1, (Indexing.i_forward, Indexing.first), Float64, | |
| boundary_conditions_y_pos3 = BoundaryConditionCoupled(1, | |
| (Indexing.i_forward, Indexing.first), | |
| Float64, |
|
|
||
| # Define the coupling boundary conditions and the system it is coupled to. | ||
| boundary_conditions_x_neg4 = BoundaryConditionCoupled(3, (:end, :i_forward), Float64, | ||
| boundary_conditions_x_neg4 = BoundaryConditionCoupled(3, (Indexing.last, Indexing.i_forward), Float64, |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| boundary_conditions_x_neg4 = BoundaryConditionCoupled(3, (Indexing.last, Indexing.i_forward), Float64, | |
| boundary_conditions_x_neg4 = BoundaryConditionCoupled(3, | |
| (Indexing.last, Indexing.i_forward), | |
| Float64, |
| boundary_conditions_x_neg4 = BoundaryConditionCoupled(3, (Indexing.last, Indexing.i_forward), Float64, | ||
| coupling_function43) | ||
| boundary_conditions_x_pos4 = BoundaryConditionCoupled(3, (:begin, :i_forward), Float64, | ||
| boundary_conditions_x_pos4 = BoundaryConditionCoupled(3, (Indexing.first, Indexing.i_forward), Float64, |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| boundary_conditions_x_pos4 = BoundaryConditionCoupled(3, (Indexing.first, Indexing.i_forward), Float64, | |
| boundary_conditions_x_pos4 = BoundaryConditionCoupled(3, | |
| (Indexing.first, Indexing.i_forward), | |
| Float64, |
| boundary_conditions_x_pos4 = BoundaryConditionCoupled(3, (Indexing.first, Indexing.i_forward), Float64, | ||
| coupling_function43) | ||
| boundary_conditions_y_neg4 = BoundaryConditionCoupled(2, (:i_forward, :end), Float64, | ||
| boundary_conditions_y_neg4 = BoundaryConditionCoupled(2, (Indexing.i_forward, Indexing.last), Float64, |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| boundary_conditions_y_neg4 = BoundaryConditionCoupled(2, (Indexing.i_forward, Indexing.last), Float64, | |
| boundary_conditions_y_neg4 = BoundaryConditionCoupled(2, | |
| (Indexing.i_forward, Indexing.last), | |
| Float64, |
| boundary_conditions_y_neg4 = BoundaryConditionCoupled(2, (Indexing.i_forward, Indexing.last), Float64, | ||
| coupling_function42) | ||
| boundary_conditions_y_pos4 = BoundaryConditionCoupled(2, (:i_forward, :begin), Float64, | ||
| boundary_conditions_y_pos4 = BoundaryConditionCoupled(2, (Indexing.i_forward, Indexing.first), Float64, |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| boundary_conditions_y_pos4 = BoundaryConditionCoupled(2, (Indexing.i_forward, Indexing.first), Float64, | |
| boundary_conditions_y_pos4 = BoundaryConditionCoupled(2, | |
| (Indexing.i_forward, Indexing.first), | |
| Float64, |
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
JuliaFormatter
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/containers.jl
Lines 308 to 309 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d.jl
Line 457 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d.jl
Lines 801 to 802 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Line 264 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Line 353 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Line 504 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Lines 512 to 513 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Lines 517 to 519 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Lines 523 to 524 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Lines 528 to 530 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Lines 534 to 535 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Lines 539 to 541 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/src/solvers/dgsem_p4est/dg_3d_gpu.jl
Line 591 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/test/test_t8code_3d.jl
Line 349 in 9c857e4
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/test/test_t8code_3d.jl
Line 356 in 9c857e4
|
|
||
| function initial_condition_taylor_green_vortex(x, t, | ||
| equations::CompressibleEulerEquations3D) | ||
| A = 1.0 # magnitude of speed |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| A = 1.0 # magnitude of speed | |
| A = 1.0 # magnitude of speed |
| v1 = A * sin(x[1]) * cos(x[2]) * cos(x[3]) | ||
| v2 = -A * cos(x[1]) * sin(x[2]) * cos(x[3]) | ||
| v3 = 0.0 | ||
| p = (A / Ms)^2 * rho / equations.gamma # scaling to get Ms | ||
| p = p + 1.0/16.0 * A^2 * rho * (cos(2*x[1])*cos(2*x[3]) + | ||
| 2*cos(2*x[2]) + 2*cos(2*x[1]) + cos(2*x[2])*cos(2*x[3])) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| v1 = A * sin(x[1]) * cos(x[2]) * cos(x[3]) | |
| v2 = -A * cos(x[1]) * sin(x[2]) * cos(x[3]) | |
| v3 = 0.0 | |
| p = (A / Ms)^2 * rho / equations.gamma # scaling to get Ms | |
| p = p + 1.0/16.0 * A^2 * rho * (cos(2*x[1])*cos(2*x[3]) + | |
| 2*cos(2*x[2]) + 2*cos(2*x[1]) + cos(2*x[2])*cos(2*x[3])) | |
| v1 = A * sin(x[1]) * cos(x[2]) * cos(x[3]) | |
| v2 = -A * cos(x[1]) * sin(x[2]) * cos(x[3]) | |
| v3 = 0.0 | |
| p = (A / Ms)^2 * rho / equations.gamma # scaling to get Ms | |
| p = p + | |
| 1.0 / 16.0 * A^2 * rho * | |
| (cos(2 * x[1]) * cos(2 * x[3]) + | |
| 2 * cos(2 * x[2]) + 2 * cos(2 * x[1]) + cos(2 * x[2]) * cos(2 * x[3])) |
| solver = DGSEM(polydeg=5, surface_flux=volume_flux, | ||
| volume_integral=VolumeIntegralFluxDifferencing(volume_flux)) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| solver = DGSEM(polydeg=5, surface_flux=volume_flux, | |
| volume_integral=VolumeIntegralFluxDifferencing(volume_flux)) | |
| solver = DGSEM(polydeg = 5, surface_flux = volume_flux, | |
| volume_integral = VolumeIntegralFluxDifferencing(volume_flux)) |
| volume_integral=VolumeIntegralFluxDifferencing(volume_flux)) | ||
|
|
||
| coordinates_min = (-1.0, -1.0, -1.0) .* pi | ||
| coordinates_max = ( 1.0, 1.0, 1.0) .* pi |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| coordinates_max = ( 1.0, 1.0, 1.0) .* pi | |
| coordinates_max = (1.0, 1.0, 1.0) .* pi |
| mesh = P4estMesh(trees_per_dimension, polydeg=1, | ||
| coordinates_min=coordinates_min, coordinates_max=coordinates_max, | ||
| periodicity=true, initial_refinement_level=initial_refinement_level) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| mesh = P4estMesh(trees_per_dimension, polydeg=1, | |
| coordinates_min=coordinates_min, coordinates_max=coordinates_max, | |
| periodicity=true, initial_refinement_level=initial_refinement_level) | |
| mesh = P4estMesh(trees_per_dimension, polydeg = 1, | |
| coordinates_min = coordinates_min, coordinates_max = coordinates_max, | |
| periodicity = true, initial_refinement_level = initial_refinement_level) |
| x_neg = BoundaryConditionCoupled(1, (Indexing.last, Indexing.i_forward), Float64, | ||
| coupling_function), | ||
| x_pos = BoundaryConditionCoupled(1, (:begin, :i_forward), Float64, | ||
| x_pos = BoundaryConditionCoupled(1, (Indexing.first, Indexing.i_forward), Float64, |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| x_pos = BoundaryConditionCoupled(1, (Indexing.first, Indexing.i_forward), Float64, | |
| x_pos = BoundaryConditionCoupled(1, | |
| (Indexing.first, | |
| Indexing.i_forward), Float64, |
|
|
||
| coupling_function1 = (x, u, equations_other, equations_own) -> u | ||
| boundary_conditions1 = (x_neg = BoundaryConditionCoupled(2, (:end, :i_forward), Float64, | ||
| boundary_conditions1 = (x_neg = BoundaryConditionCoupled(2, (Indexing.last, Indexing.i_forward), Float64, |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| boundary_conditions1 = (x_neg = BoundaryConditionCoupled(2, (Indexing.last, Indexing.i_forward), Float64, | |
| boundary_conditions1 = (x_neg = BoundaryConditionCoupled(2, | |
| (Indexing.last, | |
| Indexing.i_forward), Float64, |
| boundary_conditions1 = (x_neg = BoundaryConditionCoupled(2, (Indexing.last, Indexing.i_forward), Float64, | ||
| coupling_function1), | ||
| x_pos = BoundaryConditionCoupled(2, (:begin, :i_forward), Float64, | ||
| x_pos = BoundaryConditionCoupled(2, (Indexing.first, Indexing.i_forward), Float64, |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| x_pos = BoundaryConditionCoupled(2, (Indexing.first, Indexing.i_forward), Float64, | |
| x_pos = BoundaryConditionCoupled(2, | |
| (Indexing.first, | |
| Indexing.i_forward), Float64, |
|
|
||
| coupling_function2 = (x, u, equations_other, equations_own) -> u | ||
| boundary_conditions2 = (x_neg = BoundaryConditionCoupled(1, (:end, :i_forward), Float64, | ||
| boundary_conditions2 = (x_neg = BoundaryConditionCoupled(1, (Indexing.last, Indexing.i_forward), Float64, |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| boundary_conditions2 = (x_neg = BoundaryConditionCoupled(1, (Indexing.last, Indexing.i_forward), Float64, | |
| boundary_conditions2 = (x_neg = BoundaryConditionCoupled(1, | |
| (Indexing.last, | |
| Indexing.i_forward), Float64, |
| boundary_conditions2 = (x_neg = BoundaryConditionCoupled(1, (Indexing.last, Indexing.i_forward), Float64, | ||
| coupling_function2), | ||
| x_pos = BoundaryConditionCoupled(1, (:begin, :i_forward), Float64, | ||
| x_pos = BoundaryConditionCoupled(1, (Indexing.first, Indexing.i_forward), Float64, |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| x_pos = BoundaryConditionCoupled(1, (Indexing.first, Indexing.i_forward), Float64, | |
| x_pos = BoundaryConditionCoupled(1, | |
| (Indexing.first, | |
| Indexing.i_forward), Float64, |
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
JuliaFormatter
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/test/test_t8code_3d.jl
Line 349 in fd5831e
[JuliaFormatter] reported by reviewdog 🐶
Trixi.jl/test/test_t8code_3d.jl
Line 356 in fd5831e
|
|
||
| tspan = (0.0, 5.0) | ||
| ode = semidiscretize(semi, tspan) | ||
| ode = semidiscretize(semi, tspan; adapt_to=CuArray) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| ode = semidiscretize(semi, tspan; adapt_to=CuArray) | |
| ode = semidiscretize(semi, tspan; adapt_to = CuArray) |
|
|
||
| # start simulation with tiny final time to trigger precompilation | ||
| duration_precompile = @elapsed trixi_include(elixir_path, | ||
| tspan=(0.0, 1e-14)) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| tspan=(0.0, 1e-14)) | |
| tspan = (0.0, 1e-14)) |
| maxiters=maxiters, | ||
| initial_refinement_level=initial_refinement_level, | ||
| run_profiler=run_profiler) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| maxiters=maxiters, | |
| initial_refinement_level=initial_refinement_level, | |
| run_profiler=run_profiler) | |
| maxiters = maxiters, | |
| initial_refinement_level = initial_refinement_level, | |
| run_profiler = run_profiler) |
| # reduce metrics per rank | ||
| open("metrics.out", "w") do io | ||
| for (key, _) in gathered_metrics[1] | ||
| println(io, key, ": ", mapreduce(x->x[key], min, gathered_metrics)) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| println(io, key, ": ", mapreduce(x->x[key], min, gathered_metrics)) | |
| println(io, key, ": ", mapreduce(x -> x[key], min, gathered_metrics)) |
|
|
||
| stepsize_callback = StepsizeCallback(cfl=0.1) | ||
|
|
||
| performance_callback = PerformanceDataCallback(interval=5) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| performance_callback = PerformanceDataCallback(interval=5) | |
| performance_callback = PerformanceDataCallback(interval = 5) |
| performance_callback, | ||
| stepsize_callback) | ||
|
|
||
|
|
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| integrator = init(ode, CarpenterKennedy2N54(williamson_condition=false), | ||
| dt=1.0, | ||
| save_everystep=false, callback=callbacks, | ||
| maxiters=maxiters, verbose=false) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| integrator = init(ode, CarpenterKennedy2N54(williamson_condition=false), | |
| dt=1.0, | |
| save_everystep=false, callback=callbacks, | |
| maxiters=maxiters, verbose=false) | |
| integrator = init(ode, CarpenterKennedy2N54(williamson_condition = false), | |
| dt = 1.0, | |
| save_everystep = false, callback = callbacks, | |
| maxiters = maxiters, verbose = false) |
|
|
||
| function initial_condition_taylor_green_vortex(x, t, | ||
| equations::CompressibleEulerEquations3D) | ||
| A = 1.0 # magnitude of speed |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| A = 1.0 # magnitude of speed | |
| A = 1.0 # magnitude of speed |
| v1 = A * sin(x[1]) * cos(x[2]) * cos(x[3]) | ||
| v2 = -A * cos(x[1]) * sin(x[2]) * cos(x[3]) | ||
| v3 = 0.0 | ||
| p = (A / Ms)^2 * rho / equations.gamma # scaling to get Ms | ||
| p = p + 1.0/16.0 * A^2 * rho * (cos(2*x[1])*cos(2*x[3]) + | ||
| 2*cos(2*x[2]) + 2*cos(2*x[1]) + cos(2*x[2])*cos(2*x[3])) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| v1 = A * sin(x[1]) * cos(x[2]) * cos(x[3]) | |
| v2 = -A * cos(x[1]) * sin(x[2]) * cos(x[3]) | |
| v3 = 0.0 | |
| p = (A / Ms)^2 * rho / equations.gamma # scaling to get Ms | |
| p = p + 1.0/16.0 * A^2 * rho * (cos(2*x[1])*cos(2*x[3]) + | |
| 2*cos(2*x[2]) + 2*cos(2*x[1]) + cos(2*x[2])*cos(2*x[3])) | |
| v1 = A * sin(x[1]) * cos(x[2]) * cos(x[3]) | |
| v2 = -A * cos(x[1]) * sin(x[2]) * cos(x[3]) | |
| v3 = 0.0 | |
| p = (A / Ms)^2 * rho / equations.gamma # scaling to get Ms | |
| p = p + | |
| 1.0 / 16.0 * A^2 * rho * | |
| (cos(2 * x[1]) * cos(2 * x[3]) + | |
| 2 * cos(2 * x[2]) + 2 * cos(2 * x[1]) + cos(2 * x[2]) * cos(2 * x[3])) |
| solver = DGSEM(polydeg=3, surface_flux=surface_flux, | ||
| volume_integral=VolumeIntegralFluxDifferencing(volume_flux)) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| solver = DGSEM(polydeg=3, surface_flux=surface_flux, | |
| volume_integral=VolumeIntegralFluxDifferencing(volume_flux)) | |
| solver = DGSEM(polydeg = 3, surface_flux = surface_flux, | |
| volume_integral = VolumeIntegralFluxDifferencing(volume_flux)) |
| volume_integral=VolumeIntegralFluxDifferencing(volume_flux)) | ||
|
|
||
| coordinates_min = (-1.0, -1.0, -1.0) .* pi | ||
| coordinates_max = ( 1.0, 1.0, 1.0) .* pi |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| coordinates_max = ( 1.0, 1.0, 1.0) .* pi | |
| coordinates_max = (1.0, 1.0, 1.0) .* pi |
| mesh = P4estMesh(trees_per_dimension, polydeg=3, | ||
| coordinates_min=coordinates_min, coordinates_max=coordinates_max, | ||
| periodicity=true, initial_refinement_level=initial_refinement_level) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| mesh = P4estMesh(trees_per_dimension, polydeg=3, | |
| coordinates_min=coordinates_min, coordinates_max=coordinates_max, | |
| periodicity=true, initial_refinement_level=initial_refinement_level) | |
| mesh = P4estMesh(trees_per_dimension, polydeg = 3, | |
| coordinates_min = coordinates_min, coordinates_max = coordinates_max, | |
| periodicity = true, initial_refinement_level = initial_refinement_level) |
| integrator = init(ode, CarpenterKennedy2N54(williamson_condition=false), | ||
| dt=1.0, | ||
| save_everystep=false, callback=callbacks) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| integrator = init(ode, CarpenterKennedy2N54(williamson_condition=false), | |
| dt=1.0, | |
| save_everystep=false, callback=callbacks) | |
| integrator = init(ode, CarpenterKennedy2N54(williamson_condition = false), | |
| dt = 1.0, | |
| save_everystep = false, callback = callbacks) |
|
|
||
| Trixi.calc_volume_integral!(du_ref, u, mesh, Trixi.False(), equations, solver.volume_integral, solver, cache) | ||
| Trixi.calc_volume_integral!(du_new, u, mesh, Trixi.False(), equations, solver.volume_integral, solver, cache) |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| Trixi.calc_volume_integral!(du_ref, u, mesh, Trixi.False(), equations, solver.volume_integral, solver, cache) | |
| Trixi.calc_volume_integral!(du_new, u, mesh, Trixi.False(), equations, solver.volume_integral, solver, cache) | |
| Trixi.calc_volume_integral!(du_ref, u, mesh, Trixi.False(), equations, | |
| solver.volume_integral, solver, cache) | |
| Trixi.calc_volume_integral!(du_new, u, mesh, Trixi.False(), equations, | |
| solver.volume_integral, solver, cache) |
| Trixi.calc_volume_integral!(du_new, u, mesh, Trixi.False(), equations, solver.volume_integral, solver, cache) | ||
|
|
||
| if all(du_ref .≈ du_new) | ||
| println("The experimental version is corrrect.") |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| println("The experimental version is corrrect.") | |
| println("The experimental version is corrrect.") |
| if all(du_ref .≈ du_new) | ||
| println("The experimental version is corrrect.") | ||
| else | ||
| println("There is a bug in the experimental version.") |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| println("There is a bug in the experimental version.") | |
| println("There is a bug in the experimental version.") |
| println("There is a bug in the experimental version.") | ||
| end | ||
|
|
||
| finalize(mesh) No newline at end of file |
There was a problem hiding this comment.
[JuliaFormatter] reported by reviewdog 🐶
| finalize(mesh) | |
| finalize(mesh) |
Very rough summary:
Features
P4estMesh, except AMR andnonconservative_terms::TrueImportant changes
Adapt.jl,adapt_tofor several typesAbstractHeterogeneousContainer:Trixi.jl/src/auxiliary/containers.jl
Lines 318 to 329 in 33903d9
VecOfArrayTrixi.jl/src/auxiliary/vector_of_arrays.jl
Lines 8 to 13 in 33903d9
Trixi.jl/src/solvers/dgsem_p4est/dg_parallel.jl
Lines 8 to 19 in 33903d9
Trixi.Indexingmodule instead of symbolsTrixi.jl/src/solvers/dg.jl
Lines 755 to 778 in 33903d9
Todos
Trixi.jl/src/solvers/dgsem_p4est/containers_parallel.jl
Line 230 in 33903d9
Trixi.jl/src/solvers/dgsem_p4est/dg_parallel.jl
Line 319 in 33903d9