]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove PETSC_NULL occurrences
authorStefano Zampini <stefano.zampini@gmail.com>
Mon, 16 Jan 2023 09:24:05 +0000 (12:24 +0300)
committerStefano Zampini <stefano.zampini@gmail.com>
Sun, 22 Jan 2023 14:07:09 +0000 (17:07 +0300)
source/lac/petsc_solver.cc
source/lac/petsc_vector_base.cc

index 8a4ec5c4715edea97b8e6a0a39d9aca7bdd8cef6..834a3b0c9f79ad462c2c6924f6ba093f9f8b17d8 100644 (file)
@@ -779,7 +779,7 @@ namespace PETScWrappers
         ierr = KSPSetConvergenceTest(solver_data->ksp,
                                      &convergence_test,
                                      reinterpret_cast<void *>(&solver_control),
-                                     PETSC_NULL);
+                                     nullptr);
         AssertThrow(ierr == 0, ExcPETScError(ierr));
 
         /*
index 671a198973549de1e136db13955f8419e7a71b2c..5998d1894c53daba767255f06cbd9368dab6c3f9 100644 (file)
@@ -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));
 

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


Typeset in Trocchi and Trocchi Bold Sans Serif.