-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DSMC: make the check of the number of processes more robust (#5515)
The previous code was brittle because it was not using `AMREX_ALWAYS_ASSERT_WITH_MESSAGE` (which indeed cannot be used inside a GPU kernel. In practice, a user could specify e.g. 10 scattering processes and not get an error. The new code checks the number of processes before calling the GPU kernel, by using `AMREX_ALWAYS_ASSERT_WITH_MESSAGE`. --------- Co-authored-by: Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com>
- Loading branch information
1 parent
2ea2dd8
commit 2cdcb77
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 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