[petsc-dev] on implementing a new PetscViewer

Matthew Knepley knepley at gmail.com
Fri Jul 17 11:30:07 CDT 2015

On Fri, Jul 17, 2015 at 11:26 AM, Marco Zocca <zocca.marco at gmail.com> wrote:

> Dear PETSc,
>  in writing the foreign-function wrappers for the library in Haskell,
> I found the need for an operation that copies the contents of a Mat or
> Vec, in the spirit of the Matlab socket-based ones (in both
> directions).
> Roughly speaking, I need to represent the `peek`, `sizeOf` and
> `alignment` operations (or an alternate PetscViewer that dumps in the
> memory of a single node).
> Of course this wouldn't be used in cases when the sum of the local
> block sizes exceeds some maximum allowed by an individual machine.

Can you just use the binary viewer? I am not sure why that does not meet
the requirements.



> Thank you in advance,
> Marco Zocca

What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150717/1b092de8/attachment.html>

More information about the petsc-dev mailing list