From: Denis Davydov Date: Wed, 28 Feb 2018 17:00:26 +0000 (+0100) Subject: add a test to make sure we can build p::d::Tria<1> X-Git-Tag: v9.0.0-rc1~372^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5975%2Fhead;p=dealii.git add a test to make sure we can build p::d::Tria<1> --- 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) +-------------------------------------------------------- +