VecView behaviour

Barry Smith bsmith at mcs.anl.gov
Fri May 29 15:32:22 CDT 2009


On May 29, 2009, at 4:34 AM, Andreas Grassl wrote:

> Hello,
>
> I'm working with the PCNN preconditioner and hence with  
> ISLocalToGlobalMapping.
> After solving I want to write the solution to an ASCII-file where  
> only the
> values belonging to the "external" global numbering are given and  
> not followed
                                       ^^^^^^^^^^^^^^^^^^^^^^^
>
> by the zeros.

What do you mean? What parts of the vector do you want?

>
>
> Currently I'm giving this commands:
>
> ierr =  
> PetscViewerSetFormat(viewer,PETSC_VIEWER_ASCII_SYMMODU);CHKERRQ(ierr);
> ierr = VecView(X,viewer);CHKERRQ(ierr);
>
> Does anybody have an idea, which option or function could help me?
>
> cheers,
>
> ando
>
> -- 
> /"\                               Grassl Andreas
> \ /    ASCII Ribbon Campaign      Uni Innsbruck Institut f. Mathematik
>  X      against HTML email        Technikerstr. 13 Zi 709
> / \                               +43 (0)512 507 6091



More information about the petsc-users mailing list