-
Notifications
You must be signed in to change notification settings - Fork 231
More efficient PML BoxArray #2631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
a4ce15c
More efficient PML BoxArray
WeiqunZhang 4b6752e
Update Source/BoundaryConditions/PML.cpp
WeiqunZhang c1b511a
Apply suggestions from code review
WeiqunZhang 070f35a
Merge branch 'development' into pml_grids
WeiqunZhang 2999304
reset Python_wrappers benchmark
WeiqunZhang 1063dab
Merge branch 'development' into pml_grids
WeiqunZhang 9bf3f6c
Merge branch 'development' into pml_grids
WeiqunZhang 95abac1
Merge branch 'development' into pml_grids
WeiqunZhang d156028
fix the computation of sigmas for the new BoxArray
WeiqunZhang 0b1939c
Merge branch 'development' into pml_grids
WeiqunZhang fb2c715
Revert "reset Python_wrappers benchmark"
WeiqunZhang a0335eb
fix warning
WeiqunZhang 046130b
fix 1d
WeiqunZhang 13747eb
initialize to quiet NaN
WeiqunZhang 5b67892
Merge branch 'development' into pml_grids
WeiqunZhang 425cc51
Merge branch 'development' into pml_grids
WeiqunZhang 0e5cd17
Merge branch 'development' into weiqun_pml_grids
EZoni 4cfacf9
Reset Benchmark: pml_x_psatd
EZoni 1b31579
Reset Benchmark: LaserAccelerationMR
EZoni 0018393
Reset Benchmark: LaserOnFine
EZoni 6926240
Reset Benchmark: PlasmaAccelerationMR
EZoni b74be74
Reset Benchmark: RefinedInjection
EZoni 8d83686
Reset Benchmark: momentum-conserving-gather
EZoni 794585a
Reset Benchmark: subcyclingMR
EZoni 5db73e9
Reset Benchmark: Langmuir_multi_2d_MR
EZoni abc271a
Reset Benchmark: Langmuir_multi_2d_MR_psatd
EZoni eb8c0ec
Reset Benchmark: Python_LaserAccelerationMR
EZoni fcde666
Reset Benchmark: Python_wrappers
EZoni b828680
Reset Benchmark: pml_psatd_dive_divb_cleaning
EZoni 1cb1410
Remove an assertion. We will fix it later
WeiqunZhang d70b5f2
Reset Benchmark: Langmuir_multi_2d_MR_anisotropic
EZoni a67483a
Reset Benchmark: PEC_field_mr
EZoni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question to make sure I understand what is being done here (it wasn't added in this PR, but still I'd like to ask). My understanding is that this is the case where we want the PML to overlap with the last
ncellof the regular domain. Shouldn't we then addncell(i.e. grow by+ncell, instead of-ncell) to the low index and subtractncellfrom the high index (i.e. grow by-ncell, as already done here)? Ifncell = 10, the low index would have to be0instead of-10(so-10 + (+ncell) = -10 + (+10) = 0), such that the PML overlaps with the cells0:9of the regular domain rather than spanning the cells-10:-1outside of the domain. While when I readdomain0.growLo(idim, -ncell)it seems like we are lowering the low index even more. I guess I'm missing either the starting point or whatgrowLodoes precisely. Could you clarify this for me? Thanks!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
growLomeans growing in the direction that points to the lo (i.e., -inf) direction.