Skip to content
Snippets Groups Projects
Unverified Commit 65a0a921 authored by Matt Smith's avatar Matt Smith Committed by GitHub
Browse files

Make the result of `dt_geometric_factors` in 1D consistent with other dimensions (#225)

* return a radius, not a diameter

* add comment
parent f7a9f47d
No related branches found
No related tags found
No related merge requests found
Pipeline #270007 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment