From: Timo Heister Date: Mon, 25 Jan 2021 17:12:34 +0000 (-0500) Subject: use FE info X-Git-Tag: v9.3.0-rc1~550^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bde9498ac86e093338ee3c31a42cad1ee655fe39;p=dealii.git use FE info --- diff --git a/source/fe/mapping_fe.cc b/source/fe/mapping_fe.cc index b84cad10f3..7f6adef6a5 100644 --- a/source/fe/mapping_fe.cc +++ b/source/fe/mapping_fe.cc @@ -2321,9 +2321,7 @@ MappingFE::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; } diff --git a/source/fe/mapping_fe_field.cc b/source/fe/mapping_fe_field.cc index 9d1d800389..51a9a4b86d 100644 --- a/source/fe/mapping_fe_field.cc +++ b/source/fe/mapping_fe_field.cc @@ -354,11 +354,7 @@ MappingFEField::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; }