]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
check proc count in parallel::distributed::Triangulation::load()
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 Feb 2014 16:30:05 +0000 (16:30 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 Feb 2014 16:30:05 +0000 (16:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@32457 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/distributed/tria.cc

index 45db88fa607ed019885a64655e1db5048fe2f8f0..5687fae27eceb2f8d06f7619ed6864cdf22afe55 100644 (file)
@@ -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;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.