Usage of ndims(mesh)
at many avoidable places
#2080
Labels
consistency
Make Michael happy
discussion
low-priority
refactoring
Refactoring code without functional changes
We often dispatch functions based on the spatial dimensionality of the mesh, see for instance
Trixi.jl/src/callbacks_stage/positivity_zhang_shu_dg1d.jl
Lines 8 to 9 in 288d41d
Nevetheless, in these functions the dimensionality of the mesh is still often queried:
Trixi.jl/src/callbacks_stage/positivity_zhang_shu_dg1d.jl
Line 30 in 288d41d
While the overhead for this is hopefully negligible due to optimizations, this is (in my opinion) bad style, as this code suggests some variability in the method which is not there.
The text was updated successfully, but these errors were encountered: