Reference documentation for deal.II version 9.1.0-pre
dof_handler.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1998 - 2018 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_dof_handler_h
17 #define dealii_dof_handler_h
18 
19 
20 
21 #include <deal.II/base/config.h>
22 
23 #include <deal.II/base/exceptions.h>
24 #include <deal.II/base/function.h>
25 #include <deal.II/base/index_set.h>
26 #include <deal.II/base/iterator_range.h>
27 #include <deal.II/base/smartpointer.h>
28 
29 #include <deal.II/dofs/block_info.h>
30 #include <deal.II/dofs/deprecated_function_map.h>
31 #include <deal.II/dofs/dof_faces.h>
32 #include <deal.II/dofs/dof_iterator_selector.h>
33 #include <deal.II/dofs/dof_levels.h>
34 #include <deal.II/dofs/number_cache.h>
35 
36 #include <deal.II/hp/fe_collection.h>
37 
38 #include <boost/serialization/split_member.hpp>
39 
40 #include <map>
41 #include <memory>
42 #include <set>
43 #include <vector>
44 
45 DEAL_II_NAMESPACE_OPEN
46 
47 template <int dim, int spacedim>
48 class FiniteElement;
49 template <int dim, int spacedim>
51 
52 namespace internal
53 {
54  namespace DoFHandlerImplementation
55  {
56  struct Implementation;
57 
58  namespace Policy
59  {
60  template <int dim, int spacedim>
61  class PolicyBase;
62  struct Implementation;
63  } // namespace Policy
64  } // namespace DoFHandlerImplementation
65 
66  namespace DoFAccessorImplementation
67  {
68  struct Implementation;
69  }
70 
71  namespace DoFCellAccessorImplementation
72  {
73  struct Implementation;
74  }
75 } // namespace internal
76 
77 
199 template <int dim, int spacedim = dim>
200 class DoFHandler : public Subscriptor
201 {
202  using ActiveSelector = ::internal::DoFHandlerImplementation::
203  Iterators<DoFHandler<dim, spacedim>, false>;
204  using LevelSelector = ::internal::DoFHandlerImplementation::
205  Iterators<DoFHandler<dim, spacedim>, true>;
206 
207 public:
208  using cell_accessor = typename ActiveSelector::CellAccessor;
209  using face_accessor = typename ActiveSelector::FaceAccessor;
210 
211  using line_iterator = typename ActiveSelector::line_iterator;
212  using active_line_iterator = typename ActiveSelector::active_line_iterator;
213 
214  using quad_iterator = typename ActiveSelector::quad_iterator;
215  using active_quad_iterator = typename ActiveSelector::active_quad_iterator;
216 
217  using hex_iterator = typename ActiveSelector::hex_iterator;
218  using active_hex_iterator = typename ActiveSelector::active_hex_iterator;
219 
240  using active_cell_iterator = typename ActiveSelector::active_cell_iterator;
241 
268  using cell_iterator = typename ActiveSelector::cell_iterator;
269 
286  using face_iterator = typename ActiveSelector::face_iterator;
287 
299  using active_face_iterator = typename ActiveSelector::active_face_iterator;
300 
301  using level_cell_accessor = typename LevelSelector::CellAccessor;
302  using level_face_accessor = typename LevelSelector::FaceAccessor;
303 
304  using level_cell_iterator = typename LevelSelector::cell_iterator;
305  using level_face_iterator = typename LevelSelector::face_iterator;
306 
307 
311  static const unsigned int dimension = dim;
312 
316  static const unsigned int space_dimension = spacedim;
317 
329  DEAL_II_DEPRECATED
330  static const types::global_dof_index invalid_dof_index =
332 
342  static const unsigned int default_fe_index = 0;
343 
349  DoFHandler();
350 
355 
362  DoFHandler(const DoFHandler &) = delete;
363 
367  virtual ~DoFHandler() override;
368 
375  DoFHandler &
376  operator=(const DoFHandler &) = delete;
377 
382  void
383  initialize(const Triangulation<dim, spacedim> &tria,
384  const FiniteElement<dim, spacedim> &fe);
385 
424  virtual void
425  distribute_dofs(const FiniteElement<dim, spacedim> &fe);
426 
435  DEAL_II_DEPRECATED
436  virtual void
437  distribute_mg_dofs(const FiniteElement<dim, spacedim> &fe);
438 
444  virtual void
445  distribute_mg_dofs();
446 
452  bool
453  has_level_dofs() const;
454 
469  bool
470  has_active_dofs() const;
471 
478  void
479  initialize_local_block_info();
480 
484  virtual void
485  clear();
486 
539  void
540  renumber_dofs(const std::vector<types::global_dof_index> &new_numbers);
541 
546  void
547  renumber_dofs(const unsigned int level,
548  const std::vector<types::global_dof_index> &new_numbers);
549 
578  unsigned int
579  max_couplings_between_dofs() const;
580 
593  unsigned int
594  max_couplings_between_boundary_dofs() const;
595 
596  /*--------------------------------------*/
597 
602  /*
603  * @{
604  */
605 
610  begin(const unsigned int level = 0) const;
611 
629  begin_active(const unsigned int level = 0) const;
630 
636  end() const;
637 
643  end(const unsigned int level) const;
644 
651  end_active(const unsigned int level) const;
652 
653 
658  level_cell_iterator
659  begin_mg(const unsigned int level = 0) const;
660 
665  level_cell_iterator
666  end_mg(const unsigned int level) const;
667 
672  level_cell_iterator
673  end_mg() const;
674 
690  cell_iterators() const;
691 
733  active_cell_iterators() const;
734 
747  mg_cell_iterators() const;
748 
765  cell_iterators_on_level(const unsigned int level) const;
766 
783  active_cell_iterators_on_level(const unsigned int level) const;
784 
802  mg_cell_iterators_on_level(const unsigned int level) const;
803 
804  /*
805  * @}
806  */
807 
808 
809  /*---------------------------------------*/
810 
811 
836  n_dofs() const;
837 
846  n_dofs(const unsigned int level) const;
847 
852  n_boundary_dofs() const;
853 
864  template <typename number>
866  n_boundary_dofs(
867  const std::map<types::boundary_id, const Function<spacedim, number> *>
868  &boundary_ids) const;
869 
875  n_boundary_dofs(const std::set<types::boundary_id> &boundary_ids) const;
876 
892  const BlockInfo &
893  block_info() const;
894 
895 
915  unsigned int
916  n_locally_owned_dofs() const;
917 
923  const IndexSet &
924  locally_owned_dofs() const;
925 
930  const IndexSet &
931  locally_owned_mg_dofs(const unsigned int level) const;
932 
945  const std::vector<IndexSet> &
946  locally_owned_dofs_per_processor() const;
947 
963  const std::vector<types::global_dof_index> &
964  n_locally_owned_dofs_per_processor() const;
965 
977  const std::vector<IndexSet> &
978  locally_owned_mg_dofs_per_processor(const unsigned int level) const;
979 
986  get_fe(const unsigned int index = 0) const;
987 
995  get_fe_collection() const;
996 
1001  get_triangulation() const;
1002 
1011  virtual std::size_t
1012  memory_consumption() const;
1013 
1018  template <class Archive>
1019  void
1020  save(Archive &ar, const unsigned int version) const;
1021 
1026  template <class Archive>
1027  void
1028  load(Archive &ar, const unsigned int version);
1029 
1030  BOOST_SERIALIZATION_SPLIT_MEMBER()
1031 
1032 
1036  DeclException0(ExcGridsDoNotMatch);
1046  DeclException1(ExcNewNumbersNotConsecutive,
1047  types::global_dof_index,
1048  << "The given list of new dof indices is not consecutive: "
1049  << "the index " << arg1 << " does not exist.");
1054  DeclException1(ExcInvalidLevel,
1055  int,
1056  << "The given level " << arg1
1057  << " is not in the valid range!");
1067  DeclException1(ExcEmptyLevel,
1068  int,
1069  << "You tried to do something on level " << arg1
1070  << ", but this level is empty.");
1071 
1072 
1073 private:
1077  BlockInfo block_info_object;
1078 
1082  SmartPointer<const Triangulation<dim, spacedim>, DoFHandler<dim, spacedim>>
1083  tria;
1084 
1085 
1090  hp::FECollection<dim, spacedim> fe_collection;
1091 
1096  std::unique_ptr<::internal::DoFHandlerImplementation::Policy::
1097  PolicyBase<dim, spacedim>>
1098  policy;
1099 
1107  ::internal::DoFHandlerImplementation::NumberCache number_cache;
1108 
1112  std::vector<::internal::DoFHandlerImplementation::NumberCache>
1113  mg_number_cache;
1114 
1122  {
1123  public:
1127  MGVertexDoFs();
1128 
1134  void
1135  init(const unsigned int coarsest_level,
1136  const unsigned int finest_level,
1137  const unsigned int dofs_per_vertex);
1138 
1142  unsigned int
1143  get_coarsest_level() const;
1144 
1148  unsigned int
1149  get_finest_level() const;
1150 
1156  get_index(const unsigned int level,
1157  const unsigned int dof_number,
1158  const unsigned int dofs_per_vertex) const;
1159 
1164  void
1165  set_index(const unsigned int level,
1166  const unsigned int dof_number,
1167  const unsigned int dofs_per_vertex,
1168  const types::global_dof_index index);
1169 
1170  private:
1174  unsigned int coarsest_level;
1175 
1179  unsigned int finest_level;
1180 
1190  std::unique_ptr<types::global_dof_index[]> indices;
1191  };
1192 
1196  void
1197  clear_space();
1198 
1202  void
1203  clear_mg_space();
1204 
1205  template <int structdim>
1207  get_dof_index(const unsigned int obj_level,
1208  const unsigned int obj_index,
1209  const unsigned int fe_index,
1210  const unsigned int local_index) const;
1211 
1212  template <int structdim>
1213  void
1214  set_dof_index(const unsigned int obj_level,
1215  const unsigned int obj_index,
1216  const unsigned int fe_index,
1217  const unsigned int local_index,
1218  const types::global_dof_index global_index) const;
1219 
1223  std::vector<types::global_dof_index> vertex_dofs;
1224 
1229  std::vector<MGVertexDoFs> mg_vertex_dofs;
1230 
1235  std::vector<
1236  std::unique_ptr<::internal::DoFHandlerImplementation::DoFLevel<dim>>>
1238 
1239  std::vector<
1240  std::unique_ptr<::internal::DoFHandlerImplementation::DoFLevel<dim>>>
1241  mg_levels;
1242 
1248  std::unique_ptr<::internal::DoFHandlerImplementation::DoFFaces<dim>>
1250 
1251  std::unique_ptr<::internal::DoFHandlerImplementation::DoFFaces<dim>>
1252  mg_faces;
1253 
1257  template <int, class, bool>
1258  friend class DoFAccessor;
1259  template <class, bool>
1260  friend class DoFCellAccessor;
1261  friend struct ::internal::DoFAccessorImplementation::Implementation;
1262  friend struct ::internal::DoFCellAccessorImplementation::Implementation;
1263 
1264  friend struct ::internal::DoFHandlerImplementation::Implementation;
1265  friend struct ::internal::DoFHandlerImplementation::Policy::
1266  Implementation;
1267 
1268  // explicitly check for sensible template arguments, but not on windows
1269  // because MSVC creates bogus warnings during normal compilation
1270 #ifndef DEAL_II_MSVC
1271  static_assert(dim <= spacedim,
1272  "The dimension <dim> of a DoFHandler must be less than or "
1273  "equal to the space dimension <spacedim> in which it lives.");
1274 #endif
1275 };
1276 
1277 
1278 
1279 #ifndef DOXYGEN
1280 
1281 /* ----------------------- Inline functions ----------------------------------
1282  */
1283 
1284 
1285 template <int dim, int spacedim>
1286 inline bool
1288 {
1289  return mg_number_cache.size() > 0;
1290 }
1291 
1292 
1293 
1294 template <int dim, int spacedim>
1295 inline bool
1297 {
1298  return number_cache.n_global_dofs > 0;
1299 }
1300 
1301 
1302 
1303 template <int dim, int spacedim>
1306 {
1307  return number_cache.n_global_dofs;
1308 }
1309 
1310 
1311 
1312 template <int dim, int spacedim>
1314 DoFHandler<dim, spacedim>::n_dofs(const unsigned int level) const
1315 {
1316  Assert(has_level_dofs(),
1317  ExcMessage(
1318  "n_dofs(level) can only be called after distribute_mg_dofs()"));
1319  Assert(level < mg_number_cache.size(), ExcInvalidLevel(level));
1320  return mg_number_cache[level].n_global_dofs;
1321 }
1322 
1323 
1324 
1325 template <int dim, int spacedim>
1326 unsigned int
1328 {
1329  return number_cache.n_locally_owned_dofs;
1330 }
1331 
1332 
1333 
1334 template <int dim, int spacedim>
1335 const IndexSet &
1337 {
1338  return number_cache.locally_owned_dofs;
1339 }
1340 
1341 
1342 
1343 template <int dim, int spacedim>
1344 const IndexSet &
1345 DoFHandler<dim, spacedim>::locally_owned_mg_dofs(const unsigned int level) const
1346 {
1347  Assert(level < this->get_triangulation().n_global_levels(),
1348  ExcMessage("invalid level in locally_owned_mg_dofs"));
1349  Assert(
1350  mg_number_cache.size() == this->get_triangulation().n_global_levels(),
1351  ExcMessage(
1352  "The level dofs are not set up properly! Did you call distribute_mg_dofs()?"));
1353  return mg_number_cache[level].locally_owned_dofs;
1354 }
1355 
1356 
1357 
1358 template <int dim, int spacedim>
1359 const std::vector<types::global_dof_index> &
1361 {
1362  return number_cache.n_locally_owned_dofs_per_processor;
1363 }
1364 
1365 
1366 
1367 template <int dim, int spacedim>
1368 const std::vector<IndexSet> &
1370 {
1371  return number_cache.locally_owned_dofs_per_processor;
1372 }
1373 
1374 
1375 
1376 template <int dim, int spacedim>
1377 const std::vector<IndexSet> &
1379  const unsigned int level) const
1380 {
1381  Assert(level < this->get_triangulation().n_global_levels(),
1382  ExcMessage("invalid level in locally_owned_mg_dofs_per_processor"));
1383  Assert(
1384  mg_number_cache.size() == this->get_triangulation().n_global_levels(),
1385  ExcMessage(
1386  "The level dofs are not set up properly! Did you call distribute_mg_dofs()?"));
1387  return mg_number_cache[level].locally_owned_dofs_per_processor;
1388 }
1389 
1390 
1391 
1392 template <int dim, int spacedim>
1393 inline const FiniteElement<dim, spacedim> &
1394 DoFHandler<dim, spacedim>::get_fe(const unsigned int index) const
1395 {
1396  (void)index;
1397  Assert(index == 0,
1398  ExcMessage(
1399  "There is only one FiniteElement stored. The index must be zero!"));
1400  return get_fe_collection()[0];
1401 }
1402 
1403 
1404 
1405 template <int dim, int spacedim>
1406 inline const hp::FECollection<dim, spacedim> &
1408 {
1409  Assert(
1410  fe_collection.size() > 0,
1411  ExcMessage(
1412  "You are trying to access the DoFHandler's FECollection object before it has been initialized."));
1413  return fe_collection;
1414 }
1415 
1416 
1417 
1418 template <int dim, int spacedim>
1419 inline const Triangulation<dim, spacedim> &
1421 {
1422  Assert(tria != nullptr,
1423  ExcMessage("This DoFHandler object has not been associated "
1424  "with a triangulation."));
1425  return *tria;
1426 }
1427 
1428 
1429 
1430 template <int dim, int spacedim>
1431 inline const BlockInfo &
1433 {
1434  return block_info_object;
1435 }
1436 
1437 
1438 
1439 template <int dim, int spacedim>
1440 template <typename number>
1443  const std::map<types::boundary_id, const Function<spacedim, number> *>
1444  &boundary_ids) const
1445 {
1446  // extract the set of boundary ids and forget about the function object
1447  // pointers
1448  std::set<types::boundary_id> boundary_ids_only;
1449  for (typename std::map<types::boundary_id,
1450  const Function<spacedim, number> *>::const_iterator p =
1451  boundary_ids.begin();
1452  p != boundary_ids.end();
1453  ++p)
1454  boundary_ids_only.insert(p->first);
1455 
1456  // then just hand everything over to the other function that does the work
1457  return n_boundary_dofs(boundary_ids_only);
1458 }
1459 
1460 
1461 
1462 namespace internal
1463 {
1471  template <int dim, int spacedim>
1472  std::string
1473  policy_to_string(const ::internal::DoFHandlerImplementation::Policy::
1474  PolicyBase<dim, spacedim> &policy);
1475 } // namespace internal
1476 
1477 
1478 
1479 template <int dim, int spacedim>
1480 template <class Archive>
1481 void
1482 DoFHandler<dim, spacedim>::save(Archive &ar, const unsigned int) const
1483 {
1484  ar &block_info_object;
1485  ar &vertex_dofs;
1486  ar &number_cache;
1487 
1488  // some versions of gcc have trouble with loading vectors of
1489  // std::unique_ptr objects because std::unique_ptr does not
1490  // have a copy constructor. do it one level at a time
1491  unsigned int n_levels = levels.size();
1492  ar & n_levels;
1493  for (unsigned int i = 0; i < levels.size(); ++i)
1494  ar &levels[i];
1495 
1496  // boost dereferences a nullptr when serializing a nullptr
1497  // at least up to 1.65.1. This causes problems with clang-5.
1498  // Therefore, work around it.
1499  bool faces_is_nullptr = (faces.get() == nullptr);
1500  ar & faces_is_nullptr;
1501  if (!faces_is_nullptr)
1502  ar &faces;
1503 
1504  // write out the number of triangulation cells and later check during
1505  // loading that this number is indeed correct; same with something that
1506  // identifies the FE and the policy
1507  unsigned int n_cells = tria->n_cells();
1508  std::string fe_name = this->get_fe(0).get_name();
1509  std::string policy_name = internal::policy_to_string(*policy);
1510 
1511  ar &n_cells &fe_name &policy_name;
1512 }
1513 
1514 
1515 
1516 template <int dim, int spacedim>
1517 template <class Archive>
1518 void
1519 DoFHandler<dim, spacedim>::load(Archive &ar, const unsigned int)
1520 {
1521  ar &block_info_object;
1522  ar &vertex_dofs;
1523  ar &number_cache;
1524 
1525  // boost::serialization can restore pointers just fine, but if the
1526  // pointer object still points to something useful, that object is not
1527  // destroyed and we end up with a memory leak. consequently, first delete
1528  // previous content before re-loading stuff
1529  levels.clear();
1530  faces.reset();
1531 
1532  // some versions of gcc have trouble with loading vectors of
1533  // std::unique_ptr objects because std::unique_ptr does not
1534  // have a copy constructor. do it one level at a time
1535  unsigned int size;
1536  ar & size;
1537  levels.resize(size);
1538  for (unsigned int i = 0; i < levels.size(); ++i)
1539  {
1540  std::unique_ptr<internal::DoFHandlerImplementation::DoFLevel<dim>> level;
1541  ar & level;
1542  levels[i] = std::move(level);
1543  }
1544 
1545  // Workaround for nullptr, see in save().
1546  bool faces_is_nullptr = true;
1547  ar & faces_is_nullptr;
1548  if (!faces_is_nullptr)
1549  ar &faces;
1550 
1551  // these are the checks that correspond to the last block in the save()
1552  // function
1553  unsigned int n_cells;
1554  std::string fe_name;
1555  std::string policy_name;
1556 
1557  ar &n_cells &fe_name &policy_name;
1558 
1559  AssertThrow(n_cells == tria->n_cells(),
1560  ExcMessage(
1561  "The object being loaded into does not match the triangulation "
1562  "that has been stored previously."));
1563  AssertThrow(
1564  fe_name == this->get_fe(0).get_name(),
1565  ExcMessage(
1566  "The finite element associated with this DoFHandler does not match "
1567  "the one that was associated with the DoFHandler previously stored."));
1568  AssertThrow(policy_name == internal::policy_to_string(*policy),
1569  ExcMessage(
1570  "The policy currently associated with this DoFHandler (" +
1571  internal::policy_to_string(*policy) +
1572  ") does not match the one that was associated with the "
1573  "DoFHandler previously stored (" +
1574  policy_name + ")."));
1575 }
1576 
1577 
1578 
1579 template <int dim, int spacedim>
1582  const unsigned int level,
1583  const unsigned int dof_number,
1584  const unsigned int dofs_per_vertex) const
1585 {
1586  Assert((level >= coarsest_level) && (level <= finest_level),
1587  ExcInvalidLevel(level));
1588  return indices[dofs_per_vertex * (level - coarsest_level) + dof_number];
1589 }
1590 
1591 
1592 
1593 template <int dim, int spacedim>
1594 inline void
1596  const unsigned int level,
1597  const unsigned int dof_number,
1598  const unsigned int dofs_per_vertex,
1599  const types::global_dof_index index)
1600 {
1601  Assert((level >= coarsest_level) && (level <= finest_level),
1602  ExcInvalidLevel(level));
1603  indices[dofs_per_vertex * (level - coarsest_level) + dof_number] = index;
1604 }
1605 
1606 
1607 #endif // DOXYGEN
1608 
1609 DEAL_II_NAMESPACE_CLOSE
1610 
1611 #endif
std::vector< MGVertexDoFs > mg_vertex_dofs
Definition: dof_handler.h:1229
const BlockInfo & block_info() const
static const unsigned int spacedim
STL namespace.
bool has_level_dofs() const
#define AssertThrow(cond, exc)
Definition: exceptions.h:1329
const Triangulation< dim, spacedim > & get_triangulation() const
const std::vector< types::global_dof_index > & n_locally_owned_dofs_per_processor() const
static::ExceptionBase & ExcFacesHaveNoLevel()
typename ActiveSelector::face_iterator face_iterator
Definition: dof_handler.h:286
typename ActiveSelector::active_face_iterator active_face_iterator
Definition: dof_handler.h:299
unsigned long long int global_dof_index
Definition: types.h:72
static::ExceptionBase & ExcMessage(std::string arg1)
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:408
const Triangulation< dim, spacedim > * tria
Definition: types.h:31
#define Assert(cond, exc)
Definition: exceptions.h:1227
types::global_dof_index n_dofs() const
const hp::FECollection< dim, spacedim > & get_fe_collection() const
unsigned int n_locally_owned_dofs() const
#define DeclException0(Exception0)
Definition: exceptions.h:385
const Triangulation< dim, spacedim > & get_triangulation() const
void set_index(const unsigned int level, const unsigned int dof_number, const unsigned int dofs_per_vertex, const types::global_dof_index index)
std::unique_ptr<::internal::DoFHandlerImplementation::DoFFaces< dim > > faces
Definition: dof_handler.h:1249
Definition: hp.h:102
std::vector< std::unique_ptr<::internal::DoFHandlerImplementation::DoFLevel< dim > > > levels
Definition: dof_handler.h:1237
const IndexSet & locally_owned_mg_dofs(const unsigned int level) const
std::unique_ptr< types::global_dof_index[]> indices
Definition: dof_handler.h:1190
bool has_active_dofs() const
const std::vector< IndexSet > & locally_owned_mg_dofs_per_processor(const unsigned int level) const
static const unsigned int dim
void save(Archive &ar, const unsigned int version) const
types::global_dof_index get_index(const unsigned int level, const unsigned int dof_number, const unsigned int dofs_per_vertex) const
const FiniteElement< dim, spacedim > & get_fe(const unsigned int index=0) const
types::global_dof_index n_boundary_dofs() const
unsigned int coarsest_level
Definition: dof_handler.h:1174
int index() const
void load(Archive &ar, const unsigned int version)
A small class collecting the different BlockIndices involved in global, multilevel and local computat...
Definition: block_info.h:96
static::ExceptionBase & ExcInvalidBoundaryIndicator()
typename ActiveSelector::cell_iterator cell_iterator
Definition: dof_handler.h:268
typename ActiveSelector::active_cell_iterator active_cell_iterator
Definition: dof_handler.h:240
const types::global_dof_index invalid_dof_index
Definition: types.h:188
const IndexSet & locally_owned_dofs() const
const std::vector< IndexSet > & locally_owned_dofs_per_processor() const
unsigned int boundary_id
Definition: types.h:111
std::vector< types::global_dof_index > vertex_dofs
Definition: dof_handler.h:1223
int level() const