// Sacado is the automatic differentiation package within Trilinos, which is
// used to find the Jacobian for a fully implicit Newton iteration:
-// Trilinos::Sacado (at least until version 11.10.2) package will trigger
-// warnings when compiling this file. Since we are not responsible for this,
-// we just suppress the warning by wrapping the <code>#include</code>
-// directive into a pair of macros that simply suppress these warnings:
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <Sacado.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
// And this again is C++:
#include <iostream>
// the Functions::InterpolatedUniformGridData class that is declared in the
// first of the following header files. Because the data is large, the file we
// read from is stored as gzip compressed data and we make use of some
-// BOOST-provided functionality to read directly from gzipped data. We wrap
-// the BOOST includes with a preprocessor macro that disables certain annoying
-// compiler warnings.
+// BOOST-provided functionality to read directly from gzipped data.
#include <deal.II/base/function_lib.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/filter/gzip.hpp>
#include <boost/iostreams/device/file.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <iostream>
#include <fstream>
# endif
#endif
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/serialization/vector.hpp>
# include <boost/iostreams/device/back_inserter.hpp>
# include <boost/iostreams/filter/gzip.hpp>
#endif
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
#ifdef DEAL_II_WITH_ADOLC
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <adolc/internal/adolc_settings.h>
#include <adolc/internal/adubfunc.h> // Taped double math functions
#include <adolc/adouble.h> // Taped double
#include <adolc/adtl.h> // Tapeless double
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#ifndef DOXYGEN
#ifdef DEAL_II_WITH_ADOLC
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <adolc/internal/adolc_settings.h>
#include <adolc/internal/adubfunc.h> // Taped double math functions
#include <adolc/adouble.h> // Taped double
#include <adolc/adtl.h> // Tapeless double
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <deal.II/base/numbers.h>
#include <deal.II/base/exceptions.h>
#include <deal.II/base/template_constraints.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <adolc/adouble.h> // Taped double
#include <adolc/adtl.h> // Tapeless double
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
#ifdef DEAL_II_WITH_TRILINOS
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <Sacado.hpp>
// It appears that some versions of Trilinos do not directly or indirectly
// include all the headers for all forward and reverse Sacado AD types.
#include <Sacado_Fad_DFad.hpp>
// Reverse AD classes (templated)
#include <Sacado_trad.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <deal.II/base/numbers.h>
#include <deal.II/base/exceptions.h>
#ifdef DEAL_II_WITH_TRILINOS
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <Sacado.hpp>
// It appears that some versions of Trilinos do not directly or indirectly
// include all the headers for all forward and reverse Sacado AD types.
#include <Sacado_Fad_DFad.hpp>
// Reverse AD classes (templated)
#include <Sacado_trad.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
#include <deal.II/hp/dof_handler.h>
#include <deal.II/lac/sparsity_tools.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/optional.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
# include <boost/iostreams/filter/gzip.hpp>
#endif
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <bitset>
#include <list>
#include <deal.II/grid/tria_iterator_selector.h>
// Ignore deprecation warnings for auto_ptr.
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/signals2.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/serialization/map.hpp>
#include <boost/serialization/unique_ptr.hpp>
#include <boost/serialization/split_member.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <vector>
#include <list>
typedef types::global_dof_index size_type;
// avoid warning about use of deprecated variables
- DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
/**
* Standardized data struct to pipe additional parameters to the
std::shared_ptr<PreconditionerType> preconditioner;
};
- DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
PreconditionChebyshev ();
// avoid warning about deprecated variable nonzero_starting
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
template <typename MatrixType, class VectorType, typename PreconditionerType>
inline
max_eigenvalue (max_eigenvalue)
{}
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
template <typename MatrixType, typename VectorType, typename PreconditionerType>
// avoid warning about deprecated variable AdditionalData::matrix_diagonal_inverse
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
template <typename MatrixType, typename VectorType, typename PreconditionerType>
inline
data.preconditioner.reset();
}
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
# include <deal.II/lac/trilinos_epetra_communication_pattern.h>
# include <deal.II/lac/trilinos_epetra_vector.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Epetra_MultiVector.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#endif
# include <deal.II/lac/trilinos_vector.h>
# include <deal.II/lac/trilinos_epetra_vector.h>
# include <deal.II/lac/trilinos_epetra_communication_pattern.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Epetra_Import.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#endif
#ifdef DEAL_II_WITH_CUDA
#include <deal.II/lac/solver_control.h>
// Ignore deprecation warnings for auto_ptr.
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/signals2.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
#include <deal.II/lac/communication_pattern_base.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Epetra_Import.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <memory>
#include <deal.II/lac/vector_type_traits.h>
#include <memory>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <mpi.h>
# include <Epetra_FEVector.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
# include <memory>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# ifdef DEAL_II_WITH_MPI
# include <Epetra_MpiComm.h>
# else
# include <Teuchos_ParameterList.hpp>
# include <Epetra_RowMatrix.h>
# include <Epetra_Vector.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
// forward declarations
class Ifpack_Preconditioner;
# include <memory>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Epetra_LinearProblem.h>
# include <AztecOO.h>
# include <Epetra_Operator.h>
# include <Amesos.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
# include <cmath>
# include <memory>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Epetra_FECrsMatrix.h>
# include <Epetra_Map.h>
# include <Epetra_CrsGraph.h>
# else
# include <Epetra_SerialComm.h>
# endif
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
class Epetra_Export;
# include <memory>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Epetra_FECrsGraph.h>
# include <Epetra_Map.h>
# ifdef DEAL_II_WITH_MPI
# else
# include <Epetra_SerialComm.h>
# endif
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
# include <utility>
# include <memory>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Epetra_ConfigDefs.h>
# ifdef DEAL_II_WITH_MPI // only if MPI is installed
# include <mpi.h>
# include <Epetra_FEVector.h>
# include <Epetra_Map.h>
# include <Epetra_LocalMap.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
/* ------------------ Functions for MGCoarseGridLACIteration ------------ */
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
template <typename SolverType, class VectorType>
MGCoarseGridLACIteration<SolverType, VectorType>
matrix = linear_operator<VectorType>(LinearOperator<VectorType>(), m);
}
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
/* ------------------ Functions for MGCoarseGridIterativeSolver ------------ */
#include <memory>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <nanoflann.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
#include <string>
// opencascade needs "HAVE_CONFIG_H" to be exported...
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#define HAVE_CONFIG_H
#include <TopoDS_Shape.hxx>
#include <TopoDS_Face.hxx>
#include <IFSelect_ReturnStatus.hxx>
#include <gp_Pnt.hxx>
#undef HAVE_CONFIG_H
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <cmath>
#include <map>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/random.hpp>
#include <boost/math/special_functions/erf.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#ifdef DEAL_II_WITH_MUPARSER
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <muParser.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#else
#endif
#ifdef DEAL_II_TRILINOS_WITH_ZOLTAN
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <zoltan_cpp.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#endif
DEAL_II_NAMESPACE_OPEN
#include <deal.II/base/memory_consumption.h>
#include <deal.II/base/utilities.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/io/ios_state.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <fstream>
#include <iostream>
#include <deal.II/base/memory_consumption.h>
#include <deal.II/base/utilities.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/io/ios_state.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <fstream>
#include <iostream>
#include <deal.II/base/polynomials_bernstein.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/math/special_functions/binomial.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <vector>
// Required for instantiation of template functions
#ifdef DEAL_II_WITH_TRILINOS
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Sacado.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <deal.II/differentiation/ad/sacado_product_types.h>
#endif
#include <deal.II/base/exceptions.h>
#include <deal.II/base/thread_local_storage.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/math/special_functions/erf.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/random.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <algorithm>
#include <cctype>
#endif
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#ifdef DEAL_II_WITH_TRILINOS
# ifdef DEAL_II_WITH_MPI
# include <Epetra_MpiComm.h>
# include <Teuchos_RCP.hpp>
# include <Epetra_SerialComm.h>
#endif
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <deal.II/distributed/shared_tria.h>
#include <deal.II/distributed/tria.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#ifdef DEAL_II_WITH_ZLIB
#include <boost/iostreams/filter/gzip.hpp>
#include <boost/serialization/array.hpp>
#endif
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <set>
#include <algorithm>
#include <boost/graph/minimum_degree_ordering.hpp>
#include <boost/graph/properties.hpp>
#include <boost/graph/bandwidth.hpp>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <boost/random.hpp>
#include <boost/random/uniform_int_distribution.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <vector>
#include <map>
#endif
#ifdef DEAL_II_WITH_ASSIMP
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <assimp/Importer.hpp> // C++ importer interface
#include <assimp/scene.h> // Output data structure
#include <assimp/postprocess.h> // Post processing flags
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#endif
#endif
#ifdef DEAL_II_WITH_METIS
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
extern "C"
{
#include <metis.h>
}
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#endif
#ifdef DEAL_II_TRILINOS_WITH_ZOLTAN
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <zoltan_cpp.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#endif
#include <string>
#include <deal.II/base/index_set.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Epetra_Map.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <memory>
#include <deal.II/lac/read_write_vector.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Epetra_Import.h>
# include <Epetra_Map.h>
# include <Epetra_MpiComm.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
# include <deal.II/lac/sparse_matrix.h>
# include <deal.II/lac/trilinos_sparse_matrix.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Ifpack.h>
# include <Ifpack_Chebyshev.h>
# include <Teuchos_ParameterList.hpp>
# include <Teuchos_RCP.hpp>
# include <Epetra_MultiVector.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
# include <deal.II/lac/trilinos_sparse_matrix.h>
# include <deal.II/lac/trilinos_index_access.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Ifpack.h>
# include <Ifpack_Chebyshev.h>
# include <Teuchos_ParameterList.hpp>
# include <Epetra_MultiVector.h>
# include <ml_include.h>
# include <ml_MultiLevelPreconditioner.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
# include <deal.II/lac/trilinos_index_access.h>
# include <deal.II/lac/trilinos_sparse_matrix.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Teuchos_ParameterList.hpp>
# include <Teuchos_RCP.hpp>
# include <Epetra_MultiVector.h>
# include <MueLu.hpp>
# include <MueLu_EpetraOperator.hpp>
# include <MueLu_MLParameterListInterpreter.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
# include <deal.II/lac/trilinos_vector.h>
# include <deal.II/lac/trilinos_precondition.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <AztecOO_StatusTest.h>
# include <AztecOO_StatusTestMaxIters.h>
# include <AztecOO_StatusTestResNorm.h>
# include <AztecOO_StatusTestCombo.h>
# include <AztecOO_StatusType.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
# include <cmath>
# include <limits>
# include <deal.II/lac/trilinos_index_access.h>
# include <deal.II/lac/trilinos_precondition.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Epetra_Export.h>
# include <ml_epetra_utils.h>
# include <ml_struct.h>
# include <Teuchos_RCP.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <boost/container/small_vector.hpp>
# include <deal.II/lac/sparsity_pattern.h>
# include <deal.II/lac/trilinos_index_access.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Epetra_Export.h>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
# include <deal.II/lac/trilinos_parallel_block_vector.h>
# include <deal.II/lac/trilinos_index_access.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
# include <Epetra_Import.h>
# include <Epetra_Export.h>
# include <Epetra_Vector.h>
# include <boost/io/ios_state.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
# include <cmath>
#ifdef DEAL_II_WITH_OPENCASCADE
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <GCPnts_AbscissaPoint.hxx>
#include <BRepAdaptor_Curve.hxx>
# include <Handle_Adaptor3d_HCurve.hxx>
#endif
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
DEAL_II_NAMESPACE_OPEN
#include <iostream>
#include <set>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#include <IGESControl_Controller.hxx>
#include <IGESControl_Reader.hxx>
#include <GCPnts_AbscissaPoint.hxx>
#include <ShapeAnalysis_Surface.hxx>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#include <vector>
#include <algorithm>