From: Luca Heltai Date: Tue, 20 Dec 2022 16:42:33 +0000 (+0100) Subject: Apply suggestions from code review X-Git-Tag: v9.5.0-rc1~717^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49fa9ceef08baa1426cf9eefbbf6a125b3f27864;p=dealii.git Apply suggestions from code review Co-authored-by: David Wells --- diff --git a/doc/news/changes/minor/20221220StefanoZampini b/doc/news/changes/minor/20221220StefanoZampini index ef85a85963..f21b3b552c 100644 --- a/doc/news/changes/minor/20221220StefanoZampini +++ b/doc/news/changes/minor/20221220StefanoZampini @@ -1,4 +1,4 @@ Fixed: Small fixes to commnicator handling in PETSc classes. Move from GetArray to GetArrayRead (threadsafe version).
-(StefanZampini, 2022/12/20) +(Stefano Zampini, 2022/12/20) diff --git a/source/lac/petsc_matrix_base.cc b/source/lac/petsc_matrix_base.cc index 6bcede476f..e9b2b5fb01 100644 --- a/source/lac/petsc_matrix_base.cc +++ b/source/lac/petsc_matrix_base.cc @@ -639,7 +639,7 @@ namespace PETScWrappers MatrixBase::write_ascii(const PetscViewerFormat format) { assert_is_compressed(); - MPI_Comm comm = PetscObjectComm((PetscObject)matrix); + MPI_Comm comm = PetscObjectComm(reinterpret_cast(matrix)); // Set options PetscErrorCode ierr =