[petsc-users] Converting a Parallel(MPI) Matrix to a Sequential Matrix

Anthony Dowling dowlinah at clarkson.edu
Mon Sep 7 09:58:33 CDT 2020


Hello all,

Is there a method to convert a parallel(MPI) dense matrix to a sequential
dense matrix? Also to do the same in reverse? The code I am using needs to
be able to convert a float** matrix to a Petsc matrix, and then later
convert that Petsc matrix between MPI dense and sequential dense. How might
this be achieved? The code seems to be converting float** matrices to Petsc
properly, but I am unable to find a method to convert between MPI and
sequential matrices.

Thanks in advance,
Anthony Dowling
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200907/4d1cb35f/attachment.html>


More information about the petsc-users mailing list