From 042fd77873bd5d7445830ff7d5e1adc9d86c4beb Mon Sep 17 00:00:00 2001 From: David Wells Date: Tue, 24 May 2022 13:44:16 -0400 Subject: [PATCH] Mark some tests as depending on LAPACK. While we're at it - throw an exception if we don't have LAPACK in the class that uses it. --- source/non_matching/mesh_classifier.cc | 4 ++++ ...alues.output => fe_interface_values.with_lapack=on.output} | 0 ...nterface_values_non_standard_meshes.with_lapack=on.output} | 0 .../{fe_values.output => fe_values.with_lapack=on.output} | 0 ...lassifier.output => mesh_classifier.with_lapack=on.output} | 0 5 files changed, 4 insertions(+) rename tests/non_matching/{fe_interface_values.output => fe_interface_values.with_lapack=on.output} (100%) rename tests/non_matching/{fe_interface_values_non_standard_meshes.output => fe_interface_values_non_standard_meshes.with_lapack=on.output} (100%) rename tests/non_matching/{fe_values.output => fe_values.with_lapack=on.output} (100%) rename tests/non_matching/{mesh_classifier.output => mesh_classifier.with_lapack=on.output} (100%) diff --git a/source/non_matching/mesh_classifier.cc b/source/non_matching/mesh_classifier.cc index 0566abe4ac..d88a69e35a 100644 --- a/source/non_matching/mesh_classifier.cc +++ b/source/non_matching/mesh_classifier.cc @@ -321,6 +321,7 @@ namespace NonMatching dof_handler, level_set)) { +#ifdef DEAL_II_WITH_LAPACK const hp::FECollection &fe_collection = dof_handler.get_fe_collection(); for (unsigned int i = 0; i < fe_collection.size(); i++) @@ -333,6 +334,9 @@ namespace NonMatching "The elements in the FECollection of the incoming DoFHandler " "must have face support points.")); } +#else + AssertThrow(false, ExcNeedsLAPACK()); +#endif } diff --git a/tests/non_matching/fe_interface_values.output b/tests/non_matching/fe_interface_values.with_lapack=on.output similarity index 100% rename from tests/non_matching/fe_interface_values.output rename to tests/non_matching/fe_interface_values.with_lapack=on.output diff --git a/tests/non_matching/fe_interface_values_non_standard_meshes.output b/tests/non_matching/fe_interface_values_non_standard_meshes.with_lapack=on.output similarity index 100% rename from tests/non_matching/fe_interface_values_non_standard_meshes.output rename to tests/non_matching/fe_interface_values_non_standard_meshes.with_lapack=on.output diff --git a/tests/non_matching/fe_values.output b/tests/non_matching/fe_values.with_lapack=on.output similarity index 100% rename from tests/non_matching/fe_values.output rename to tests/non_matching/fe_values.with_lapack=on.output diff --git a/tests/non_matching/mesh_classifier.output b/tests/non_matching/mesh_classifier.with_lapack=on.output similarity index 100% rename from tests/non_matching/mesh_classifier.output rename to tests/non_matching/mesh_classifier.with_lapack=on.output -- 2.39.5