On Fri, Apr 8, 2011 at 4:12 PM, Andy Buckle <andybuc...@gmail.com> wrote: > On Fri, Apr 8, 2011 at 3:03 PM, Juan Pablo Carbajal <carba...@ifi.uzh.ch> > wrote: >> Hi, >> I cannot find a way to silence the verbosity of the ode integratos >> when the conditions of an event functions are met. >> I get messages of the kind >> warning: Solver has been stopped by a call of "break" in the main >> iteration loop at time t = XXX before endpoint at tend = YYY was >> reached. This may happen because the @odeplot function returned "true" >> or the @event function returned "true". >> >> Is there a way to avoid those messages? or control the warning message? >> >> Thanks > > Did you try > > warning off > % call ode fn > warning on > > see the output of > help warning > > you can turn some specific warnings off (instead of all warnings). not > in this case, I think. > > > -- > /* andy buckle */ >
Andy, Thanks for the answer The solution works partially. I tried your version ("warning on" is very bad, activates all the warning from plotting functions and others...!!!!!) Checking line 475 of ode45.m I found warning ('OdePkg:InvalidArgument', ... ['Solver has been stopped by a call of "break" in', ... ' the main iteration loop at time t = %f before endpoint at', ... ' tend = %f was reached. This may happen because the @odeplot', ... ' function returned "true" or the @event function returned "true".'], ... vtimestamp, vtimestop); therefore warning ('off','OdePkg:InvalidArgument') eliminates the warning. However it works only in the local scope: That is, if inside a function I am calling ode45, then the call to warning('off',... outside that function does not work. In the help if function warning there is no information about scopes. How doe sit work? Thanks -- M. Sc. Juan Pablo Carbajal ----- PhD Student University of Zürich www.ailab.ch/carbajal ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev