// check register_data_attach and notify_ready_to_unpack
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// Test constructor/reinit of BlockVector with IndexSets
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/lac/petsc_parallel_block_vector.h>
#include <deal.II/lac/trilinos_parallel_block_vector.h>
#include <deal.II/base/index_set.h>
// this test does not use any cell weights, but the following ones will
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// same mesh as if there had been no weights at all to begin with
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// simply don't attach any weights at all
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// should still be equal
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// should yield non-equal mesh sizes
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// like _03, but with a larger spread of weights
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// remaining cells even close to equally
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// stores 0/84/172 cells in 2d, rather than the expected 4/126/126
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
+++ /dev/null
-// ---------------------------------------------------------------------
-//
-// Copyright (C) 2008 - 2015 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.
-//
-// ---------------------------------------------------------------------
-
-
-#include "../tests.h"
-#include <deal.II/base/logstream.h>
-#include <deal.II/base/utilities.h>
-#include <deal.II/distributed/tria.h>
-#include <deal.II/grid/tria.h>
-#include <deal.II/grid/grid_out.h>
-#include <fstream>
-#include <iterator>
-#include <iomanip>
-#include <unistd.h>
-
-
-
-
-template <int dim>
-void write_vtk (const parallel::distributed::Triangulation<dim> &tria,
- const char *filename)
-{
- deallog << "Checksum: "
- << tria.get_checksum ()
- << std::endl;
-
- tria.write_mesh_vtk (filename);
-
- if (false)
- {
-
- int myid = Utilities::MPI::this_mpi_process (MPI_COMM_WORLD);
-
-
- // copy the .pvtu and .vtu files
- // into the logstream
- if (myid==0)
- {
- std::ifstream in((std::string(filename) + ".pvtu").c_str());
- while (in)
- {
- std::string s;
- std::getline(in, s);
- deallog.get_file_stream() << s << "\n";
- }
- }
-
- if (myid==0)
- {
- std::ifstream in((std::string(filename) + "_0000.vtu").c_str());
- while (in)
- {
- std::string s;
- std::getline(in, s);
- deallog.get_file_stream() << s << "\n";
- }
- }
- }
-}
-
-
-template <int dim>
-void assert_tria_equal(const Triangulation<dim> &a, const Triangulation<dim> &b)
-{
- Assert (a.n_active_cells() == b.n_active_cells(),
- ExcInternalError());
-
- std::string file1 = "tmp_grid1";
- std::string file2 = "tmp_grid2";
-
- std::ofstream out1(file1.c_str());
- GridOut().write_gnuplot (a, out1);
- std::ofstream out2(file2.c_str());
- GridOut().write_gnuplot (b, out2);
-
- out1.close();
- out2.close();
-
- //compare the two files
- std::string cmd = std::string("diff -q ")+file1+std::string(" ")+file2;
- AssertThrow (system(cmd.c_str()) == 0, ExcInternalError());
-
- //and delete them
- std::remove (file1.c_str());
- std::remove (file2.c_str());
-}
-
-
-/*
- * Do not use a template here to work around an overload resolution issue with clang and
- * enabled C++11 mode.
- *
- * - Maier 2013
- */
-LogStream &
-operator << (LogStream &out,
- const std::vector<unsigned int> &v)
-{
- for (unsigned int i=0; i<v.size(); ++i)
- out << v[i] << (i == v.size()-1 ? "" : " ");
- return out;
-}
-
-LogStream &
-operator << (LogStream &out,
- const std::vector<long long unsigned int> &v)
-{
- for (unsigned int i=0; i<v.size(); ++i)
- out << v[i] << (i == v.size()-1 ? "" : " ");
- return out;
-}
-
-LogStream &
-operator << (LogStream &out,
- const std::vector<double> &v)
-{
- for (unsigned int i=0; i<v.size(); ++i)
- out << v[i] << (i == v.size()-1 ? "" : " ");
- return out;
-}
// Test Tria<2,3> and DataOutput.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// test Triangulation::communicate_locally_moved_vertices()
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// only move some of the vertices
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// value of the interpolation must be the mean of the linear function
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/function.h>
#include <deal.II/base/tensor.h>
// test ConstraintMatrix::condense(in, out)
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// ghost elements. check that this happens.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/base/function.h>
// Test DoFTools::extract_boundary_dofs for parallel DoFHandlers
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/distributed/tria.h>
#include <deal.II/grid/grid_generator.h>
// test DoFTools::extract_constant_modes
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// test DoFTools::extract_constant_modes with FE_Q_DG0
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// same result as DoFTools::extract_dofs_with_subdomain_association()
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// value of the interpolation must be the mean of the linear function
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/function.h>
#include <deal.II/base/tensor.h>
// didn't expect getting a ghost cell.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/function.h>
#include <deal.II/base/tensor.h>
// make sure only one processor finds a locally-owned cell around a point
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// Test VectorTools::integrate_difference for parallel computations.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/function.h>
#include <deal.II/base/tensor.h>
// wrong with having too many tests, though.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/base/function.h>
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/base/function.h>
// that interpolate() does not call compress()!
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/function.h>
#include <deal.II/base/tensor.h>
// test FETools::interpolation_difference
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/function.h>
#include <deal.II/base/tensor.h>
// check CellAccessor::is_locally_owned
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// Test DoFTools::make_zero_boundary_constraints for parallel DoFHandlers
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/distributed/tria.h>
#include <deal.II/grid/grid_generator.h>
// Test DoFTools::map_dofs_to_support_points for parallel DoFHandlers
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/distributed/tria.h>
#include <deal.II/grid/grid_generator.h>
// check level_subdomain_id for distributed Triangulation
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// distribute dofs and mgdofs for a parallel Triangulation
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
*/
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
*/
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
*/
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
*/
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// Test interaction with p4est with a few simple coarse grids in 2d
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// Simple mesh.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// Refine one corner.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// Mesh: shell with random refinement
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/base/function.h>
// Mesh: shell with random refinement
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/base/function.h>
// create a parallel DoFHandler
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// create a parallel DoFHandler on a 2d adaptively refined mesh
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// check correct transfer of DoF on ghostcells.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// check DoFTools::extract_locally_active_dofs
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// during development
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// check existence of ghost layer in 2d
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// check existence of ghost layer in 2d with global refinement
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// one global refinement of a 2d square with p4est
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// refine bottom-left cell after one global refinement of a square in 2d and check p4est-output
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// recursively refine a 2d mesh
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// test p4est grid interaction with one cell in 2d
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// Mesh: 3d Random refinement.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// with Trilinos
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// Mesh: shell with random refinement
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/base/function.h>
// Mesh: hypercube where 7 of 8 octants are refined.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/distributed/tria.h>
#include <deal.II/dofs/dof_handler.h>
#include <deal.II/dofs/dof_tools.h>
// 3d mesh.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// recursively refine a 3d mesh
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
//[t500u:16597] [22] ./p4est_3d_refine_02/exe(_Z4testILi3EEvv+0x109) [0x410f1c]
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
*/
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// apparently rather subtle and indeed pretty frustrating bug...
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// the format stays as it is right now.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// is non-contiguous
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// recursively refine a 2d mesh to a very high level
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// save and load a triangulation
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// save and load a triangulation with one solution vector
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// crashes right now
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// save and load a triangulation with a different number of cpus
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// let processors write ghost_targets, import_indices, import_targets to file
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/utilities.h>
#include <deal.II/base/index_set.h>
#include <deal.II/base/partitioner.h>
// (uses MPI IO)
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/quadrature_lib.h>
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/quadrature_lib.h>
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
// test manual repartitioning
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// test manual repartitioning and transfering data
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// test that a second call to repartition() doesn't do anything
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// cells. this was fixed with r24007
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/base/function.h>
// begin(i) should work even if we have no cells on that level
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// compare
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/tensor.h>
#include <deal.II/grid/tria.h>
// has_ghost_elements(). this shouldn't happen.
#include "../tests.h"
-#include "coarse_grid_common.h"
#include <deal.II/base/logstream.h>
#include <deal.II/base/function.h>
#include <deal.II/base/tensor.h>
#include <iostream>
#include <sstream>
#include <iomanip>
+#include <vector>
#if defined(DEBUG) && defined(DEAL_II_HAVE_FP_EXCEPTIONS)
# include <cfenv>
DEAL_II_NAMESPACE_CLOSE
+/*
+ * Do not use a template here to work around an overload resolution issue with clang and
+ * enabled C++11 mode.
+ *
+ * - Maier 2013
+ */
+LogStream &
+operator << (LogStream &out,
+ const std::vector<unsigned int> &v)
+{
+ for (unsigned int i=0; i<v.size(); ++i)
+ out << v[i] << (i == v.size()-1 ? "" : " ");
+ return out;
+}
+
+LogStream &
+operator << (LogStream &out,
+ const std::vector<long long unsigned int> &v)
+{
+ for (unsigned int i=0; i<v.size(); ++i)
+ out << v[i] << (i == v.size()-1 ? "" : " ");
+ return out;
+}
+
+LogStream &
+operator << (LogStream &out,
+ const std::vector<double> &v)
+{
+ for (unsigned int i=0; i<v.size(); ++i)
+ out << v[i] << (i == v.size()-1 ? "" : " ");
+ return out;
+}
+
#endif // dealii__tests_h