]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove boost/geometry.hpp from Point 9789/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 1 Apr 2020 19:56:39 +0000 (15:56 -0400)
committerTimo Heister <timo.heister@gmail.com>
Wed, 1 Apr 2020 20:09:58 +0000 (16:09 -0400)
We are including point.h in large parts of deal.II and the
boost/geometry/ header is a shortcut to include all of boost geometry.
Instead, only selectively include the parts we actually need. This
should speed up compilation of deal.II.

include/deal.II/base/bounding_box.h
include/deal.II/base/point.h
source/base/utilities.cc

index 9dfc5302b7854e597c86aa665d67a42a3dcfa5d0..60ee0bb4a404a9fe869e762cebd41d88948960ca 100644 (file)
 #include <deal.II/base/point.h>
 #include <deal.II/base/utilities.h>
 
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
+#include <boost/geometry/algorithms/envelope.hpp>
+#include <boost/geometry/geometries/multi_point.hpp>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
+
 DEAL_II_NAMESPACE_OPEN
 
 /**
index d6a109c10e59c5c0d5e39c62a43555552b443cf6..04199d064df3be587809783f9d2bafd0d1236c46 100644 (file)
@@ -23,7 +23,8 @@
 #include <deal.II/base/tensor.h>
 
 DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
-#include <boost/geometry.hpp>
+#include <boost/geometry/core/cs.hpp>
+#include <boost/geometry/geometries/point.hpp>
 DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 #include <cmath>
index f09f322969180b104649169efd72b84eaf2715ff..d809793fa9778f3d586c58c57c7c6227ac5a724b 100644 (file)
@@ -30,6 +30,7 @@
 
 DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #include <boost/iostreams/copy.hpp>
+#include <boost/lexical_cast.hpp>
 #include <boost/random.hpp>
 DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 

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.