Segfault from ShowerAxis constructor
When making a ShowerAxis
object the following code will segfault during the object construction.
The following throws a segfault:
ShowerAxis const showerAxis(injectionPos, axisLength, env);
and the following does not:
ShowerAxis const showerAxis(injectionPos, -1 * axisLength, env);
It probably has to do with when the length is negative and we access out of range. Probably should add a throw
in somewhere