[petsc-users] Questions abt ex22f

Jed Brown jedbrown at mcs.anl.gov
Sun Apr 22 14:36:35 CDT 2012


On Sun, Apr 22, 2012 at 14:28, Matthew Knepley <knepley at gmail.com> wrote:

> On Sun, Apr 22, 2012 at 3:20 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>
>> Look at the man page for VecView, it needs a PetscViewer argument.
>>
> Works for me with VecView(x, PETSC_NULL_OBJECT, ierr), although it is 0
>

Matt, are you trying to cause confusion? The posted code called VecView
with the wrong number of arguments. Also, telling any Fortran user that "0"
is even related to PETSC_NULL_OBJECT is a terrible idea because they are
totally different things on the Fortran side.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120422/401471b1/attachment.htm>


More information about the petsc-users mailing list