From 49fa9ceef08baa1426cf9eefbbf6a125b3f27864 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Tue, 20 Dec 2022 17:42:33 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: David Wells --- doc/news/changes/minor/20221220StefanoZampini | 2 +- source/lac/petsc_matrix_base.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = -- 2.39.5