Skip to content

Reduce excessive implicit particle suborbit warnings - #7219

Merged
JustinRayAngus merged 7 commits into
BLAST-WarpX:developmentfrom
JustinRayAngus:reduce_suborbit_warnings
Aug 28, 2026
Merged

Reduce excessive implicit particle suborbit warnings#7219
JustinRayAngus merged 7 commits into
BLAST-WarpX:developmentfrom
JustinRayAngus:reduce_suborbit_warnings

Conversation

@JustinRayAngus

@JustinRayAngus JustinRayAngus commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Some implicit time solvers issue a warning on every Evolve call when particles require suborbits. These warnings are accumulated by the warning manager and printed at the end of the simulation, potentially producing excessively long log messages.

This PR replaces those warnings with a runtime summary of suborbit statistics. At a user-specified step interval, it reports the cumulative number of particles requiring at least a user-specified number of suborbits.

Example log file with this PR:

STEP 150400 starts ...
--- INFO    : updating timestep to DT = 1.000000e-10

Suborbit particle statistics:
During steps 150301-150400, particles requiring 3 or more suborbits by species:
  electrons: 16
  total: 16

STEP 150400 ends. TIME = 7.791128241e-06 DT = 1e-10
Evolve time = 128.829982 s; This step = 0.400546763 s; Avg. per step = 0.3220749549 s

@JustinRayAngus
JustinRayAngus requested a review from dpgrote August 28, 2026 18:16
@JustinRayAngus JustinRayAngus added changes input scripts / defaults Changes the syntax or meaning of input scripts and/or defaults component: implicit solvers Anything related to implicit solvers labels Aug 28, 2026
@JustinRayAngus JustinRayAngus changed the title Reduce suborbit warnings Reduce excessive implicit particle suborbit warnings Aug 28, 2026

@dpgrote dpgrote left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good!

@JustinRayAngus
JustinRayAngus merged commit ad44e7f into BLAST-WarpX:development Aug 28, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changes input scripts / defaults Changes the syntax or meaning of input scripts and/or defaults component: implicit solvers Anything related to implicit solvers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants