// ---------------------------------------------------------------------
#ifndef dealii_dof_handler_policy_h
-# define dealii_dof_handler_policy_h
+#define dealii_dof_handler_policy_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# include <deal.II/base/exceptions.h>
-# include <deal.II/base/template_constraints.h>
+#include <deal.II/base/exceptions.h>
+#include <deal.II/base/template_constraints.h>
-# include <deal.II/dofs/dof_renumbering.h>
-# include <deal.II/dofs/dof_tools.h>
+#include <deal.II/dofs/dof_renumbering.h>
+#include <deal.II/dofs/dof_tools.h>
-# include <vector>
+#include <vector>
DEAL_II_NAMESPACE_OPEN
// Forward declaration
-# ifndef DOXYGEN
+#ifndef DOXYGEN
template <int, int>
class DoFHandler;
-# endif
+#endif
namespace internal
{
DEAL_II_NAMESPACE_CLOSE
#endif
-/*-------------------------- dof_handler_policy.h -------------------------*/
DEAL_II_NAMESPACE_CLOSE
-/*-------------------- fe_tools_extrapolate_templates.h -------------------*/
-#endif // dealii_fe_tools_extrapolate_templates_H
+#endif
DEAL_II_NAMESPACE_CLOSE
-/*---------------------- fe_tools_interpolate_templates.h -------------------*/
-#endif // dealii_fe_tools_interpolate_templates_H
+#endif
// ---------------------------------------------------------------------
#ifndef dealii_filtered_iterator_h
-# define dealii_filtered_iterator_h
+#define dealii_filtered_iterator_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# include <deal.II/base/exceptions.h>
-# include <deal.II/base/iterator_range.h>
+#include <deal.II/base/exceptions.h>
+#include <deal.II/base/iterator_range.h>
-# include <deal.II/grid/tria_iterator_base.h>
+#include <deal.II/grid/tria_iterator_base.h>
-# include <memory>
-# include <set>
-# include <tuple>
+#include <memory>
+#include <set>
+#include <tuple>
DEAL_II_NAMESPACE_OPEN
DEAL_II_NAMESPACE_CLOSE
-/*------------------------- filtered_iterator.h ------------------------*/
#endif
-/*------------------------- filtered_iterator.h ------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_tria_iterator_h
-# define dealii_tria_iterator_h
+#define dealii_tria_iterator_h
-/*---------------------------- tria-iterator.h ---------------------------*/
+#include <deal.II/base/config.h>
+#include <deal.II/base/exceptions.h>
+#include <deal.II/base/point.h>
-# include <deal.II/base/config.h>
+#include <deal.II/grid/tria_iterator_base.h>
-# include <deal.II/base/exceptions.h>
-# include <deal.II/base/point.h>
-
-# include <deal.II/grid/tria_iterator_base.h>
-
-# include <iterator>
-# include <ostream>
+#include <iterator>
+#include <ostream>
DEAL_II_NAMESPACE_OPEN
// Forward declarations
-# ifndef DOXYGEN
+#ifndef DOXYGEN
template <int dim, int spacedim>
class Triangulation;
template <int, int, int>
class TriaIterator;
template <typename>
class TriaActiveIterator;
-# endif
+#endif
const TriaRawIterator<OtherAccessor> &i)
: TriaRawIterator<Accessor>(i.accessor)
{
-# ifdef DEBUG
+#ifdef DEBUG
// do this like this, because:
// if we write
// "Assert (IteratorState::past_the_end || used)"
// throw the exception!
if (this->state() != IteratorState::past_the_end)
Assert(this->accessor.used(), ExcAssignmentOfUnusedObject());
-# endif
+#endif
}
template <typename Accessor>
TriaIterator<Accessor>::TriaIterator(const OtherAccessor &a)
: TriaRawIterator<Accessor>(a)
{
-# ifdef DEBUG
+#ifdef DEBUG
// do this like this, because:
// if we write
// "Assert (IteratorState::past_the_end || used)"
// throw the exception!
if (this->state() != IteratorState::past_the_end)
Assert(this->accessor.used(), ExcAssignmentOfUnusedObject());
-# endif
+#endif
}
template <typename Accessor>
const TriaRawIterator<OtherAccessor> &i)
: TriaIterator<Accessor>(i)
{
-# ifdef DEBUG
+#ifdef DEBUG
// do this like this, because:
// if we write
// "Assert (IteratorState::past_the_end || !has_children())"
if (this->state() != IteratorState::past_the_end)
Assert(this->accessor.has_children() == false,
ExcAssignmentOfInactiveObject());
-# endif
+#endif
}
// if in optimized mode: include more templates
-# ifndef DEBUG
-# include "tria_iterator.templates.h"
-# endif
-
+#ifndef DEBUG
+# include "tria_iterator.templates.h"
+#endif
-/*---------------------------- tria-iterator.h ---------------------------*/
#endif
-/*---------------------------- tria-iterator.h ---------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_chunk_sparse_matrix_h
-# define dealii_chunk_sparse_matrix_h
+#define dealii_chunk_sparse_matrix_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# include <deal.II/base/smartpointer.h>
-# include <deal.II/base/subscriptor.h>
+#include <deal.II/base/smartpointer.h>
+#include <deal.II/base/subscriptor.h>
-# include <deal.II/lac/chunk_sparsity_pattern.h>
-# include <deal.II/lac/exceptions.h>
-# include <deal.II/lac/identity_matrix.h>
+#include <deal.II/lac/chunk_sparsity_pattern.h>
+#include <deal.II/lac/exceptions.h>
+#include <deal.II/lac/identity_matrix.h>
-# include <iterator>
-# include <memory>
+#include <iterator>
+#include <memory>
DEAL_II_NAMESPACE_OPEN
// Forward declarations
-# ifndef DOXYGEN
+#ifndef DOXYGEN
template <typename number>
class Vector;
template <typename number>
class FullMatrix;
-# endif
+#endif
/**
* @addtogroup Matrix1
/** @} */
-# ifndef DOXYGEN
+#ifndef DOXYGEN
/*---------------------- Inline functions -----------------------------------*/
-# endif // DOXYGEN
+#endif // DOXYGEN
DEAL_II_NAMESPACE_CLOSE
#endif
-/*--------------------------- chunk_sparse_matrix.h -------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_ginkgo_solver_h
-# define dealii_ginkgo_solver_h
+#define dealii_ginkgo_solver_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# ifdef DEAL_II_WITH_GINKGO
+#ifdef DEAL_II_WITH_GINKGO
-# include <deal.II/lac/block_sparse_matrix.h>
-# include <deal.II/lac/exceptions.h>
-# include <deal.II/lac/solver_control.h>
-# include <deal.II/lac/sparse_matrix.h>
-# include <deal.II/lac/vector.h>
+# include <deal.II/lac/block_sparse_matrix.h>
+# include <deal.II/lac/exceptions.h>
+# include <deal.II/lac/solver_control.h>
+# include <deal.II/lac/sparse_matrix.h>
+# include <deal.II/lac/vector.h>
-# include <ginkgo/ginkgo.hpp>
+# include <ginkgo/ginkgo.hpp>
-# include <memory>
+# include <memory>
DEAL_II_NAMESPACE_OPEN
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_GINKGO
+#endif // DEAL_II_WITH_GINKGO
#endif
-/*---------------------------- ginkgo_solver.h ---------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_petsc_full_matrix_h
-# define dealii_petsc_full_matrix_h
+#define dealii_petsc_full_matrix_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# ifdef DEAL_II_WITH_PETSC
+#ifdef DEAL_II_WITH_PETSC
-# include <deal.II/lac/exceptions.h>
-# include <deal.II/lac/petsc_matrix_base.h>
+# include <deal.II/lac/exceptions.h>
+# include <deal.II/lac/petsc_matrix_base.h>
DEAL_II_NAMESPACE_OPEN
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_PETSC
+#endif // DEAL_II_WITH_PETSC
#endif
-/*---------------------------- petsc_full_matrix.h --------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_petsc_matrix_base_h
-# define dealii_petsc_matrix_base_h
+#define dealii_petsc_matrix_base_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# ifdef DEAL_II_WITH_PETSC
+#ifdef DEAL_II_WITH_PETSC
-# include <deal.II/base/subscriptor.h>
+# include <deal.II/base/subscriptor.h>
-# include <deal.II/lac/exceptions.h>
-# include <deal.II/lac/full_matrix.h>
-# include <deal.II/lac/petsc_compatibility.h>
-# include <deal.II/lac/petsc_vector_base.h>
-# include <deal.II/lac/vector_operation.h>
+# include <deal.II/lac/exceptions.h>
+# include <deal.II/lac/full_matrix.h>
+# include <deal.II/lac/petsc_compatibility.h>
+# include <deal.II/lac/petsc_vector_base.h>
+# include <deal.II/lac/vector_operation.h>
-# include <petscmat.h>
+# include <petscmat.h>
-# include <cmath>
-# include <memory>
-# include <vector>
+# include <cmath>
+# include <memory>
+# include <vector>
DEAL_II_NAMESPACE_OPEN
// Forward declarations
-# ifndef DOXYGEN
+# ifndef DOXYGEN
template <typename Matrix>
class BlockMatrixBase;
-# endif
+# endif
namespace PETScWrappers
-# ifndef DOXYGEN
+# ifndef DOXYGEN
// ---------------------- inline and template functions ---------------------
prepare_action(VectorOperation::insert);
}
-# endif // DOXYGEN
+# endif // DOXYGEN
} // namespace PETScWrappers
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_PETSC
+#endif // DEAL_II_WITH_PETSC
#endif
-/*---------------------------- petsc_matrix_base.h --------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_petsc_matrix_free_h
-# define dealii_petsc_matrix_free_h
+#define dealii_petsc_matrix_free_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# ifdef DEAL_II_WITH_PETSC
-# include <deal.II/lac/exceptions.h>
-# include <deal.II/lac/petsc_matrix_base.h>
-# include <deal.II/lac/petsc_vector.h>
+#ifdef DEAL_II_WITH_PETSC
+# include <deal.II/lac/exceptions.h>
+# include <deal.II/lac/petsc_matrix_base.h>
+# include <deal.II/lac/petsc_vector.h>
DEAL_II_NAMESPACE_OPEN
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_PETSC
+#endif // DEAL_II_WITH_PETSC
#endif
-/*---------------------------- petsc_matrix_free.h --------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_petsc_parallel_sparse_matrix_h
-# define dealii_petsc_parallel_sparse_matrix_h
+#define dealii_petsc_parallel_sparse_matrix_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# include <deal.II/lac/petsc_sparse_matrix.h>
+#include <deal.II/lac/petsc_sparse_matrix.h>
DEAL_II_WARNING(
"This file is deprecated. Use deal.II/lac/petsc_sparse_matrix.h instead.")
#endif
-/*---------------------- petsc_parallel_sparse_matrix.h ---------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_petsc_parallel_vector_h
-# define dealii_petsc_parallel_vector_h
+#define dealii_petsc_parallel_vector_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# include <deal.II/lac/petsc_vector.h>
+#include <deal.II/lac/petsc_vector.h>
DEAL_II_WARNING(
"This file is deprecated. Use deal.II/lac/petsc_vector.h instead!")
#endif
-/*------------------------- petsc_parallel_vector.h -------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_petsc_precondition_h
-# define dealii_petsc_precondition_h
+#define dealii_petsc_precondition_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# include <deal.II/base/subscriptor.h>
+#include <deal.II/base/subscriptor.h>
-# ifdef DEAL_II_WITH_PETSC
+#ifdef DEAL_II_WITH_PETSC
-# include <deal.II/lac/exceptions.h>
+# include <deal.II/lac/exceptions.h>
-# include <petscpc.h>
+# include <petscpc.h>
DEAL_II_NAMESPACE_OPEN
namespace PETScWrappers
{
// forward declarations
-# ifndef DOXYGEN
+# ifndef DOXYGEN
class MatrixBase;
class VectorBase;
class SolverBase;
-# endif
+# endif
/**
* Base class for preconditioner classes using the PETSc functionality. The
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_PETSC
+#endif // DEAL_II_WITH_PETSC
#endif
-/*--------------------------- petsc_precondition.h --------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_petsc_solver_h
-# define dealii_petsc_solver_h
+#define dealii_petsc_solver_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# ifdef DEAL_II_WITH_PETSC
+#ifdef DEAL_II_WITH_PETSC
-# include <deal.II/lac/exceptions.h>
-# include <deal.II/lac/solver_control.h>
+# include <deal.II/lac/exceptions.h>
+# include <deal.II/lac/solver_control.h>
-# include <petscksp.h>
+# include <petscksp.h>
-# include <memory>
+# include <memory>
-# ifdef DEAL_II_WITH_SLEPC
-# include <deal.II/lac/slepc_spectral_transformation.h>
-# endif
+# ifdef DEAL_II_WITH_SLEPC
+# include <deal.II/lac/slepc_spectral_transformation.h>
+# endif
DEAL_II_NAMESPACE_OPEN
// Forward declarations
-# ifndef DOXYGEN
-# ifdef DEAL_II_WITH_SLEPC
+# ifndef DOXYGEN
+# ifdef DEAL_II_WITH_SLEPC
namespace SLEPcWrappers
{
// forward declarations
class TransformationBase;
} // namespace SLEPcWrappers
-# endif
# endif
+# endif
namespace PETScWrappers
{
// forward declarations
-# ifndef DOXYGEN
+# ifndef DOXYGEN
class MatrixBase;
class VectorBase;
class PreconditionBase;
-# endif
+# endif
/**
*/
std::unique_ptr<SolverData> solver_data;
-# ifdef DEAL_II_WITH_SLEPC
+# ifdef DEAL_II_WITH_SLEPC
// Make the transformation class a friend, since it needs to set the KSP
// solver.
friend class SLEPcWrappers::TransformationBase;
-# endif
+# endif
};
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_PETSC
-
-/*---------------------------- petsc_solver.h ---------------------------*/
+#endif // DEAL_II_WITH_PETSC
#endif
-/*---------------------------- petsc_solver.h ---------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_petsc_sparse_matrix_h
-# define dealii_petsc_sparse_matrix_h
+#define dealii_petsc_sparse_matrix_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# ifdef DEAL_II_WITH_PETSC
+#ifdef DEAL_II_WITH_PETSC
-# include <deal.II/lac/exceptions.h>
-# include <deal.II/lac/petsc_matrix_base.h>
-# include <deal.II/lac/petsc_vector.h>
+# include <deal.II/lac/exceptions.h>
+# include <deal.II/lac/petsc_matrix_base.h>
+# include <deal.II/lac/petsc_vector.h>
-# include <vector>
+# include <vector>
DEAL_II_NAMESPACE_OPEN
// forward declaration
-# ifndef DOXYGEN
+# ifndef DOXYGEN
template <typename MatrixType>
class BlockMatrixBase;
-# endif
+# endif
namespace PETScWrappers
{
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_PETSC
+#endif // DEAL_II_WITH_PETSC
#endif
-/*--------------------------- petsc_sparse_matrix.h -------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_petsc_vector_h
-# define dealii_petsc_vector_h
+#define dealii_petsc_vector_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# ifdef DEAL_II_WITH_PETSC
+#ifdef DEAL_II_WITH_PETSC
-# include <deal.II/base/index_set.h>
-# include <deal.II/base/partitioner.h>
-# include <deal.II/base/subscriptor.h>
+# include <deal.II/base/index_set.h>
+# include <deal.II/base/partitioner.h>
+# include <deal.II/base/subscriptor.h>
-# include <deal.II/lac/exceptions.h>
-# include <deal.II/lac/petsc_vector_base.h>
-# include <deal.II/lac/vector.h>
-# include <deal.II/lac/vector_operation.h>
-# include <deal.II/lac/vector_type_traits.h>
+# include <deal.II/lac/exceptions.h>
+# include <deal.II/lac/petsc_vector_base.h>
+# include <deal.II/lac/vector.h>
+# include <deal.II/lac/vector_operation.h>
+# include <deal.II/lac/vector_type_traits.h>
DEAL_II_NAMESPACE_OPEN
}
-# ifndef DOXYGEN
+# ifndef DOXYGEN
template <typename number>
Vector::Vector(const MPI_Comm & communicator,
return communicator;
}
-# endif // DOXYGEN
- } // namespace MPI
+# endif // DOXYGEN
+ } // namespace MPI
} // namespace PETScWrappers
namespace internal
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_PETSC
+#endif // DEAL_II_WITH_PETSC
#endif
-/*------------------------- petsc_vector.h -------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_petsc_vector_base_h
-# define dealii_petsc_vector_base_h
+#define dealii_petsc_vector_base_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# ifdef DEAL_II_WITH_PETSC
+#ifdef DEAL_II_WITH_PETSC
-# include <deal.II/base/index_set.h>
-# include <deal.II/base/subscriptor.h>
+# include <deal.II/base/index_set.h>
+# include <deal.II/base/subscriptor.h>
-# include <deal.II/lac/exceptions.h>
-# include <deal.II/lac/vector.h>
-# include <deal.II/lac/vector_operation.h>
+# include <deal.II/lac/exceptions.h>
+# include <deal.II/lac/vector.h>
+# include <deal.II/lac/vector_operation.h>
-# include <petscvec.h>
+# include <petscvec.h>
-# include <utility>
-# include <vector>
+# include <utility>
+# include <vector>
DEAL_II_NAMESPACE_OPEN
// forward declaration
-# ifndef DOXYGEN
+# ifndef DOXYGEN
template <typename number>
class Vector;
{
class VectorBase;
}
-# endif
+# endif
/**
* A namespace in which wrapper classes for PETSc objects reside.
u.swap(v);
}
-# ifndef DOXYGEN
+# ifndef DOXYGEN
namespace internal
{
inline VectorReference::VectorReference(const VectorBase &vector,
inline PetscReal
VectorReference::real() const
{
-# ifndef PETSC_USE_COMPLEX
+# ifndef PETSC_USE_COMPLEX
return static_cast<PetscScalar>(*this);
-# else
+# else
return PetscRealPart(static_cast<PetscScalar>(*this));
-# endif
+# endif
}
inline PetscReal
VectorReference::imag() const
{
-# ifndef PETSC_USE_COMPLEX
+# ifndef PETSC_USE_COMPLEX
return PetscReal(0);
-# else
+# else
return PetscImaginaryPart(static_cast<PetscScalar>(*this));
-# endif
+# endif
}
} // namespace internal
}
}
-# endif // DOXYGEN
+# endif // DOXYGEN
} // namespace PETScWrappers
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_PETSC
+#endif // DEAL_II_WITH_PETSC
#endif
-/*---------------------------- petsc_vector_base.h --------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_sparse_ilu_templates_h
-# define dealii_sparse_ilu_templates_h
+#define dealii_sparse_ilu_templates_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# include <deal.II/lac/sparse_ilu.h>
-# include <deal.II/lac/vector.h>
+#include <deal.II/lac/sparse_ilu.h>
+#include <deal.II/lac/vector.h>
-# include <algorithm>
-# include <cmath>
+#include <algorithm>
+#include <cmath>
DEAL_II_NAMESPACE_OPEN
DEAL_II_NAMESPACE_CLOSE
#endif
-/*-------------------------- sparse_ilu.templates.h -------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_sparse_matrix_ez_h
-# define dealii_sparse_matrix_ez_h
+#define dealii_sparse_matrix_ez_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# include <deal.II/base/smartpointer.h>
-# include <deal.II/base/subscriptor.h>
+#include <deal.II/base/smartpointer.h>
+#include <deal.II/base/subscriptor.h>
-# include <deal.II/lac/exceptions.h>
+#include <deal.II/lac/exceptions.h>
-# include <vector>
+#include <vector>
DEAL_II_NAMESPACE_OPEN
// Forward declarations
-# ifndef DOXYGEN
+#ifndef DOXYGEN
template <typename number>
class Vector;
template <typename number>
class FullMatrix;
-# endif
+#endif
/**
* @addtogroup Matrix1
DEAL_II_NAMESPACE_CLOSE
#endif
-/*---------------------------- sparse_matrix.h ---------------------------*/
// ---------------------------------------------------------------------
#ifndef dealii_trilinos_precondition_h
-# define dealii_trilinos_precondition_h
+#define dealii_trilinos_precondition_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# ifdef DEAL_II_WITH_TRILINOS
+#ifdef DEAL_II_WITH_TRILINOS
-# include <deal.II/base/subscriptor.h>
+# include <deal.II/base/subscriptor.h>
-# include <deal.II/lac/la_parallel_vector.h>
-# include <deal.II/lac/trilinos_vector.h>
+# include <deal.II/lac/la_parallel_vector.h>
+# include <deal.II/lac/trilinos_vector.h>
-# include <Epetra_Map.h>
-# include <Epetra_MpiComm.h>
-# include <Epetra_MultiVector.h>
-# include <Epetra_RowMatrix.h>
-# include <Epetra_Vector.h>
-# include <Teuchos_ParameterList.hpp>
+# include <Epetra_Map.h>
+# include <Epetra_MpiComm.h>
+# include <Epetra_MultiVector.h>
+# include <Epetra_RowMatrix.h>
+# include <Epetra_Vector.h>
+# include <Teuchos_ParameterList.hpp>
-# include <memory>
+# include <memory>
// forward declarations
-# ifndef DOXYGEN
+# ifndef DOXYGEN
class Ifpack_Preconditioner;
class Ifpack_Chebyshev;
namespace ML_Epetra
{
class MultiLevelPreconditioner;
}
-# endif
+# endif
DEAL_II_NAMESPACE_OPEN
// forward declarations
-# ifndef DOXYGEN
+# ifndef DOXYGEN
template <typename number>
class SparseMatrix;
template <typename number>
class Vector;
class SparsityPattern;
-# endif
+# endif
/**
* @addtogroup TrilinosWrappers
-# if defined(DOXYGEN) || defined(DEAL_II_TRILINOS_WITH_MUELU)
+# if defined(DOXYGEN) || defined(DEAL_II_TRILINOS_WITH_MUELU)
/**
* This class implements an algebraic multigrid (AMG) preconditioner based
* on the Trilinos MueLu implementation, which is a black-box preconditioner
*/
std::shared_ptr<SparseMatrix> trilinos_matrix;
};
-# endif
+# endif
// ----------------------- inline and template functions --------------------
-# ifndef DOXYGEN
+# ifndef DOXYGEN
inline void
preconditioner->SetUseTranspose(false);
}
-# endif
+# endif
} // namespace TrilinosWrappers
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_TRILINOS
+#endif // DEAL_II_WITH_TRILINOS
-#endif // trilinos_precondition_h
-/*------------------------- trilinos_precondition.h -------------------------*/
+#endif
// ---------------------------------------------------------------------
#ifndef dealii_trilinos_solver_h
-# define dealii_trilinos_solver_h
+#define dealii_trilinos_solver_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# ifdef DEAL_II_WITH_TRILINOS
+#ifdef DEAL_II_WITH_TRILINOS
-# include <deal.II/lac/exceptions.h>
-# include <deal.II/lac/la_parallel_vector.h>
-# include <deal.II/lac/solver_control.h>
-# include <deal.II/lac/vector.h>
+# include <deal.II/lac/exceptions.h>
+# include <deal.II/lac/la_parallel_vector.h>
+# include <deal.II/lac/solver_control.h>
+# include <deal.II/lac/vector.h>
-# include <Amesos.h>
-# include <AztecOO.h>
-# include <Epetra_LinearProblem.h>
-# include <Epetra_Operator.h>
+# include <Amesos.h>
+# include <AztecOO.h>
+# include <Epetra_LinearProblem.h>
+# include <Epetra_Operator.h>
-# include <memory>
+# include <memory>
DEAL_II_NAMESPACE_OPEN
namespace TrilinosWrappers
{
// forward declarations
-# ifndef DOXYGEN
+# ifndef DOXYGEN
class SparseMatrix;
class PreconditionBase;
-# endif
+# endif
/**
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_TRILINOS
-
-/*---------------------------- trilinos_solver.h ---------------------------*/
+#endif // DEAL_II_WITH_TRILINOS
#endif
-/*---------------------------- trilinos_solver.h ---------------------------*/
DEAL_II_NAMESPACE_CLOSE
-#endif // DEAL_II_WITH_TRILINOS
+#endif
-/*---------------------------- trilinos_vector.h ---------------------------*/
-
-#endif // dealii_trilinos_vector_h
+#endif
// ---------------------------------------------------------------------
#ifndef dealii_solution_transfer_h
-# define dealii_solution_transfer_h
+#define dealii_solution_transfer_h
/*---------------------------- solutiontransfer.h ----------------------*/
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# include <deal.II/base/exceptions.h>
-# include <deal.II/base/smartpointer.h>
+#include <deal.II/base/exceptions.h>
+#include <deal.II/base/smartpointer.h>
-# include <deal.II/dofs/dof_handler.h>
+#include <deal.II/dofs/dof_handler.h>
-# include <deal.II/lac/vector.h>
+#include <deal.II/lac/vector.h>
-# include <vector>
+#include <vector>
DEAL_II_NAMESPACE_OPEN
DEAL_II_NAMESPACE_CLOSE
-#endif // dealii_solutiontransfer_h
-/*---------------------------- solutiontransfer.h ---------------------------*/
+#endif
// ---------------------------------------------------------------------
#ifndef dealii_time_dependent_h
-# define dealii_time_dependent_h
+#define dealii_time_dependent_h
-/*---------------------------- time-dependent.h ---------------------------*/
+#include <deal.II/base/config.h>
+#include <deal.II/base/exceptions.h>
+#include <deal.II/base/smartpointer.h>
+#include <deal.II/base/subscriptor.h>
-# include <deal.II/base/config.h>
-
-# include <deal.II/base/exceptions.h>
-# include <deal.II/base/smartpointer.h>
-# include <deal.II/base/subscriptor.h>
-
-# include <utility>
-# include <vector>
+#include <utility>
+#include <vector>
DEAL_II_NAMESPACE_OPEN
// forward declarations
-# ifndef DOXYGEN
+#ifndef DOXYGEN
class TimeStepBase;
template <typename number>
class Vector;
template <int dim, int spacedim>
class Triangulation;
-# endif
+#endif
/**
* This class provides an abstract interface to time dependent problems in
DEAL_II_NAMESPACE_CLOSE
-/*---------------------------- time-dependent.h ---------------------------*/
#endif
-/*---------------------------- time-dependent.h ---------------------------*/
#ifndef dealii_occ_utilities_h
-# define dealii_occ_utilities_h
+#define dealii_occ_utilities_h
-# include <deal.II/base/config.h>
+#include <deal.II/base/config.h>
-# ifdef DEAL_II_WITH_OPENCASCADE
+#ifdef DEAL_II_WITH_OPENCASCADE
-# include <deal.II/base/point.h>
+# include <deal.II/base/point.h>
-# include <deal.II/fe/mapping_q1.h>
+# include <deal.II/fe/mapping_q1.h>
-# include <deal.II/grid/tria.h>
+# include <deal.II/grid/tria.h>
-# include <string>
+# include <string>
// opencascade needs "HAVE_CONFIG_H" to be exported...
-# define HAVE_CONFIG_H
-# include <IFSelect_ReturnStatus.hxx>
-# include <TopoDS_CompSolid.hxx>
-# include <TopoDS_Compound.hxx>
-# include <TopoDS_Edge.hxx>
-# include <TopoDS_Face.hxx>
-# include <TopoDS_Shape.hxx>
-# include <TopoDS_Shell.hxx>
-# include <TopoDS_Solid.hxx>
-# include <TopoDS_Vertex.hxx>
-# include <TopoDS_Wire.hxx>
-# include <gp_Pnt.hxx>
-# undef HAVE_CONFIG_H
+# define HAVE_CONFIG_H
+# include <IFSelect_ReturnStatus.hxx>
+# include <TopoDS_CompSolid.hxx>
+# include <TopoDS_Compound.hxx>
+# include <TopoDS_Edge.hxx>
+# include <TopoDS_Face.hxx>
+# include <TopoDS_Shape.hxx>
+# include <TopoDS_Shell.hxx>
+# include <TopoDS_Solid.hxx>
+# include <TopoDS_Vertex.hxx>
+# include <TopoDS_Wire.hxx>
+# include <gp_Pnt.hxx>
+# undef HAVE_CONFIG_H
DEAL_II_NAMESPACE_CLOSE
-# endif // DEAL_II_WITH_OPENCASCADE
+#endif // DEAL_II_WITH_OPENCASCADE
-#endif // dealii_occ_utilities_h
-/*----------------------------- occ_utilities.h -----------------------------*/
+#endif