git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@27433
0785d39b-7218-0410-832d-
ea1e28bc413d
#include <deal.II/lac/abstract_linear_algebra.h>
+#define USE_PETSC_LA
+
namespace LA
{
+#ifdef USE_PETSC_LA
+ using namespace dealii::LinearAlgebraPETSc;
+#else
using namespace dealii::LinearAlgebraDealII;
-// using namespace dealii::LinearAlgebraPETSc;
+#endif
// using namespace dealii::LinearAlgebraTrilinos;
}
constraints.distribute_local_to_global(cell_matrix, cell_rhs, local_dof_indices, system_matrix, system_rhs);
}
-// system_matrix.compress();
-// system_rhs.compress();
-
+ #ifdef USE_PETSC_LA
+ system_matrix.compress();
+ system_rhs.compress();
+ #endif
// Now we are done assembling the linear
// system. The constrained nodes are still
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams