16#include <Catch_SIGINIT.h>
27 std::cerr <<
" " << std::endl;
28 std::cerr <<
"=======================================================" << std::endl;
29 std::cerr <<
" " << std::endl;
30 std::cerr <<
"Caught signal " << signum << std::endl;
31 std::cerr <<
"We are trying to finish the simulation correctly ... " << std::endl;
32 std::cerr <<
" " << std::endl;
33 std::cerr <<
"=======================================================" << std::endl;
34 std::cerr <<
" " << std::endl;
41 std::cerr <<
" " << std::endl;
42 std::cerr <<
"=======================================================" << std::endl;
43 std::cerr <<
" " << std::endl;
44 std::cerr <<
"Multiple signals " << signum <<
" are caught !" << std::endl;
45 std::cerr <<
"We are forcing the exit of the processors ... " << std::endl;
46 std::cerr <<
" " << std::endl;
47 std::cerr <<
"=======================================================" << std::endl;
48 std::cerr <<
" " << std::endl;
54 Nom command =
"echo '1' > ";
60 int err = system(command);
64 std::cerr <<
"We can not finish the simulation correctly because the stop file " <<
NOM_DU_CAS_<<
".stop is not in the directory !" << std::endl;
static int NB_CAUGHT_SIGNALS_
static void signal_callback_handler(int signum)
class Nom: a character string for naming TRUST objects.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
static int je_suis_maitre()
Returns 1 if on the master processor of the current group (i.e. me() == 0), 0 otherwise.