There will be two arrays say y1(nx1) and y2(nx1) for n space grids.. and the equations are of the form d/dt(y1 or y2) = F1 or F2 (yi,y'i,y"i...) , i=1,2. then you get two error arrays (nx1) for y1 and y2...
now how to use these to modify dt (time step) for this process ? modifying dt for each space point and for both the variables is very hard.. as you have to calculate them simultaneously..
Can I take
a = MAX[error_y1(nx1)]
b = MAX[error_y2(nx1)]
then compare a and b and modify dt according to the max error in the process. It looks reasonable
but I am not sure. Anyone encountered this same problem? Please help.