Index: mttroot/mtt/bin/trans/make_ode2odes ================================================================== --- mttroot/mtt/bin/trans/make_ode2odes +++ mttroot/mtt/bin/trans/make_ode2odes @@ -7,10 +7,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.51.2.5 2001/03/12 23:16:37 geraint +## Minor improvements to signal handling (.exe). +## ## Revision 1.51.2.4 2001/03/12 03:59:30 geraint ## SIGINT (C-c C-c) now causes simulation data to be dumped to MTT.core. ## SIGQUIT (C-c C-\) as for SIGINT, then raises default SIGQUIT. ## SIGFPE as for SIGINT, then raises default SIGABRT. ## @@ -311,11 +314,10 @@ #include "${sys}_def.h" #include "${sys}_sympar.h" #ifdef STANDALONE #include -#include // for Irix psignal #include extern ColumnVector F${sys}_input ( ColumnVector &x, ColumnVector &y, @@ -658,11 +660,11 @@ void set_signal_handlers (void); void handle_signal (int signum) { // handle some signals to ensure data is written. - psignal (signum, "# Writing data to MTT.core"); + cerr << "# Writing data to MTT.core (signal " << signum << ")" << endl; ofstream corefile ("MTT.core"); dump_data (corefile); switch (signum) { case SIGFPE: