Skip to content

Commit 13cd071

Browse files
Add error message for non-supported scattering processes in DSMC (#6236)
Excitation and forward scattering is not yet supported in DSMC but currently these processes do not result in sensible error messages. Addresses #6229. Signed-off-by: roelof-groenewald <[email protected]>
1 parent 5b0644d commit 13cd071

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/Particles/Collision/BinaryCollision/DSMC/DSMCFunc.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ DSMCFunc::DSMCFunc (
5353

5454
ScatteringProcess process(scattering_process, cross_section_file, energy);
5555

56+
WARPX_ALWAYS_ASSERT_WITH_MESSAGE(process.type() != ScatteringProcessType::EXCITATION,
57+
"Excitation collisions are not yet supported in DSMC");
58+
WARPX_ALWAYS_ASSERT_WITH_MESSAGE(process.type() != ScatteringProcessType::FORWARD,
59+
"Forward scattering collisions are not yet supported in DSMC");
5660
WARPX_ALWAYS_ASSERT_WITH_MESSAGE(process.type() != ScatteringProcessType::INVALID,
5761
"Cannot add an unknown scattering process type");
5862

0 commit comments

Comments
 (0)