#
# Are all dependencies fullfilled?
#
-IF(NOT DEAL_II_WITH_PETSC OR DEAL_II_WITH_THREADS)
+IF(NOT DEAL_II_WITH_PETSC)
MESSAGE(FATAL_ERROR "
Error! The deal.II library found at ${DEAL_II_PATH} was not configured with
DEAL_II_WITH_PETSC = ON
- DEAL_II_WITH_THREADS = OFF
which is required for this tutorial step."
)
ENDIF()
// destructor of <code>elastic_problem</code> would run after
// <code>PetscFinalize</code>; since the destructor involves calls to
// PETSc functions, we would get strange error messages from PETSc.)
- Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv);
-
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
deallog.depth_console (0);
#
# Are all dependencies fullfilled?
#
-IF(NOT DEAL_II_WITH_PETSC OR DEAL_II_WITH_THREADS)
+IF(NOT DEAL_II_WITH_PETSC)
MESSAGE(FATAL_ERROR "
Error! The deal.II library found at ${DEAL_II_PATH} was not configured with
DEAL_II_WITH_PETSC = ON
- DEAL_II_WITH_THREADS = OFF
which is required for this tutorial step."
)
ENDIF()
using namespace dealii;
using namespace Step18;
- Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
deallog.depth_console (0);
#
# Are all dependencies fullfilled?
#
-IF(NOT DEAL_II_WITH_PETSC OR NOT DEAL_II_WITH_SLEPC OR DEAL_II_WITH_THREADS)
+IF(NOT DEAL_II_WITH_PETSC OR NOT DEAL_II_WITH_SLEPC)
MESSAGE(FATAL_ERROR "
Error! The deal.II library found at ${DEAL_II_PATH} was not configured with
DEAL_II_WITH_PETSC = ON
DEAL_II_WITH_SLEPC = ON
- DEAL_II_WITH_THREADS = OFF
which is required for this tutorial step."
)
ENDIF()
try
{
- // Here is another difference from other steps: We initialize the SLEPc
- // work space which inherently initializes the PETSc work space, then go
- // ahead run the whole program. After that is done, we finalize the
- // SLEPc-PETSc work.
- SlepcInitialize (&argc, &argv, 0, 0);
-
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
{
using namespace dealii;
using namespace Step36;
EigenvalueProblem<2> problem ("step-36.prm");
problem.run ();
}
-
- SlepcFinalize ();
}
// All the while, we are watching out if any exceptions should have been
#
# Are all dependencies fullfilled?
#
-IF(NOT DEAL_II_WITH_PETSC OR NOT DEAL_II_WITH_P4EST OR DEAL_II_WITH_THREADS)
+IF(NOT DEAL_II_WITH_PETSC OR NOT DEAL_II_WITH_P4EST)
MESSAGE(FATAL_ERROR "
Error! The deal.II library found at ${DEAL_II_PATH} was not configured with
DEAL_II_WITH_PETSC = ON
DEAL_II_WITH_P4EST = ON
- DEAL_II_WITH_THREADS = OFF
which is required for this tutorial step."
)
ENDIF()
using namespace dealii;
using namespace Step40;
- Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv);
+ Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
deallog.depth_console (0);
{