I am using Fortran. Can i make this call from fortran ? PetscViewerCreate(PetscObjectComm((PetscObject)dm), viewer)
On Wed, Apr 17, 2013 at 8:36 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote: > Dharmendar Reddy <dharmareddy84 at gmail.com> writes: > > > Hello, > > I think i finally was able to go thorugh the process of solving > a > > poisson problem using DMPlex object. Now i need to visualize the data. > > > > I was looking at following lines from exmple 62: > > You don't need any of that crazy nonsense. (That terrible code didn't > get cleaned up after we fixed DMPlex viewing.) This is how we do the > same thing in src/ts/examples/tutorials/ex11.c: > > ierr = PetscViewerCreate(PetscObjectComm((PetscObject)dm), > viewer);CHKERRQ(ierr); > ierr = PetscViewerSetType(*viewer, PETSCVIEWERVTK);CHKERRQ(ierr); > ierr = PetscViewerFileSetName(*viewer, filename);CHKERRQ(ierr); > -- ----------------------------------------------------- Dharmendar Reddy Palle Graduate Student Microelectronics Research center, University of Texas at Austin, 10100 Burnet Road, Bldg. 160 MER 2.608F, TX 78758-4445 e-mail: dharmareddy84 at gmail.com Phone: +1-512-350-9082 United States of America. Homepage: https://webspace.utexas.edu/~dpr342 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130417/5831aac0/attachment.html>
