]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix undefined symbol CellAccessor<3,2>::subdomain_id that appears for some compilers...
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 5 Apr 2014 15:03:29 +0000 (15:03 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 5 Apr 2014 15:03:29 +0000 (15:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@32718 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/grid/tria_accessor.templates.h
deal.II/source/grid/tria_accessor.cc

index 19bb7ad61a3148733855692ed674fc1dcc00c4ec..cdfd33e40a0c4943800bb39669154a8d18d6c168 100644 (file)
@@ -2952,6 +2952,18 @@ CellAccessor<dim,spacedim>::is_artificial () const
 
 
 
+template <int dim, int spacedim>
+inline
+types::subdomain_id
+CellAccessor<dim, spacedim>::subdomain_id () const
+{
+  Assert (this->used(), TriaAccessorExceptions::ExcCellNotUsed());
+  Assert (this->active(), ExcMessage("subdomains only work on active cells!"));
+  return this->tria->levels[this->present_level]->subdomain_ids[this->present_index];
+}
+
+
+
 template <int dim, int spacedim>
 inline
 unsigned int
index 3050f7448d3f09a983f2c84932a328add5894f9c..395ad3a35dee840f24b61cbe096c471cc234044f 100644 (file)
@@ -1330,16 +1330,6 @@ void CellAccessor<dim, spacedim>::recursively_set_material_id (const types::mate
 
 
 
-template <int dim, int spacedim>
-types::subdomain_id CellAccessor<dim, spacedim>::subdomain_id () const
-{
-  Assert (this->used(), TriaAccessorExceptions::ExcCellNotUsed());
-  Assert (this->active(), ExcMessage("subdomains only work on active cells!"));
-  return this->tria->levels[this->present_level]->subdomain_ids[this->present_index];
-}
-
-
-
 template <int dim, int spacedim>
 void
 CellAccessor<dim, spacedim>::set_subdomain_id (const types::subdomain_id new_subdomain_id) const

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.