Hi! I want to calculate a variable Y = X1/X2. Since X2 can become 0, I use a "merge" block to prevent the denominator to be zero (i.e., when X2 < 1e-8). When I used "Euler" integration method, the program ran successfully. However, when I changed the method to "Adaptive BDF", an error occured "CVodeMalloc/CVReInit-- y0=NULL illegal".
Can I fix this error and still use "Adaptive BDF" method? (because in my case the Adaptive BDF is the fastest method)
Below I attached the example program.

