[petsc-users] Questions abt ex22f
Matthew Knepley
knepley at gmail.com
Sun Apr 22 14:41:08 CDT 2012
On Sun, Apr 22, 2012 at 3:36 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> 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.
>
This is perfectly sensible:
1) If you use PETSC_NULL_OBJECT, you get the default viewer
2) I was talking about the solution, which is the 0 vector in my output
Matt
--
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-users/attachments/20120422/abbe80d5/attachment.htm>
More information about the petsc-users
mailing list