Skip to content

Particles: add escaped particle TSV output - #36

Merged
lwJi merged 1 commit into
mainfrom
escaped-particle-tsv-output
Mar 12, 2026
Merged

Particles: add escaped particle TSV output#36
lwJi merged 1 commit into
mainfrom
escaped-particle-tsv-output

Conversation

@lwJi

@lwJi lwJi commented Mar 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add out_escaped_tsv boolean parameter to capture particles leaving the domain to a cumulative ptcl_escaped.tsv file before Redistribute() destroys them
  • Uses the existing sequential-barrier MPI write pattern for correct parallel output
  • Enable in TestNuPcsArdBH test with reference output for regression testing

Test plan

  • Build succeeds (./agent_scripts/build.sh)
  • All tests pass including new reference output (./agent_scripts/test.sh)
  • Manual verification: escaped particle positions are outside domain bounds
  • Manual verification: file grows across iterations (append works)
  • Manual verification: surviving + escaped particles equals initial count

Capture particles leaving the computational domain to a cumulative
ptcl_escaped.tsv file before Redistribute() destroys them. Controlled
by the new out_escaped_tsv boolean parameter. Enable in TestNuPcsArdBH
test with reference output for regression testing.
@lwJi
lwJi merged commit 8d9cf54 into main Mar 12, 2026
2 checks passed
@lwJi
lwJi deleted the escaped-particle-tsv-output branch March 12, 2026 01:58
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