From 4bb223708b34b9eecaaa1f938e0d59cd46a74a3f Mon Sep 17 00:00:00 2001
From: Timo Heister <timo.heister@gmail.com>
Date: Sat, 26 Jun 2021 13:38:26 -0400
Subject: [PATCH] add missing inst

fixes #12501 and #12490
---
 .../mg_level_global_transfer.inst.in          | 20 +++++++++----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/source/multigrid/mg_level_global_transfer.inst.in b/source/multigrid/mg_level_global_transfer.inst.in
index 2d62976add..e09e560041 100644
--- a/source/multigrid/mg_level_global_transfer.inst.in
+++ b/source/multigrid/mg_level_global_transfer.inst.in
@@ -50,18 +50,16 @@ for (deal_II_dimension : DIMENSIONS)
     MGLevelGlobalTransfer<LinearAlgebra::distributed::Vector<float>>::
       fill_and_communicate_copy_indices<deal_II_dimension, deal_II_dimension>(
         const DoFHandler<deal_II_dimension, deal_II_dimension> &mg_dof);
+  }
+
+for (deal_II_dimension : DIMENSIONS; S1, S2 : REAL_SCALARS)
+  {
     template void
-    MGLevelGlobalTransfer<LinearAlgebra::distributed::Vector<float>>::
-      copy_to_mg(const DoFHandler<deal_II_dimension> &,
-                 MGLevelObject<LinearAlgebra::distributed::Vector<float>> &,
-                 const LinearAlgebra::distributed::Vector<float> &,
-                 const bool) const;
-    template void
-    MGLevelGlobalTransfer<LinearAlgebra::distributed::Vector<double>>::
-      copy_to_mg(const DoFHandler<deal_II_dimension> &,
-                 MGLevelObject<LinearAlgebra::distributed::Vector<double>> &,
-                 const LinearAlgebra::distributed::Vector<double> &,
-                 const bool) const;
+    MGLevelGlobalTransfer<LinearAlgebra::distributed::Vector<S1>>::copy_to_mg(
+      const DoFHandler<deal_II_dimension> &,
+      MGLevelObject<LinearAlgebra::distributed::Vector<S1>> &,
+      const LinearAlgebra::distributed::Vector<S2> &,
+      const bool) const;
   }
 
 for (deal_II_dimension : DIMENSIONS; S1, S2 : REAL_SCALARS)
-- 
2.39.5