[petsc-users] Bug in boundary conditions (ex25.c) ?

Jed Brown jedbrown at mcs.anl.gov
Wed Oct 30 00:07:22 CDT 2013


Christophe Ortiz <christophe.ortiz at ciemat.es> writes:
> Ok, I understand. For the moment it works well with this option.
>
> I'm still doing some tests and I would like to know if it's possible to
> view a solution in log scale ?
> To view the solution after diffusion I use
>  ierr = PetscViewerDrawOpen(PETSC_COMM_WORLD,NULL,"",0,0,300,300,&viewer);
> VecView(X,viewer);
>
> Since the values of X are large (~1e20) and vary logarithmically, I would
> like to view them in log scale. How can I do that ?

You can use VecLog() and plot that.

> Also, is it possible to view the "real coordinates" in x-axis, instead of
> the node number ?

Use DMDASetUniformCoordinates() or similar.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131029/8b748364/attachment.pgp>


More information about the petsc-users mailing list