From: Timo Heister Date: Tue, 11 Feb 2014 16:30:05 +0000 (+0000) Subject: check proc count in parallel::distributed::Triangulation::load() X-Git-Tag: v8.2.0-rc1~849 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe5725f41088395935eda457c3bc584e4dc608c8;p=dealii.git check proc count in parallel::distributed::Triangulation::load() git-svn-id: https://svn.dealii.org/trunk@32457 0785d39b-7218-0410-832d-ea1e28bc413d --- 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;