From 500d3e5b0f445c7c781c5b7eb067c72cea449c76 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 22 Oct 2009 20:26:31 +0000 Subject: [PATCH] Fix a bug: for a boost::scoped_ptr, the test &*ptr != 0 fails if ptr==0 because boost trips on an assertion if we call operator* on a pointer that's zero. git-svn-id: https://svn.dealii.org/trunk@19988 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/constraint_matrix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deal.II/lac/source/constraint_matrix.cc b/deal.II/lac/source/constraint_matrix.cc index 6e87a8cca5..c15362443e 100644 --- a/deal.II/lac/source/constraint_matrix.cc +++ b/deal.II/lac/source/constraint_matrix.cc @@ -1879,7 +1879,7 @@ ConstraintMatrix::distribute (TrilinosWrappers::MPI::Vector &vec) const // constraints indicate. Do this only at // the first call and provide the class // with a vector for further use. - if (&*vec_distribute!=0 || vec_distribute->size()!=vec.size()) + if (!vec_distribute || vec_distribute->size()!=vec.size()) { std::vector my_indices(vec.local_size()); unsigned int index2 = 0; -- 2.39.5