From: Daniel Arndt Date: Fri, 26 Jun 2020 13:25:51 +0000 (-0400) Subject: Allow FE_NedelecSZ to be used in FETools::get_fe_by_name X-Git-Tag: v9.3.0-rc1~1362^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dadda17354963c78e20fed9b348d442bc42181dd;p=dealii.git Allow FE_NedelecSZ to be used in FETools::get_fe_by_name --- diff --git a/include/deal.II/fe/fe_tools.templates.h b/include/deal.II/fe/fe_tools.templates.h index 784a5c9d66..c01b81eaa9 100644 --- a/include/deal.II/fe/fe_tools.templates.h +++ b/include/deal.II/fe/fe_tools.templates.h @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include @@ -1174,6 +1175,8 @@ namespace FETools std::make_unique>>(); result["FE_Nedelec"] = std::make_unique>>(); + result["FE_NedelecSZ"] = + std::make_unique>>(); result["FE_DGPNonparametric"] = std::make_unique>>(); result["FE_DGP"] = std::make_unique>>(); diff --git a/source/fe/fe_nedelec_sz.inst.in b/source/fe/fe_nedelec_sz.inst.in index 9d344ecc7c..0176ab9851 100644 --- a/source/fe/fe_nedelec_sz.inst.in +++ b/source/fe/fe_nedelec_sz.inst.in @@ -17,7 +17,5 @@ for (deal_II_dimension : DIMENSIONS) { -#if deal_II_dimension != 1 template class FE_NedelecSZ; -#endif } diff --git a/tests/fe/get_fe_by_name_01.cc b/tests/fe/get_fe_by_name_01.cc index f728cdcba4..c7d071e6ec 100644 --- a/tests/fe/get_fe_by_name_01.cc +++ b/tests/fe/get_fe_by_name_01.cc @@ -87,6 +87,8 @@ main() gen.generate<3, 3>("FE_RaviartThomasNodal(1)"); gen.generate<2, 2>("FE_Nedelec(1)"); gen.generate<3, 3>("FE_Nedelec(1)"); + gen.generate<2, 2>("FE_NedelecSZ(1)"); + gen.generate<3, 3>("FE_NedelecSZ(1)"); gen.generate_all_dim("FE_DGPNonparametric(1)"); gen.generate_all_dim("FE_DGPMonomial(1)"); gen.generate_all_dim("FE_FaceQ(1)"); @@ -109,6 +111,8 @@ main() gen.generate<3, 3>("FE_RaviartThomasNodal(2)"); gen.generate<2, 2>("FE_Nedelec(2)"); gen.generate<3, 3>("FE_Nedelec(2)"); + gen.generate<2, 2>("FE_NedelecSZ(2)"); + gen.generate<3, 3>("FE_NedelecSZ(2)"); gen.generate_all_dim("FE_DGPNonparametric(2)"); gen.generate_all_dim("FE_DGPMonomial(2)"); gen.generate_all_dim("FE_FaceQ(2)"); diff --git a/tests/fe/get_fe_by_name_01.output b/tests/fe/get_fe_by_name_01.output index 8bb30049ca..096155d2c0 100644 --- a/tests/fe/get_fe_by_name_01.output +++ b/tests/fe/get_fe_by_name_01.output @@ -53,6 +53,12 @@ DEAL::FE_Nedelec<2>(1) DEAL::Read FE_Nedelec(1) DEAL::Generated : DEAL::FE_Nedelec<3>(1) +DEAL::Read FE_NedelecSZ(1) +DEAL::Generated : +DEAL::FE_NedelecSZ<2>(1) +DEAL::Read FE_NedelecSZ(1) +DEAL::Generated : +DEAL::FE_NedelecSZ<3>(1) DEAL::Read FE_DGPNonparametric(1) DEAL::Generated : DEAL::FE_DGPNonparametric<1>(1) @@ -146,6 +152,12 @@ DEAL::FE_Nedelec<2>(2) DEAL::Read FE_Nedelec(2) DEAL::Generated : DEAL::FE_Nedelec<3>(2) +DEAL::Read FE_NedelecSZ(2) +DEAL::Generated : +DEAL::FE_NedelecSZ<2>(2) +DEAL::Read FE_NedelecSZ(2) +DEAL::Generated : +DEAL::FE_NedelecSZ<3>(2) DEAL::Read FE_DGPNonparametric(2) DEAL::Generated : DEAL::FE_DGPNonparametric<1>(2)