function [c]=stops(u)
if max(abs(u))<=0.01
   c=1;
else c=0;
end