Skip to content

Commit 2f165b8

Browse files
authored
Merge pull request #7226 from JosePineda684/BBHHeadOnMsg
More descriptive error message for BBH headon
2 parents a17fab2 + 90c1139 commit 2f165b8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

support/Pipelines/EccentricityControl/InitialOrbitalParameters.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ def initial_orbital_parameters(
8686
"Initial orbital parameters can currently only be computed for zero"
8787
" eccentricity."
8888
)
89+
assert orbital_angular_velocity != 0.0, (
90+
"Cannot solve for orbital parameters if 'orbital_angular_velocity' is"
91+
" zero. If you want orbital_angular_velocity=0, do not specify"
92+
" eccentricity. Instead, specify the separation 'D_0' and radial"
93+
" expansion velocity 'adot_0'."
94+
)
8995
assert radial_expansion_velocity is None, (
9096
"Can't use the 'radial_expansion_velocity' to compute orbital"
9197
" parameters. Remove it and choose another orbital parameter."

0 commit comments

Comments
 (0)