try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix m (5,5,3);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix m (5,5,3);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix m (5,5,3);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix m (5,5,3);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix m (5,5,3);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix m (5,5,3);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix m (5,5,3);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix m (5,5,3);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix m (5,5,3);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
PETScWrappers::Vector x (100);
test (v,w,x);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
PETScWrappers::Vector x (100);
test (v,w,x);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
PETScWrappers::Vector y (100);
test (v,w,x,y);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
PETScWrappers::Vector x (100);
test (v,w,x);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
PETScWrappers::Vector x (100);
test (v,w,x);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
std::vector<unsigned int> row_lengths (5, 3U);
row_lengths.back() = 2;
PETScWrappers::SparseMatrix m (5,5,row_lengths);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix v (100,100,5);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix v (100,100,5);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
const unsigned int n_dofs=420;
// check
v2 (mpi_communicator, n_dofs, n_dofs, n_local_dofs, n_local_dofs, 5);
test (v2);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
test ();
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix v (14,14,3);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix v (14,14,3);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix v (14,14,3);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::SparseMatrix v (14,14,3);
test (v);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
test ();
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
test ();
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
test ();
}
- PetscFinalize();
+
}
catch (std::exception &e)
{
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
check_solve (solver, A,u,f, preconditioner);
}
GrowingVectorMemory<PETScWrappers::Vector>::release_unused_memory ();
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
check_solve (solver, A,u,f, preconditioner);
}
GrowingVectorMemory<PETScWrappers::Vector>::release_unused_memory ();
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
check_solve (solver, A,u,f, preconditioner);
}
GrowingVectorMemory<PETScWrappers::Vector>::release_unused_memory ();
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
check_solve (solver, A,u,f, preconditioner);
}
GrowingVectorMemory<PETScWrappers::Vector>::release_unused_memory ();
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
check_solve (solver, A,u,f, preconditioner);
}
GrowingVectorMemory<PETScWrappers::Vector>::release_unused_memory ();
- PetscFinalize ();
+
}
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::FullMatrix m (5,5);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::FullMatrix m (5,5);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::FullMatrix m (5,5);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::FullMatrix m (5,5);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::FullMatrix m (5,5);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::FullMatrix m (5,5);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::FullMatrix m (5,5);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::FullMatrix m (5,5);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::FullMatrix m (5,5);
test (m);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
test ();
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (30);
test (v);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
PETScWrappers::Vector x (100);
test (v,w,x);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
test ();
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
test ();
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
test ();
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
test ();
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
test ();
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionJacobi preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionJacobi preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionJacobi preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionNone preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionBoomerAMG preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionBoomerAMG preconditioner(A, true);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionEisenstat preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionICC preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionILU preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionLU preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionParaSails preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionSOR preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionSSOR preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionJacobi preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionJacobi preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionJacobi preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionJacobi preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionJacobi preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionJacobi preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionJacobi preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
PETScWrappers::PreconditionJacobi preconditioner(A);
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
//run twice because this errored out at some point
check_solve (solver, A,u,f, preconditioner);
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
SolverControl control(100, 1.e-3);
preconditioner.vmult(t, u);
deallog << t.l2_norm() << std::endl;
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
const unsigned int size = 32;
unsigned int dim = (size-1)*(size-1);
deallog << "residual = " << A.residual (tmp, u, f)
<< std::endl;
}
- PetscFinalize ();
+
}
deallog.depth_console(0);
deallog.threshold_double(1.e-10);
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
test ();
- PetscFinalize ();
+
}
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
test ();
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (30);
test (v);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
PETScWrappers::Vector x (100);
test (v,w,x);
}
- PetscFinalize ();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
PETScWrappers::Vector v (100);
PETScWrappers::Vector w (100);
test (v,w);
}
- PetscFinalize();
+
}
catch (std::exception &exc)
{
try
{
- PetscInitialize(&argc,&argv,0,0);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
Vec vpetsc;
int ierr = VecCreateSeq (PETSC_COMM_SELF, 100, &vpetsc);
AssertThrow (ierr == 0, ExcPETScError(ierr));
AssertThrow (ierr == 0, ExcPETScError(ierr));
- PetscFinalize();
+
}
catch (std::exception &exc)
{