]> https://gitweb.dealii.org/ - dealii.git/commitdiff
instantiate DoFTools::make_boundary_sparsity_pattern() for complex scalars
authorDenis Davydov <davydden@gmail.com>
Sun, 28 Feb 2016 10:28:23 +0000 (11:28 +0100)
committerDenis Davydov <davydden@gmail.com>
Sun, 28 Feb 2016 12:34:26 +0000 (13:34 +0100)
source/dofs/dof_tools_sparsity.inst.in

index 2aa9dabccfee1b6c5ec77d3b515dd48eb8ab3433..1fadf26751c81095d53ea39a70a450fc3f187328 100644 (file)
@@ -55,6 +55,48 @@ for (scalar: REAL_SCALARS; SP : SPARSITY_PATTERNS; deal_II_dimension : DIMENSION
      
   }
 
+for (scalar: COMPLEX_SCALARS; SP : SPARSITY_PATTERNS; deal_II_dimension : DIMENSIONS)
+  {
+    template void
+    DoFTools::make_boundary_sparsity_pattern<DoFHandler<deal_II_dimension>,SP,scalar>
+    (const DoFHandler<deal_II_dimension>& dof,
+     const std::map<types::boundary_id, const Function<deal_II_dimension,scalar>*> &boundary_ids,
+     const std::vector<types::global_dof_index>  &dof_to_boundary_mapping,
+     SP    &sparsity);
+     
+    template void
+    DoFTools::make_boundary_sparsity_pattern<hp::DoFHandler<deal_II_dimension>,SP,scalar>
+    (const hp::DoFHandler<deal_II_dimension>& dof,
+     const std::map<types::boundary_id, const Function<deal_II_dimension,scalar>*> &boundary_ids,
+     const std::vector<types::global_dof_index>  &dof_to_boundary_mapping,
+     SP    &sparsity);
+     
+#if deal_II_dimension < 3
+    template void
+    DoFTools::make_boundary_sparsity_pattern<hp::DoFHandler<deal_II_dimension,deal_II_dimension+1>,SP,scalar>
+    (const hp::DoFHandler<deal_II_dimension,deal_II_dimension+1>& dof,
+     const std::map<types::boundary_id, const Function<deal_II_dimension+1,scalar>*>  &boundary_ids,
+     const std::vector<types::global_dof_index>  &dof_to_boundary_mapping,
+     SP    &sparsity);
+     
+    template void
+    DoFTools::make_boundary_sparsity_pattern<DoFHandler<deal_II_dimension,deal_II_dimension+1>,SP,scalar>
+    (const DoFHandler<deal_II_dimension,deal_II_dimension+1>& dof,
+     const std::map<types::boundary_id, const Function<deal_II_dimension+1,scalar>*> &boundary_ids,
+     const std::vector<types::global_dof_index>  &dof_to_boundary_mapping,
+     SP    &sparsity);
+
+    //template void
+    //DoFTools::make_boundary_sparsity_pattern<hp::DoFHandler<deal_II_dimension,deal_II_dimension+1>,SP,scalar>
+    //(const hp::DoFHandler<deal_II_dimension,deal_II_dimension+1>& dof,
+    // const std::map<types::boundary_id, const Function<deal_II_dimension+1,scalar>*> &boundary_ids,
+    // const std::vector<types::global_dof_index>  &dof_to_boundary_mapping,
+    // SP    &sparsity);
+  
+#endif     
+     
+  }
+
 for (SP : SPARSITY_PATTERNS; deal_II_dimension : DIMENSIONS)
   {
     template void

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.