]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid including .cc files for split instantiations.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 26 May 2025 23:24:51 +0000 (17:24 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 26 May 2025 23:28:35 +0000 (17:28 -0600)
source/numerics/solution_transfer.cc
source/numerics/solution_transfer_inst2.cc
source/numerics/solution_transfer_inst3.cc
source/numerics/solution_transfer_inst4.cc

index 7bb3620d1e58520833889e9755996565bf7212d2..60b8cdeb63daaf1eb59c960ce817af3907a34067 100644 (file)
@@ -19,9 +19,8 @@
 DEAL_II_NAMESPACE_OPEN
 
 #define SPLIT_INSTANTIATIONS_COUNT 4
-#ifndef SPLIT_INSTANTIATIONS_INDEX
-#  define SPLIT_INSTANTIATIONS_INDEX 0
-#endif
+#define SPLIT_INSTANTIATIONS_INDEX 0
+
 #include "numerics/solution_transfer.inst"
 
 DEAL_II_NAMESPACE_CLOSE
index e54840b246d6a71424a8a36412399041e96207c8..60a0ca8974cce10f5ddff79137e08407034fdcf4 100644 (file)
 //
 // ------------------------------------------------------------------------
 
-// This file compiles the second quarter of the instantiations from
-// solution_transfer.cc to reduce the compilation unit (and memory consumption)
+#include <deal.II/numerics/solution_transfer.templates.h>
 
+
+DEAL_II_NAMESPACE_OPEN
+
+#define SPLIT_INSTANTIATIONS_COUNT 4
 #define SPLIT_INSTANTIATIONS_INDEX 1
-#include "solution_transfer.cc"
+
+#include "numerics/solution_transfer.inst"
+
+DEAL_II_NAMESPACE_CLOSE
index 608ea0d8bb8fb84c512b0e2dc2ec84906a4f7b0b..8b54853ca0db76c24b40d4fa612fbf86c30f9cce 100644 (file)
 //
 // ------------------------------------------------------------------------
 
-// This file compiles the third quarter of the instantiations from
-// solution_transfer.cc to reduce the compilation unit (and memory consumption)
+#include <deal.II/numerics/solution_transfer.templates.h>
 
+
+DEAL_II_NAMESPACE_OPEN
+
+#define SPLIT_INSTANTIATIONS_COUNT 4
 #define SPLIT_INSTANTIATIONS_INDEX 2
-#include "solution_transfer.cc"
+
+#include "numerics/solution_transfer.inst"
+
+DEAL_II_NAMESPACE_CLOSE
index de988d46f43281ea3c06053e36526d04043c6a23..7f096f83bc6c46a80b773631c3d02de42d43896b 100644 (file)
 //
 // ------------------------------------------------------------------------
 
-// This file compiles the last quarter of the instantiations from
-// solution_transfer.cc to reduce the compilation unit (and memory consumption)
+#include <deal.II/numerics/solution_transfer.templates.h>
 
+
+DEAL_II_NAMESPACE_OPEN
+
+#define SPLIT_INSTANTIATIONS_COUNT 4
 #define SPLIT_INSTANTIATIONS_INDEX 3
-#include "solution_transfer.cc"
+
+#include "numerics/solution_transfer.inst"
+
+DEAL_II_NAMESPACE_CLOSE

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.