]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add a test to make sure we can build p::d::Tria<1> 5975/head
authorDenis Davydov <davydden@gmail.com>
Wed, 28 Feb 2018 17:00:26 +0000 (18:00 +0100)
committerDenis Davydov <davydden@gmail.com>
Thu, 1 Mar 2018 07:35:20 +0000 (08:35 +0100)
tests/distributed_grids/1d_grid.cc [new file with mode: 0644]
tests/distributed_grids/1d_grid.debug.output [new file with mode: 0644]

diff --git a/tests/distributed_grids/1d_grid.cc b/tests/distributed_grids/1d_grid.cc
new file mode 100644 (file)
index 0000000..5122682
--- /dev/null
@@ -0,0 +1,38 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2008 - 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.
+//
+// ---------------------------------------------------------------------
+
+
+
+// Test that we can compile p::d::Tria<1>
+
+#include "../tests.h"
+#include <deal.II/distributed/tria.h>
+
+
+int main(int argc, char *argv[])
+{
+  deal_II_exceptions::disable_abort_on_exception();
+  Utilities::MPI::MPI_InitFinalize mpi_initialization (argc, argv, 1);
+  initlog();
+
+  try
+    {
+      parallel::distributed::Triangulation<1> tr(MPI_COMM_WORLD);
+    }
+  catch (const std::exception &exc)
+    {
+      deallog << exc.what() << std::endl;
+    }
+}
diff --git a/tests/distributed_grids/1d_grid.debug.output b/tests/distributed_grids/1d_grid.debug.output
new file mode 100644 (file)
index 0000000..4b0ba41
--- /dev/null
@@ -0,0 +1,11 @@
+
+DEAL::
+--------------------------------------------------------
+An error occurred in file <tria.cc> in function
+    dealii::parallel::distributed::Triangulation<1, 1>::Triangulation(MPI_Comm, const typename dealii::Triangulation<1, spacedim>::MeshSmoothing, const dealii::parallel::distributed::Triangulation<1, spacedim>::Settings) [dim = 1, spacedim = 1]
+The violated condition was: 
+    false
+Additional information: 
+    (none)
+--------------------------------------------------------
+

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.