From fe5725f41088395935eda457c3bc584e4dc608c8 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 11 Feb 2014 16:30:05 +0000 Subject: [PATCH] check proc count in parallel::distributed::Triangulation::load() git-svn-id: https://svn.dealii.org/trunk@32457 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/distributed/tria.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deal.II/source/distributed/tria.cc b/deal.II/source/distributed/tria.cc index 45db88fa60..5687fae27e 100644 --- a/deal.II/source/distributed/tria.cc +++ b/deal.II/source/distributed/tria.cc @@ -2113,6 +2113,9 @@ namespace parallel Assert(version == 2, ExcMessage("Incompatible version found in .info file.")); Assert(this->n_cells(0) == n_coarse_cells, ExcMessage("Number of coarse cells differ!")); + AssertThrow(numcpus <= Utilities::MPI::n_mpi_processes (mpi_communicator), + ExcMessage("parallel::distributed::Triangulation::load() only supports loading " + "saved data with a greater or equal number of processes than were used to save().")); attached_data_size = 0; n_attached_datas = 0; -- 2.39.5