Christophe Ortiz <[email protected]> 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.

Attachment: pgprrIHtzXEjo.pgp
Description: PGP signature

Reply via email to