From 9e7f2a567fcb8b42bd9ac59afe0a3852f83387c9 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Mon, 4 Jul 2022 21:00:31 +0200 Subject: [PATCH] Fix formating --- include/deal.II/lac/sparse_matrix.h | 52 +++++++++++++---------------- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/include/deal.II/lac/sparse_matrix.h b/include/deal.II/lac/sparse_matrix.h index a30dc94b2f..e110831ef2 100644 --- a/include/deal.II/lac/sparse_matrix.h +++ b/include/deal.II/lac/sparse_matrix.h @@ -14,30 +14,29 @@ // --------------------------------------------------------------------- #ifndef dealii_sparse_matrix_h -# define dealii_sparse_matrix_h +#define dealii_sparse_matrix_h +#include -# include +#include +#include -# include -# include - -# include -# include -# include -# include -# ifdef DEAL_II_WITH_MPI -# include -# endif +#include +#include +#include +#include +#ifdef DEAL_II_WITH_MPI +# include +#endif -# include -# include +#include +#include DEAL_II_NAMESPACE_OPEN // Forward declarations -# ifndef DOXYGEN +#ifndef DOXYGEN template class Vector; template @@ -46,7 +45,7 @@ template class BlockMatrixBase; template class SparseILU; -# ifdef DEAL_II_WITH_MPI +# ifdef DEAL_II_WITH_MPI namespace Utilities { namespace MPI @@ -56,15 +55,15 @@ namespace Utilities sum(const SparseMatrix &, const MPI_Comm &, SparseMatrix &); } } // namespace Utilities -# endif +# endif -# ifdef DEAL_II_WITH_TRILINOS +# ifdef DEAL_II_WITH_TRILINOS namespace TrilinosWrappers { class SparseMatrix; } -# endif # endif +#endif /** * @addtogroup Matrix1 @@ -1022,7 +1021,7 @@ public: void copy_from(const FullMatrix &matrix); -# ifdef DEAL_II_WITH_TRILINOS +#ifdef DEAL_II_WITH_TRILINOS /** * Copy the given Trilinos matrix to this one. The operation triggers an * assertion if the sparsity patterns of the current object does not contain @@ -1034,7 +1033,7 @@ public: */ SparseMatrix & copy_from(const TrilinosWrappers::SparseMatrix &matrix); -# endif +#endif /** * Add matrix scaled by factor to this matrix, i.e. the @@ -1782,17 +1781,17 @@ private: template friend class SparseMatrixIterators::Accessor; -# ifdef DEAL_II_WITH_MPI +#ifdef DEAL_II_WITH_MPI // Give access to internal datastructures to perform MPI operations. template friend void Utilities::MPI::sum(const SparseMatrix &, const MPI_Comm &, SparseMatrix &); -# endif +#endif }; -# ifndef DOXYGEN +#ifndef DOXYGEN /*---------------------- Inline functions -----------------------------------*/ @@ -2577,12 +2576,9 @@ SparseMatrix::prepare_set() // nothing to do here } -# endif // DOXYGEN - +#endif // DOXYGEN -/*---------------------------- sparse_matrix.h ---------------------------*/ DEAL_II_NAMESPACE_CLOSE #endif -/*---------------------------- sparse_matrix.h ---------------------------*/ -- 2.39.5