You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like there is some typing issue with converting an HODEProblem to a PODEProblem such that partitioning methods don't working for Hamiltonian problems. Here's some code along with an error I get
function H(t, q, p, params)
return 1/2*p[1]^2 - q[1]^2;
end
function f1(f1, t, q, p, params)
f1[1] = -2*q[1]
end
function v(v, t, q, p, params);
v[1] = p[1]
end
hprob = HODEProblem(v, f1, H, (0.0, 10.0), 0.1, (q = [0.0], p = [1.0]));
integrator = GeometricIntegrator(hprob, LobattoIIIAIIIB(2));
integrate(integrator);
Many thanks for reporting this issue. This was actually an issue in the explicit partitioned Runge-Kutta integrator rather than the conversion. It's fixed and I added some more tests to catch issues like this.
It seems like there is some typing issue with converting an HODEProblem to a PODEProblem such that partitioning methods don't working for Hamiltonian problems. Here's some code along with an error I get
and I get this error
The text was updated successfully, but these errors were encountered: