From: Paul K. <pki...@ja...> - 2002-11-25 01:12:51
|
The reason that won't work is because you need to something to catch it. That requires putting trapping code around each call to superLU to set the jump return address and reset it when done. Plus any loops outside of superLU need to have periodic checks if an interrupt has been triggered. The macros to do this are in quit.h, but I don't know the exact magic. Let me know if you are going to persue this, because it is top of my list (right behind family and work that is, which in this season puts it much too far back ;-) - Paul On Sun, Nov 24, 2002 at 09:46:18PM +0000, Nix wrote: > [Apologies for lack of References:, I am not a member of this list.] > > octave-forge needs adjustment to handle the new exception-based > interrupt model in the latest CVS octave. I think this fixes it: > > 2002-11-24 Nix <ni...@es...> > > * make_sparse.h (SP_FATAL_ERR): Use octave_throw_interrupt_exception()... > * make_sparse.h (includes): ... declared in quit.h. > > Index: octave-forge/main/sparse/make_sparse.h > =================================================================== > RCS file: /cvsroot/octave/octave-forge/main/sparse/make_sparse.h,v > retrieving revision 1.9 > diff -u -r1.9 make_sparse.h > --- octave-forge/main/sparse/make_sparse.h 5 Nov 2002 19:21:07 -0000 1.9 > +++ octave-forge/main/sparse/make_sparse.h 24 Nov 2002 21:40:14 -0000 > @@ -89,7 +89,7 @@ > // Thanks to To: Paul Kienzle <pki...@ki...> > // for help with error handling > #define SP_FATAL_ERR(str) { error("sparse: %s", str); \ > - jump_to_top_level (); \ > + octave_throw_interrupt_exception (); \ > panic_impossible (); } > > // The SuperLU includes need to be first, > @@ -132,6 +132,7 @@ > #include <octave/ov-complex.h> > #include <octave/ov-re-mat.h> > #include <octave/ov-cx-mat.h> > +#include <octave/quit.h> > #include <octave/pager.h> > #include <octave/pr-output.h> > #include <octave/symtab.h> > > -- > `I keep hearing about SF writers dying, but I never hear about SF > writers being born. So I guess eventually there'll be none left.' > -- Keith F. Lynch > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Octave-dev mailing list > Oct...@li... > https://lists.sourceforge.net/lists/listinfo/octave-dev |