Some stuff for ODE and PDE solving