]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Instantiate hp version of make_flux_sparsity_pattern in 1D.
authorSimon Sticko <simon@sticko.se>
Fri, 17 Jan 2020 16:34:48 +0000 (17:34 +0100)
committerSimon Sticko <simon@sticko.se>
Mon, 20 Jan 2020 09:31:03 +0000 (10:31 +0100)
The version of make_flux_sparsity_pattern that takes cell and face
couplings is not instantiated for hp::DoFHandler in 1D. Trying to
compile code using it leads to a linking error. Instantiate the
function.

source/dofs/dof_tools_sparsity.inst.in

index 43d478fa54ec55f768c7468cd5b822f50f5da57b..f73035578f86fe2d8688451c1942558b74d8fef7 100644 (file)
@@ -212,8 +212,6 @@ for (SP : SPARSITY_PATTERNS; deal_II_dimension : DIMENSIONS;
       const bool,
       const types::subdomain_id);
 
-#if deal_II_dimension > 1
-
     template void
     DoFTools::make_flux_sparsity_pattern<hp::DoFHandler<deal_II_dimension>, SP>(
       const hp::DoFHandler<deal_II_dimension> &dof,
@@ -224,8 +222,6 @@ for (SP : SPARSITY_PATTERNS; deal_II_dimension : DIMENSIONS;
       const Table<2, Coupling> &,
       const types::subdomain_id);
 
-#endif
-
 #if deal_II_dimension < 3
 
     template void DoFTools::make_sparsity_pattern<
@@ -341,8 +337,6 @@ for (SP : SPARSITY_PATTERNS; deal_II_dimension : DIMENSIONS)
       const Table<2, Coupling> &,
       const types::subdomain_id);
 
-#if deal_II_dimension > 1
-
     template void
     DoFTools::make_flux_sparsity_pattern<hp::DoFHandler<deal_II_dimension>, SP>(
       const hp::DoFHandler<deal_II_dimension> &dof,
@@ -351,8 +345,6 @@ for (SP : SPARSITY_PATTERNS; deal_II_dimension : DIMENSIONS)
       const Table<2, Coupling> &,
       const types::subdomain_id);
 
-#endif
-
 #if deal_II_dimension < 3
 
     template void DoFTools::make_sparsity_pattern<

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.