Skip to content

Commit 7ec2618

Browse files
authored
Ref Tracking: Improve CSR Error Message (#1250)
Reading the user question in #44 (comment) I have the impression my original error message is too brief and not helpful enough. Trying to be more verbose now, so users know what to look for/change.
1 parent b92acc2 commit 7ec2618

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tracking/reference.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ namespace impactx
7878
pp_algo.query("csr", csr);
7979
if (csr)
8080
{
81-
throw std::runtime_error("CSR effects cannot be modeled for single particle tracking.");
81+
throw std::runtime_error(
82+
"Coherent Synchrotron Radiation (CSR) cannot be "
83+
"modeled for single particle tracking. "
84+
"Please set the CSR option to false."
85+
);
8286
}
8387

8488
// periods through the lattice

0 commit comments

Comments
 (0)