<div dir="ltr"><br><div class="gmail_extra">I am using Fortran. Can i make this call from fortran ?<br>PetscViewerCreate(PetscObjectComm((PetscObject)dm), viewer)<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">
On Wed, Apr 17, 2013 at 8:36 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dharmendar Reddy <<a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a>> writes:<br>
<br>
> Hello,<br>
> I think i finally was able to go thorugh the process of solving a<br>
> poisson problem using DMPlex object. Now i need to visualize the data.<br>
><br>
> I was looking at following lines from exmple 62:<br>
<br>
</div>You don't need any of that crazy nonsense. (That terrible code didn't<br>
get cleaned up after we fixed DMPlex viewing.) This is how we do the<br>
same thing in src/ts/examples/tutorials/ex11.c:<br>
<br>
ierr = PetscViewerCreate(PetscObjectComm((PetscObject)dm), viewer);CHKERRQ(ierr);<br>
ierr = PetscViewerSetType(*viewer, PETSCVIEWERVTK);CHKERRQ(ierr);<br>
ierr = PetscViewerFileSetName(*viewer, filename);CHKERRQ(ierr);<br>
</blockquote></div><br><br clear="all"><br>-- <br>-----------------------------------------------------<br>Dharmendar Reddy Palle<br>Graduate Student<br>Microelectronics Research center,<br>University of Texas at Austin,<br>
10100 Burnet Road, Bldg. 160<br>MER 2.608F, TX 78758-4445<br>e-mail: <a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a><br>Phone: <a href="tel:%2B1-512-350-9082" value="+15123509082" target="_blank">+1-512-350-9082</a><br>
United States of America.<br>Homepage: <a href="https://webspace.utexas.edu/~dpr342" target="_blank">https://webspace.utexas.edu/~dpr342</a><br>
</div></div>