From: bangerth Date: Sun, 3 Nov 2013 17:51:39 +0000 (+0000) Subject: Catch an exception that apparently happens in 64-bit mode. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac5f8f25f6ba7adbf86d8c77e9e8b81ec0a5c982;p=dealii-svn.git Catch an exception that apparently happens in 64-bit mode. git-svn-id: https://svn.dealii.org/trunk@31535 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/mpi/trilinos_sparse_matrix_mmult_01.cc b/tests/mpi/trilinos_sparse_matrix_mmult_01.cc index 9293e23f85..95de7822ea 100644 --- a/tests/mpi/trilinos_sparse_matrix_mmult_01.cc +++ b/tests/mpi/trilinos_sparse_matrix_mmult_01.cc @@ -154,17 +154,24 @@ int main (int argc, char **argv) unsigned int myid = Utilities::MPI::this_mpi_process (MPI_COMM_WORLD); deallog.push(Utilities::int_to_string(myid)); - if (myid == 0) + try { - std::ofstream logfile("output"); - deallog.attach(logfile); - deallog << std::setprecision(4); - deallog.depth_console(0); - deallog.threshold_double(1.e-10); - - test(); + if (myid == 0) + { + std::ofstream logfile("output"); + deallog.attach(logfile); + deallog << std::setprecision(4); + deallog.depth_console(0); + deallog.threshold_double(1.e-10); + + test(); + } + else + test(); + } + catch (const char *p) + { + std::cerr << "Uncaught exception: " << p << std::endl; + std::exit (1); } - else - test(); - }