]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a test to avoid this problem from happening again in the future. 181/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 29 Sep 2014 11:38:20 +0000 (06:38 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 29 Sep 2014 11:38:20 +0000 (06:38 -0500)
tests/base/boost_fusion.cc [new file with mode: 0644]
tests/base/boost_fusion.output [new file with mode: 0644]

diff --git a/tests/base/boost_fusion.cc b/tests/base/boost_fusion.cc
new file mode 100644 (file)
index 0000000..0bdb3fc
--- /dev/null
@@ -0,0 +1,38 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2014 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.
+//
+// ---------------------------------------------------------------------
+
+
+// when updating BOOST to 1.56 in the summer of 2014, we thought we
+// could get rid of BOOST.fusion. but this doesn't work for some users
+// since boost/math/special_functions/erf.hpp uses it. this test is a
+// reminder that we can't do this again in the future
+
+#include "../tests.h"
+#include <iomanip>
+#include <fstream>
+#include <cmath>
+
+#include <boost/math/special_functions/erf.hpp>
+
+
+int main()
+{
+  std::ofstream logfile("output");
+  deallog.attach(logfile);
+  deallog.depth_console(0);
+  deallog.threshold_double(1.e-10);
+
+  deallog << boost::math::erf (0.5) << std::endl;
+}
diff --git a/tests/base/boost_fusion.output b/tests/base/boost_fusion.output
new file mode 100644 (file)
index 0000000..40fb36c
--- /dev/null
@@ -0,0 +1,2 @@
+
+DEAL::0.520500

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.