Skip to content

Commit

Permalink
Make the result of dt_geometric_factors in 1D consistent with other…
Browse files Browse the repository at this point in the history
… dimensions (#225)

* return a radius, not a diameter

* add comment
  • Loading branch information
majosm authored Mar 3, 2022
1 parent f7a9f47 commit 65a0a92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grudge/dt_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ def dt_geometric_factors(
)

if dcoll.dim == 1:
return freeze(cell_vols)
# Inscribed "circle" radius is half the cell size
return freeze(cell_vols/2)

dd_face = DOFDesc("all_faces", dd.discretization_tag)
face_discr = dcoll.discr_from_dd(dd_face)
Expand Down

0 comments on commit 65a0a92

Please sign in to comment.