Commit 04fb1413 authored by GILLES Sebastien's avatar GILLES Sebastien

#1479 Add the catching of GracefulExit in several mains.

parent 1f55b4a5
......@@ -41,6 +41,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -89,6 +89,10 @@ int main(int argc, char** argv)
std::cout << "End of Post-Processing." << std::endl;
std::cout << TimeKeep::GetInstance(__FILE__, __LINE__).TimeElapsedSinceBeginning() << std::endl;
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -41,6 +41,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -86,6 +86,10 @@ int main(int argc, char** argv)
std::cout << TimeKeep::GetInstance(__FILE__, __LINE__).TimeElapsedSinceBeginning() << std::endl;
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -87,6 +87,10 @@ int main(int argc, char** argv)
std::cout << TimeKeep::GetInstance(__FILE__, __LINE__).TimeElapsedSinceBeginning() << std::endl;
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -41,6 +41,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -86,6 +86,10 @@ int main(int argc, char** argv)
std::cout << TimeKeep::GetInstance(__FILE__, __LINE__).TimeElapsedSinceBeginning() << std::endl;
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -41,6 +41,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -86,6 +86,10 @@ int main(int argc, char** argv)
std::cout << TimeKeep::GetInstance(__FILE__, __LINE__).TimeElapsedSinceBeginning() << std::endl;
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -41,6 +41,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -88,6 +88,10 @@ int main(int argc, char** argv)
std::cout << TimeKeep::GetInstance(__FILE__, __LINE__).TimeElapsedSinceBeginning() << std::endl;
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -109,6 +109,10 @@ int main(int argc, char** argv)
mesh,
__FILE__, __LINE__);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -80,6 +80,10 @@ int main(int argc, char** argv)
model.Run(create_output_dir::no);
std::cout << "End of Post-Processing. Refined mesh created." << std::endl;
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -43,6 +43,10 @@ int main(int argc, char** argv)
TestNS::ColoringNS::Model model(morefem_data);
model.Run();
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -40,6 +40,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -43,6 +43,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -39,6 +39,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -41,6 +41,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -41,6 +41,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -101,6 +101,10 @@ int main(int argc, char * argv[])
god_of_dof.OndomaticLikePrint(*(numbering_subset_list.front()), output_directory);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -43,6 +43,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -42,6 +42,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -46,6 +46,10 @@ int main(int argc, char** argv)
input_parameter_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -41,6 +41,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -40,6 +40,10 @@ int main(int argc, char** argv)
//input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -37,6 +37,10 @@ int main(int argc, char** argv)
input_data.PrintUnused(std::cout);
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
......@@ -83,6 +83,10 @@ int main(int argc, char** argv)
std::cout << TimeKeep::GetInstance(__FILE__, __LINE__).TimeElapsedSinceBeginning() << std::endl;
}
catch(const ExceptionNS::GracefulExit&)
{
return EXIT_SUCCESS;
}
catch(const std::exception& e)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment