<div class="gmail_quote">On Sun, Apr 22, 2012 at 14:28, Matthew Knepley <span dir="ltr">&lt;<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Apr 22, 2012 at 3:20 PM, Jed Brown <span dir="ltr">&lt;<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>&gt;</span> wrote:<br></div><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>Look at the man page for VecView, it needs a PetscViewer argument.</p></blockquote></div><div>Works for me with VecView(x, PETSC_NULL_OBJECT, ierr), although it is 0</div></div></blockquote></div><br><div>Matt, are you trying to cause confusion? The posted code called VecView with the wrong number of arguments. Also, telling any Fortran user that &quot;0&quot; is even related to PETSC_NULL_OBJECT is a terrible idea because they are totally different things on the Fortran side.</div>