Skip to content

Conversation

chmerdon
Copy link
Member

I played around with github copilot and let it suggest improvements to docstrings, show function, documentation files and some constructors. After some edits, the results are a huge improvement, I think.

@chmerdon chmerdon requested a review from pjaap June 25, 2025 15:13
Copy link
Member

@pjaap pjaap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. The new doc strings seem reasonable to me. I can imagine that some details will be strange when I actually need the precise documentation of a certain method. But this fine tuning can be done later.

And see the one comment about the kwargs

if nodes == []
if cellwise
target = zeros(T, nvals * max_num_targets_per_source(source.FES.dofgrid[CellNodes]), num_cells(source.FES.dofgrid))
piecewise_nodevalues!(target, source.entries, source.FES, operator; continuous = continuous, source_offset = source.offset, abs = abs, kwargs...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The kwargs continuous and source_offset are omitted here. Is this intended?

Also in 2 lines below.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

piecewise_nodevalues! does not use continuous, but ommiting the source_offset is a mistake, this needs to be readded. Thanks for spotting this!

@chmerdon chmerdon merged commit 2c88ed8 into master Jun 26, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants