From 4cfb0a8fd4917ebcde0b49b7615e2f0dec679e00 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Wed, 28 Feb 2018 18:00:26 +0100 Subject: [PATCH] add a test to make sure we can build p::d::Tria<1> --- tests/distributed_grids/1d_grid.cc | 38 ++++++++++++++++++++ tests/distributed_grids/1d_grid.debug.output | 11 ++++++ 2 files changed, 49 insertions(+) create mode 100644 tests/distributed_grids/1d_grid.cc create mode 100644 tests/distributed_grids/1d_grid.debug.output diff --git a/tests/distributed_grids/1d_grid.cc b/tests/distributed_grids/1d_grid.cc new file mode 100644 index 0000000000..5122682403 --- /dev/null +++ b/tests/distributed_grids/1d_grid.cc @@ -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 + + +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 index 0000000000..4b0ba416e0 --- /dev/null +++ b/tests/distributed_grids/1d_grid.debug.output @@ -0,0 +1,11 @@ + +DEAL:: +-------------------------------------------------------- +An error occurred in file 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) +-------------------------------------------------------- + -- 2.39.5