]> https://gitweb.dealii.org/ - dealii.git/commitdiff
split instantiations 3820/head
authorTimo Heister <timo.heister@gmail.com>
Tue, 17 Jan 2017 22:28:07 +0000 (17:28 -0500)
committerTimo Heister <timo.heister@gmail.com>
Tue, 17 Jan 2017 22:33:22 +0000 (17:33 -0500)
This splits some large files to compile with <2.5GB RAM with gcc again.

gcc 4.8.4 and using ulimit -v 2500000 except for the linking step.

source/fe/mapping_fe_field.cc
source/fe/mapping_fe_field_inst2.cc [new file with mode: 0644]
source/numerics/vector_tools_project.cc
source/numerics/vector_tools_project_inst2.cc [new file with mode: 0644]
source/numerics/vector_tools_project_inst3.cc [new file with mode: 0644]

index 754c144111ea318a98786a93bc88b5007d7b4f3b..5fa1a358d21c00e1c41b8400474c4bf4280355ed 100644 (file)
@@ -1990,6 +1990,10 @@ MappingFEField<dim,spacedim,VectorType,DoFHandlerType>::update_internal_dofs
 }
 
 // explicit instantiations
+#define SPLIT_INSTANTIATIONS_COUNT 2
+#ifndef SPLIT_INSTANTIATIONS_INDEX
+#define SPLIT_INSTANTIATIONS_INDEX 0
+#endif
 #include "mapping_fe_field.inst"
 
 
diff --git a/source/fe/mapping_fe_field_inst2.cc b/source/fe/mapping_fe_field_inst2.cc
new file mode 100644 (file)
index 0000000..efe9d52
--- /dev/null
@@ -0,0 +1,18 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2017 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+
+#define SPLIT_INSTANTIATIONS_INDEX 1
+#include "mapping_fe_field.cc"
index 3fd0d4b8f378c55c6fc47cbd882c1774e11f9dc2..5848b27b53bf55f44d116596e78d3d671102ac81 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 1998 - 2014 by the deal.II authors
+// Copyright (C) 1998 - 2017 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
 DEAL_II_NAMESPACE_OPEN
 
 // ---------------------------- explicit instantiations --------------------
+#define SPLIT_INSTANTIATIONS_COUNT 3
+#ifndef SPLIT_INSTANTIATIONS_INDEX
+#define SPLIT_INSTANTIATIONS_INDEX 0
+#endif
 #include "vector_tools_project.inst"
 
 DEAL_II_NAMESPACE_CLOSE
diff --git a/source/numerics/vector_tools_project_inst2.cc b/source/numerics/vector_tools_project_inst2.cc
new file mode 100644 (file)
index 0000000..cc2bb87
--- /dev/null
@@ -0,0 +1,18 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2017 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+
+#define SPLIT_INSTANTIATIONS_INDEX 1
+#include "vector_tools_project.cc"
diff --git a/source/numerics/vector_tools_project_inst3.cc b/source/numerics/vector_tools_project_inst3.cc
new file mode 100644 (file)
index 0000000..37ca69f
--- /dev/null
@@ -0,0 +1,18 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2017 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+
+#define SPLIT_INSTANTIATIONS_INDEX 2
+#include "vector_tools_project.cc"

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.