Skip to content

DMStag: set_values! from reused buffers, length(is), on_lower_side - #298

Merged
filoferra merged 1 commit into
JuliaParallel:mainfrom
filoferra:dmstag-mage-gaps
Sep 28, 2026
Merged

filoferra merged 1 commit into
JuliaParallel:mainfrom
filoferra:dmstag-mage-gaps

Conversation

@filoferra

Copy link
Copy Markdown
Collaborator

Four small additions for DMStag assembly code (all additive)

  • set_values! and zero_rows_local! pass view(buf, 1:n) to PETSc as the parent Vector and a count, so a reused scratch buffer allocates nothing
  • length(is) is ISGetSize, the global size, as length of a PetscVec
  • on_lower_side(loc, axis) says whether a location sits on the lower side of its element along an axis, without comparing against DMSTAG_* constants
  • the with_field_views! docstring shows two DMs nested, with one vector handed back mid-scope for local_to_local!

@filoferra
filoferra merged commit 4d5d621 into JuliaParallel:main Sep 28, 2026
5 checks passed
@filoferra
filoferra deleted the dmstag-mage-gaps branch September 28, 2026 16:48
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.

1 participant