From: Wolfgang Bangerth Date: Mon, 14 Nov 2016 14:10:43 +0000 (-0700) Subject: Initialize the 'matrix' and 'vector' members in the PETSc wrappers. X-Git-Tag: v8.5.0-rc1~403^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3579%2Fhead;p=dealii.git Initialize the 'matrix' and 'vector' members in the PETSc wrappers. These members are of type 'Mat' and 'Vec', which are typedefed to pointers to otherwise opaque types. Initialize these members to 'NULL'. --- diff --git a/source/lac/petsc_matrix_base.cc b/source/lac/petsc_matrix_base.cc index 350cd54842..294a6ac4fd 100644 --- a/source/lac/petsc_matrix_base.cc +++ b/source/lac/petsc_matrix_base.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2004 - 2015 by the deal.II authors +// Copyright (C) 2004 - 2016 by the deal.II authors // // This file is part of the deal.II library. // @@ -76,6 +76,7 @@ namespace PETScWrappers MatrixBase::MatrixBase () : + matrix (NULL), last_action (VectorOperation::unknown) {} diff --git a/source/lac/petsc_vector_base.cc b/source/lac/petsc_vector_base.cc index febffa9c45..185f789388 100644 --- a/source/lac/petsc_vector_base.cc +++ b/source/lac/petsc_vector_base.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2004 - 2015 by the deal.II authors +// Copyright (C) 2004 - 2016 by the deal.II authors // // This file is part of the deal.II library. // @@ -150,6 +150,7 @@ namespace PETScWrappers VectorBase::VectorBase () : + vector (NULL), ghosted(false), last_action (::dealii::VectorOperation::unknown), attained_ownership(true)