Skip to content

Commit

Permalink
Add comment; correct dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Feb 20, 2024
1 parent f4511e7 commit 22527bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/callbacks_step/analysis_dg2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function calc_error_norms(func, u, t, analyzer,
end

function calc_error_norms(func, u, t, analyzer,
mesh, equations,
mesh::T8codeMesh, equations,
initial_condition, solver::FV, cache, cache_analysis)
# Set up data structures
l2_error = zero(func(get_node_vars(u, equations, solver, 1), equations))
Expand Down Expand Up @@ -337,7 +337,7 @@ function analyze(::typeof(entropy_timederivative), du, u, t,
end

function analyze(::typeof(entropy_timederivative), du, u, t,
mesh::T8codeMesh{2},
mesh::T8codeMesh,
equations, solver::FV, cache)
# Calculate ∫(∂S/∂u ⋅ ∂u/∂t)dΩ
integrate_via_indices(u, mesh, equations, solver, cache,
Expand Down
2 changes: 1 addition & 1 deletion src/meshes/t8code_mesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ mutable struct T8codeMesh{NDIMS, RealT <: Real, IsParallel, NDIMSP2, NNODES} <:
mesh.nodes = nodes
mesh.boundary_names = boundary_names
mesh.current_filename = current_filename
mesh.unsaved_changes = true # TODO
mesh.unsaved_changes = false # TODO: if set to `true`, the mesh will be saved to a mesh file.
mesh.tree_node_coordinates = tree_node_coordinates
mesh.max_number_faces = 4 # TODO: How to automatically adapt for other element types, e.g. triangles?

Expand Down

0 comments on commit 22527bd

Please sign in to comment.