Hybrid-PIC: test RZ per-species field scaling - #2
Open
tomzhu0225 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the compact RZ regression requested in BLAST-WarpX#7103.
The test runs one step on a 16x8 RZ mesh split across two MPI ranks. It activates the per-species deposition path with
hybrid_resistive_dragand a Te-only per-species resistivity parser, then compareshybrid_rho_species_sum_fpagainst an independent physicalrho_ionsdiagnostic. The analysis checks the median, maximum, and axis relative errors.This catches the original raw-radial-deposit bug: before the fix the median error was 0.97055 and the axis error was 0.93981; on the current branch all three errors are zero to printed double precision. No checksum baseline is needed.
Tested locally with:
ctest --test-dir build_rz_pr7103 --output-on-failure -R '^test_rz_ohm_solver_resistive_drag_species_fields_picmi\.(run|analysis)$'Both tests pass in about 1.1 seconds total on two MPI ranks.