Skip to content

Commit

Permalink
Merge pull request #2383 from tjhei/rel2.0.1-pick-depr
Browse files Browse the repository at this point in the history
[2.0.1] cherry-pick #2292 and #2329
  • Loading branch information
bangerth authored Jun 22, 2018
2 parents 2f2d578 + 05c18eb commit f60eed5
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 11 deletions.
2 changes: 2 additions & 0 deletions include/aspect/geometry_model/spherical_shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
#include <aspect/geometry_model/interface.h>
#include <aspect/simulator_access.h>

#if !DEAL_II_VERSION_GTE(9,0,0)
#include <deal.II/grid/tria_boundary_lib.h>
#endif
#include <deal.II/grid/manifold_lib.h>

namespace aspect
Expand Down
15 changes: 15 additions & 0 deletions include/aspect/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <deal.II/lac/trilinos_precondition.h>
#endif

#if DEAL_II_VERSION_GTE(9,1,0)
# include <deal.II/lac/affine_constraints.h>
#endif
#include <deal.II/lac/generic_linear_algebra.h>

#include <boost/archive/binary_oarchive.hpp>
Expand All @@ -48,6 +51,18 @@ DEAL_II_ENABLE_EXTRA_DIAGNOSTICS

namespace aspect
{
#if DEAL_II_VERSION_GTE(9,1,0)
/**
* The ConstraintMatrix class was deprecated in deal.II 9.1 in favor
* of AffineConstraints. To make the name available for ASPECT
* nonetheless, use a `using` declaration. This injects the name
* into the `aspect` namespace, where it is visible before the
* deprecated name in the `dealii` namespace, thereby suppressing
* the deprecation message.
*/
using ConstraintMatrix = class dealii::AffineConstraints<double>;
#endif

/**
* The following are a set of global constants which may be used by ASPECT:
* (for sources of data and values used by ASPECT, see source/global.cc)
Expand Down
4 changes: 3 additions & 1 deletion include/aspect/simulator_signals.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
#include <aspect/parameters.h>

#include <deal.II/base/parameter_handler.h>
#include <deal.II/lac/constraint_matrix.h>
#if !DEAL_II_VERSION_GTE(9,1,0)
# include <deal.II/lac/constraint_matrix.h>
#endif

#include <boost/signals2.hpp>

Expand Down
4 changes: 3 additions & 1 deletion source/geometry_model/chunk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
#include <deal.II/grid/tria_iterator.h>
#include <deal.II/grid/tria_accessor.h>
#include <deal.II/grid/grid_tools.h>

#if !DEAL_II_VERSION_GTE(9,0,0)
#include <deal.II/grid/tria_boundary_lib.h>
#include <deal.II/grid/manifold_lib.h>
#endif


namespace aspect
Expand Down
4 changes: 4 additions & 0 deletions source/geometry_model/ellipsoidal_chunk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
#include <aspect/geometry_model/ellipsoidal_chunk.h>
#include <aspect/utilities.h>
#include <deal.II/grid/tria_iterator.h>

#if !DEAL_II_VERSION_GTE(9,0,0)
#include <deal.II/grid/tria_boundary_lib.h>
#endif

#include <deal.II/grid/tria_accessor.h>
#include <deal.II/grid/grid_generator.h>
#include <deal.II/grid/grid_tools.h>
Expand Down
4 changes: 3 additions & 1 deletion source/geometry_model/sphere.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
#include <aspect/geometry_model/initial_topography_model/zero_topography.h>

#include <deal.II/grid/grid_generator.h>
#include <deal.II/grid/tria_boundary_lib.h>

#if !DEAL_II_VERSION_GTE(9,0,0)
#include <deal.II/grid/tria_boundary_lib.h>
#endif

namespace aspect
{
Expand Down
2 changes: 0 additions & 2 deletions source/geometry_model/spherical_shell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include <aspect/geometry_model/initial_topography_model/zero_topography.h>

#include <deal.II/grid/grid_generator.h>
#include <deal.II/grid/tria_boundary_lib.h>
#include <deal.II/grid/manifold_lib.h>
#include <aspect/utilities.h>

namespace aspect
Expand Down
4 changes: 3 additions & 1 deletion source/simulator/assembly.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
#include <deal.II/base/work_stream.h>
#include <deal.II/base/signaling_nan.h>
#include <deal.II/lac/full_matrix.h>
#include <deal.II/lac/constraint_matrix.h>
#if !DEAL_II_VERSION_GTE(9,1,0)
# include <deal.II/lac/constraint_matrix.h>
#endif
#include <deal.II/grid/tria_iterator.h>
#include <deal.II/grid/filtered_iterator.h>
#include <deal.II/dofs/dof_accessor.h>
Expand Down
4 changes: 3 additions & 1 deletion source/simulator/core.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
#include <deal.II/base/conditional_ostream.h>
#include <deal.II/base/quadrature_lib.h>
#include <deal.II/base/signaling_nan.h>
#include <deal.II/lac/constraint_matrix.h>
#if !DEAL_II_VERSION_GTE(9,1,0)
# include <deal.II/lac/constraint_matrix.h>
#endif
#include <deal.II/lac/block_sparsity_pattern.h>
#include <deal.II/lac/sparsity_tools.h>
#include <deal.II/grid/grid_tools.h>
Expand Down
4 changes: 3 additions & 1 deletion source/simulator/helper_functions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
#include <deal.II/base/conditional_ostream.h>
#include <deal.II/base/quadrature_lib.h>
#include <deal.II/base/signaling_nan.h>
#include <deal.II/lac/constraint_matrix.h>
#if !DEAL_II_VERSION_GTE(9,1,0)
# include <deal.II/lac/constraint_matrix.h>
#endif
#include <deal.II/lac/block_sparsity_pattern.h>
#include <deal.II/grid/grid_tools.h>

Expand Down
4 changes: 3 additions & 1 deletion source/simulator/initial_conditions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
#include <deal.II/base/function.h>

#include <deal.II/lac/full_matrix.h>
#include <deal.II/lac/constraint_matrix.h>
#if !DEAL_II_VERSION_GTE(9,1,0)
# include <deal.II/lac/constraint_matrix.h>
#endif
#include <deal.II/grid/tria_iterator.h>
#include <deal.II/dofs/dof_accessor.h>
#include <deal.II/fe/fe_values.h>
Expand Down
4 changes: 3 additions & 1 deletion source/simulator/nullspace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
#include <aspect/global.h>

#include <deal.II/lac/solver_gmres.h>
#include <deal.II/lac/constraint_matrix.h>
#if !DEAL_II_VERSION_GTE(9,1,0)
# include <deal.II/lac/constraint_matrix.h>
#endif

#ifdef ASPECT_USE_PETSC
#include <deal.II/lac/solver_cg.h>
Expand Down
4 changes: 3 additions & 1 deletion source/simulator/solver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@

#include <deal.II/base/signaling_nan.h>
#include <deal.II/lac/solver_gmres.h>
#include <deal.II/lac/constraint_matrix.h>
#if !DEAL_II_VERSION_GTE(9,1,0)
# include <deal.II/lac/constraint_matrix.h>
#endif

#ifdef ASPECT_USE_PETSC
#include <deal.II/lac/solver_cg.h>
Expand Down

0 comments on commit f60eed5

Please sign in to comment.