From bde9498ac86e093338ee3c31a42cad1ee655fe39 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 25 Jan 2021 12:12:34 -0500 Subject: [PATCH] use FE info --- source/fe/mapping_fe.cc | 4 +--- source/fe/mapping_fe_field.cc | 6 +----- 2 files changed, 2 insertions(+), 8 deletions(-) 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; } -- 2.39.5