Skip to content

Commit

Permalink
Adapt ndofs
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Jan 3, 2025
1 parent d95def6 commit 5361b62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions examples/t8code_2d_fv/elixir_advection_basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ GC.enable(false)

element_class = :quad
mesh = T8codeMesh(trees_per_dimension, element_class,
# mapping = Trixi.trixi_t8_mapping_c(mapping_coordinates),
# Plan is to use either
coordinates_max = coordinates_max, coordinates_min = coordinates_min,
# or at least
# mapping = mapping_coordinates,
initial_refinement_level = 6)

Expand Down
2 changes: 1 addition & 1 deletion src/solvers/fv_t8code/fv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Base.summary(io::IO, solver::FV) = print(io, "FV(order=$(solver.order))")

@inline Base.real(solver::FV{RealT}) where {RealT} = RealT

@inline ndofs(mesh, solver::FV, cache) = ncells(mesh)
@inline ndofs(mesh, solver::FV, cache) = nelements(mesh, solver, cache)

@inline nelements(mesh::T8codeMesh, solver::FV, cache) = ncells(mesh)
@inline function ndofsglobal(mesh, solver::FV, cache)
Expand Down

0 comments on commit 5361b62

Please sign in to comment.