From: deal Date: Thu, 3 Jun 2004 14:32:43 +0000 (+0000) Subject: Conditionalize some files on the use of PETSc. X-Git-Tag: v8.0.0~15088 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6b0c4287a71b8eabaa510bea850b58caf4efbfd;p=dealii.git Conditionalize some files on the use of PETSc. git-svn-id: https://svn.dealii.org/trunk@9371 0785d39b-7218-0410-832d-ea1e28bc413d --- 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