well i should say, that the first ode is a simple ode. The second one is a pde discretized with MOL.
I need to calculate the height of the interface h(t) and use diff(h(t)/h(t) in the pde. Since my discretization is different for both odes i do not know how to code that the best way.
The first ode needs only the last point of the pde. This point is updated with every timestep. So do i need to use global variables here ? Or can i pass the solution of the pde to the ode as an argument ? While calling the ode at the every call of the pde ?