Harry Dankowicz - 2018-03-05

Hi Jacob,

Working backwards:

  1. You can get help with the ode_BP2ep constructor syntax by typing 'help' followed by 'ode_BP2ep' on the command line. As you can see, there is no '-switch' option for this constructor. Your observation about the fact that inclusion of '-switch' has no effect is consistent with the expected behavior.
  2. The branch switching routine is using an initial solution guess that is displaced a small distance from the (approximately located) branch point along a vector that is perpendicular to the original branch and in the plane of both solution branches. The projection condition should ensure that we don't fall back onto the original branch.
  3. It is curious that the algorithm is able to locate the secondary branch when perturbing in one direction, but not the other. Is there a nonsmoothness in your governing vector field at \psi=0?

For me to provide further assistance, I would need access to all the files required to run this example.

Harry