]> https://gitweb.dealii.org/ - dealii.git/commitdiff
use FE info 11606/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 25 Jan 2021 17:12:34 +0000 (12:12 -0500)
committerTimo Heister <timo.heister@gmail.com>
Mon, 25 Jan 2021 17:12:34 +0000 (12:12 -0500)
source/fe/mapping_fe.cc
source/fe/mapping_fe_field.cc

index b84cad10f3b98e33d16169190379f358915bceaf..7f6adef6a51317c06918b9e286435b829658e343 100644 (file)
@@ -2321,9 +2321,7 @@ MappingFE<dim, spacedim>::is_compatible_with(
                     Utilities::to_string(cell_type.get_dimension()) +
                     " ) do not agree."));
 
-  // TODO: query fe->reference_cell() to compare once is exists.
-
-  return true;
+  return fe->reference_cell_type() == cell_type;
 }
 
 
index 9d1d800389b79cf6f07fdc6a0abe26a4c1b15806..51a9a4b86d6f3a53ce3c137a87b6deabdb131b1e 100644 (file)
@@ -354,11 +354,7 @@ MappingFEField<dim, spacedim, VectorType, void>::is_compatible_with(
                     Utilities::to_string(cell_type.get_dimension()) +
                     " ) do not agree."));
 
-
-  // TODO: check euler_dof_handler->get_fe()
-
-
-  return true;
+  return euler_dof_handler->get_fe().reference_cell_type() == cell_type;
 }
 
 

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.