You can try this:
B = A.convert('dense')
dense_mat = B.getDenseArray(readonly=True)
print(dense_mat)
Jose
> El 10 jul 2025, a las 10:35, Arun Soman Pillai - STFC UKRI via petsc-users
> escribió:
>
> Hi,
> I am trying to view a matrix object when running a job in parallel. The
>
On Thu, Jul 10, 2025 at 11:29 AM Arun Soman Pillai - STFC UKRI via
petsc-users wrote:
> Hi,
> I am trying to view a matrix object when running a job in parallel. The
> application is BOUT++
> (https://urldefense.us/v3/__https://boutproject.github.io/__;!!G_uCfscf7eWS!ZLeEFXZF4ASJ2hjoTAuK-DQjJkNz
Hi,
I am trying to view a matrix object when running a job in parallel. The
application is BOUT++
(https://urldefense.us/v3/__https://boutproject.github.io/__;!!G_uCfscf7eWS!Z-f_HrmUaFAwAK4e2pBspL2oRFtfq9O3GtRCoS_Nb1e9y5j2Vjq6THJTnoot7XiMeRAxlNhskW0QrMV7x_v_VsBXVAsGHRrIifxc$
) which uses petsc a