]> https://gitweb.dealii.org/ - dealii.git/commit
confusing set_all_manifold* errors if empty 2456/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 4 Apr 2016 16:55:50 +0000 (12:55 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 4 Apr 2016 16:55:50 +0000 (12:55 -0400)
commit8249ae80fa7724198c39680ec50070f5e74d0e40
tree40326b560f28d64e0a162bece034587b8d672429
parentc5f057be057559c6a4de906cf07de939d2a7306b
confusing set_all_manifold* errors if empty

The error messages for set_all_manifold_ids* are confusing if the mesh
is empty:

An error occurred in line <10760> of file </ssd/deal-
git/source/grid/tria.cc> in function
    dealii::Triangulation<dim, spacedim>::raw_quad_iterator
dealii::Triangulation<dim, spacedim>::begin_raw_quad(unsigned int) const
[with int dim = 2, int spacedim = 2, dealii::Triangulation<dim,
spacedim>::raw_quad_iterator =
dealii::TriaRawIterator<dealii::CellAccessor<2, 2> >]
The violated condition was:
    level<n_global_levels() || level<levels.size()
The name and call sequence of the exception was:
    ExcInvalidLevel(level)
Additional Information:
The given level 0 is not in the valid range!

Fix that.
source/grid/tria.cc

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.