From e6b0c4287a71b8eabaa510bea850b58caf4efbfd Mon Sep 17 00:00:00 2001 From: deal Date: Thu, 3 Jun 2004 14:32:43 +0000 Subject: [PATCH] Conditionalize some files on the use of PETSc. git-svn-id: https://svn.dealii.org/trunk@9371 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/Makefile | 2 +- deal.II/lac/include/lac/petsc_block_sparse_matrix.h | 6 +++++- .../lac/include/lac/petsc_parallel_block_sparse_matrix.h | 3 +++ deal.II/lac/source/petsc_block_sparse_matrix.cc | 4 ++-- deal.II/lac/source/petsc_parallel_block_sparse_matrix.cc | 3 ++- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/deal.II/lac/Makefile b/deal.II/lac/Makefile index 0e614ae912..b33d5c41eb 100644 --- a/deal.II/lac/Makefile +++ b/deal.II/lac/Makefile @@ -26,7 +26,7 @@ endif $(LIBDIR)/lac/%.g.$(OBJEXT) : @echo "=====lac==============debug======$(MT)== $( +#ifdef DEAL_II_USE_PETSC + /*! @addtogroup PETSc *@{ @@ -50,7 +52,7 @@ namespace PETScWrappers * * @author Wolfgang Bangerth, 2004 */ - class BlockSparseMatrix : public BlockMatrixBase + class BlockSparseMatrix : public BlockMatrixBase { public: /** @@ -198,4 +200,6 @@ namespace PETScWrappers } +#endif // DEAL_II_USE_PETSC + #endif // __deal2__petsc_block_sparse_matrix_h diff --git a/deal.II/lac/include/lac/petsc_parallel_block_sparse_matrix.h b/deal.II/lac/include/lac/petsc_parallel_block_sparse_matrix.h index 733d19fe9f..3a8e520fce 100644 --- a/deal.II/lac/include/lac/petsc_parallel_block_sparse_matrix.h +++ b/deal.II/lac/include/lac/petsc_parallel_block_sparse_matrix.h @@ -20,6 +20,7 @@ #include #include +#ifdef DEAL_II_USE_PETSC /*! @addtogroup PETSc @@ -195,4 +196,6 @@ namespace PETScWrappers } +#endif // DEAL_II_USE_PETSC + #endif // __deal2__petsc_parallel_block_sparse_matrix_h diff --git a/deal.II/lac/source/petsc_block_sparse_matrix.cc b/deal.II/lac/source/petsc_block_sparse_matrix.cc index d2354b2297..7ba4a2b27a 100644 --- a/deal.II/lac/source/petsc_block_sparse_matrix.cc +++ b/deal.II/lac/source/petsc_block_sparse_matrix.cc @@ -14,7 +14,7 @@ #include - +#ifdef DEAL_II_USE_PETSC namespace PETScWrappers { @@ -94,4 +94,4 @@ namespace PETScWrappers } - +#endif diff --git a/deal.II/lac/source/petsc_parallel_block_sparse_matrix.cc b/deal.II/lac/source/petsc_parallel_block_sparse_matrix.cc index 2f7113cf92..98acedf670 100644 --- a/deal.II/lac/source/petsc_parallel_block_sparse_matrix.cc +++ b/deal.II/lac/source/petsc_parallel_block_sparse_matrix.cc @@ -14,7 +14,7 @@ #include - +#ifdef DEAL_II_USE_PETSC namespace PETScWrappers { @@ -107,3 +107,4 @@ namespace PETScWrappers +#endif -- 2.39.5