<div class="gmail_quote">On Thu, Mar 8, 2012 at 13:10, Max Rudolph <span dir="ltr">&lt;<a href="mailto:maxwellr@gmail.com">maxwellr@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>I get an implicit declaration warning when compiling with a call to DMDAVTKWriteAll:<div><br></div><div><div>io.c:209: warning: implicit declaration of function &#39;DMDAVTKWriteAll&#39;</div><div><br></div><div>Should the prototype be in petscdmda.h ? I do not see it there. Code still compiles successfully.</div>

<div></div></div></div></blockquote></div><br><div>That is a developer-level function that you should not be calling, it&#39;s declared in private/daimpl.h. I didn&#39;t hack together some funky new API when I added the VTK viewer. You use it like any other viewer, by calling VecView(). Here&#39;s some sample code.</div>
<div><br></div><div><div>    ierr = PetscOptionsGetString(((PetscObject)snes)-&gt;prefix,&quot;-snes_view_solution_vtk&quot;,filename,PETSC_MAX_PATH_LEN,&amp;flg);CHKERRQ(ierr);</div><div>    if (flg) {</div><div>      PetscViewer viewer;</div>
<div>      ierr = PetscViewerCreate(((PetscObject)snes)-&gt;comm,&amp;viewer);CHKERRQ(ierr);</div><div>      ierr = PetscViewerSetType(viewer,PETSCVIEWERVTK);CHKERRQ(ierr);</div><div>      ierr = PetscViewerFileSetName(viewer,filename);CHKERRQ(ierr);</div>
<div>      ierr = VecView(snes-&gt;vec_sol,viewer);CHKERRQ(ierr);</div><div>      ierr = PetscViewerDestroy(&amp;viewer);CHKERRQ(ierr);</div><div>    }</div></div><div><br></div>