[petsc-users] external binary reader from bin/matlab
SUN Chun
Chun.SUN at 3ds.com
Mon Apr 19 14:52:18 CDT 2010
Barry,
This works well. Thanks a lot.
Exactly as you said, I was using PETSC_VIEWER_NATIVE for parallel rectangular dense matrix. As far as I can remember, I switched to that option because some cases didn't run in parallel otherwise or something like that.... Didn't raise a bug report because we are still in 2.3.3 for multiple tangled reasons.
Thanks for your new version. Works both for sparse and dense.
Chun
From: petsc-users-bounces at mcs.anl.gov [mailto:petsc-users-bounces at mcs.anl.gov] On Behalf Of Barry Smith
Sent: Monday, April 19, 2010 3:26 PM
To: PETSc users list
Subject: Re: [petsc-users] external binary reader from bin/matlab
Chun,
I assume you mean dense matrices written with PETSC_VIEWER_NATIVE option to the viewer?
Please find attached a version of PetscBinaryRead.m that handles this. Please let me know if it doesn't work for you?
Notes: the default viewing of dense matrices converts to sparse so that PetscBinaryRead() does actually work. The reading of native dense format doesn't matter if the matrix is rectangular or square it just was not supported (but is with my new code). Please let me know if I misunderstood your problem.
Barry
On Apr 19, 2010, at 1:44 PM, SUN Chun wrote:
Hi PETSc dev,
It seems that bin/matlab/PetscBinaryRead.m does not read rectangular dense matrix binary output. I had success in sparse matrix though.
Could you confirm this? Or I'm doing something wrong? Do you provide any other external binary reader than this set?
Thanks a lot,
Chun
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email and all attachments,
(iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.
For other languages, Click Here <http://www.3ds.com/terms/email-disclaimer>
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.For other languages, go to http://www.3ds.com/terms/email-disclaimer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100419/87275295/attachment.htm>
More information about the petsc-users
mailing list