Skip to content

[hvpic-k-devel] Dump infrastructure for (almost) all fields#123

Merged
nphtan merged 27 commits into
lanl:hybridVPIC-K-develfrom
aarontran:hyb_dump_fields_allvars
May 28, 2026
Merged

[hvpic-k-devel] Dump infrastructure for (almost) all fields#123
nphtan merged 27 commits into
lanl:hybridVPIC-K-develfrom
aarontran:hyb_dump_fields_allvars

Conversation

@aarontran
Copy link
Copy Markdown

This PR modifies dump infrastructure to handle all fields, using 64-bit masks, excepting struct-pad variables + vestigial material_id fields.

WARNING: this is a breaking change, user's translate scripts and decks may need to be updated with following two edits:

  1. Order of output fields has changed in binary dumps. User may need to modify translate scripts to skip over cbx0,cby0,cbz0,te0 fields, as done in commit 896784c. Why was change made? In src/vpic/dump_strategy.h, the list of flag_keys is re-ordered to exactly match field_t struct layout, for sanity's sake (less mental overhead when reading or debugging relevant code). I don't see any good reason, other than conservatism, for the prior ordering of dumped fields in flag_keys)

  2. Change char varlist[512] to char varlist[1024] in user decks, when requesting all or allvars or allfields dump, to accommodate a much longer list of descriptive field names. User will get segfaults otherwise.

aarontran added 25 commits May 21, 2026 15:14
for half-dt push, only need E field stencils
Non-NGP shape accumulates into ghosts;
copy local BC ghosts into adjacent live cells
(no reflection implemented yet, to match old CPU Hybrid-VPIC)
Send accumulated current/rho in ghosts to remote edges
Using Nigel's GPU-aware MPI interface, but no halo exchange yet
@nphtan nphtan added the enhancement New feature or request label May 28, 2026
@nphtan nphtan merged commit 92a6576 into lanl:hybridVPIC-K-devel May 28, 2026
1 check passed
@aarontran aarontran deleted the hyb_dump_fields_allvars branch May 28, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants