From 6f255ec8abc0a397b002367f98ff1f6f7f67b29f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 3 Nov 2013 17:51:39 +0000 Subject: [PATCH] Catch an exception that apparently happens in 64-bit mode. git-svn-id: https://svn.dealii.org/trunk@31535 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/mpi/trilinos_sparse_matrix_mmult_01.cc | 29 ++++++++++++-------- 1 file changed, 18 insertions(+), 11 deletions(-) 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(); - } -- 2.39.5