From: Stefano Zampini Date: Mon, 16 Jan 2023 09:24:05 +0000 (+0300) Subject: Remove PETSC_NULL occurrences X-Git-Tag: v9.5.0-rc1~601^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e089888a295bfaff77ce18f799da91ec374461e4;p=dealii.git Remove PETSC_NULL occurrences --- 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));