From e089888a295bfaff77ce18f799da91ec374461e4 Mon Sep 17 00:00:00 2001 From: Stefano Zampini Date: Mon, 16 Jan 2023 12:24:05 +0300 Subject: [PATCH] Remove PETSC_NULL occurrences --- source/lac/petsc_solver.cc | 2 +- source/lac/petsc_vector_base.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/lac/petsc_solver.cc b/source/lac/petsc_solver.cc index 8a4ec5c471..834a3b0c9f 100644 --- a/source/lac/petsc_solver.cc +++ b/source/lac/petsc_solver.cc @@ -779,7 +779,7 @@ namespace PETScWrappers ierr = KSPSetConvergenceTest(solver_data->ksp, &convergence_test, reinterpret_cast(&solver_control), - PETSC_NULL); + nullptr); AssertThrow(ierr == 0, ExcPETScError(ierr)); /* diff --git a/source/lac/petsc_vector_base.cc b/source/lac/petsc_vector_base.cc index 671a198973..5998d1894c 100644 --- a/source/lac/petsc_vector_base.cc +++ b/source/lac/petsc_vector_base.cc @@ -50,7 +50,7 @@ namespace PETScWrappers VecGetOwnershipRange(vector.vector, &begin, &end); AssertThrow(ierr == 0, ExcPETScError(ierr)); - Vec locally_stored_elements = PETSC_NULL; + Vec locally_stored_elements = nullptr; ierr = VecGhostGetLocalForm(vector.vector, &locally_stored_elements); AssertThrow(ierr == 0, ExcPETScError(ierr)); @@ -201,7 +201,7 @@ namespace PETScWrappers if (has_ghost_elements()) { - Vec ghost = PETSC_NULL; + Vec ghost = nullptr; ierr = VecGhostGetLocalForm(vector, &ghost); AssertThrow(ierr == 0, ExcPETScError(ierr)); -- 2.39.5