[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: what's the difference between PetscViewerASCIIOpen() and PetscViewerBinaryOpen()?
- To: petsc-users@xxxxxxxxxxx
- Subject: Re: what's the difference between PetscViewerASCIIOpen() and PetscViewerBinaryOpen()?
- From: Yujie <recrusader@xxxxxxxxx>
- Date: Tue, 12 Feb 2008 14:08:49 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=j+mh+qnhoO/qI5EFDaj90AHYP9pzTpZHR2ts8Npcft4=; b=KMAUJqNlWPmRpAkm/JzAnysGmQ5NjCuowiISj61pKGg4lFwkWUsYlwxAxafiQRxD4gg2D86kF2G+XLaIiKoTCZOJNY0qr+Ap51VoJn/7BZjiV+NEN+H/pITgsxvfawJh+Uld5w+XQUrNo3cBY5LGa2REL3tFjS5PY2njftYX0LU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=SYioZr2E0EKJ95baHHfwtl5/G20Lw8yERYwauYvlVYtdu3JKSxhZrqLd0cXUYXFEuVp9Quq5DGXvzZvFASIbANQNv1nIn8eIVh9URDmuNbe6rF1rGSdVHpwuIOdPMZphDTokop8+9LMxGV+TmY4nJK2V4bCi1FSBdJyRic21Qr0=
- In-reply-to: <0AB82F4A-4114-4763-AC47-69EDE8E4E2DA@mcs.anl.gov>
- References: <7ff0ee010801221850h4a4161efu6ec3190f3525346d@mail.gmail.com> <a9f269830801221925q721dde06ua29e4f2496d9cc72@mail.gmail.com> <7ff0ee010801222101k471b3c00xe22e933efacb7939@mail.gmail.com> <a9f269830801230553r7c206040p5764d79db38a7fb6@mail.gmail.com> <7ff0ee010801231218xc0281b2n8a7db71713ede8fb@mail.gmail.com> <a9f269830801231247m45fa1d60p5b7467a7ac9d465d@mail.gmail.com> <7ff0ee010802121106n3f1bb609m37d81e9454fd806@mail.gmail.com> <alpine.LFD.1.00.0802121409060.9540@asterix> <0AB82F4A-4114-4763-AC47-69EDE8E4E2DA@mcs.anl.gov>
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
thanks a lot, everyone :).
On 2/12/08, Barry Smith <bsmith@xxxxxxxxxxx> wrote:
It is important to remember what the PETSc users manual
says
"PETSc graphics library is not intended to compete with
high-quality graphics packages. Instead, it is intended to be
easy to use interactively with PETSc programs. We urge users
to generate their publication-quality graphics using a
professional graphics package."
We are not graphics experts, nor do we want to be, or could be.
Barry
On Feb 12, 2008, at 2:23 PM, Satish Balay wrote:
> On Tue, 12 Feb 2008, Yujie wrote:
>
>> On 1/23/08, Matthew Knepley <knepley@xxxxxxxxx> wrote:
>
>>>> In addition, do you have any better methods to save the sparsity
>>>> structure picture of the matrix? Now, I use "-mat_view_draw" to
>>>> do this. However, the speed is very slow and the picture is
>>>> small. I want to get a big picture and directly save it to the
>>>> disk? could you give me some advice? thanks a lot.
>
>>> We do not have a better way to make the sparsity picture. I assume
>>> you could write something that decides how many pixels to use,
>>> calculates an average occupancy per pixel, and writes a BMP or
>>> something.
>
> Couple of notes on this.
>
> - -mat_view_draw can be slow for parallel runs [because all the data
> is moved to proc-0, from where its displayed]. If you wish to speed
> up, you can either:
> * run it sequentially [depending upon your code, the matrix generated
> could be different - so its not suitable]
> * do a binary dump [with MatView() on a binary viewer] - and
> then reload this matrix with a sequential code and then do mat_view
> [check mat/examples/tests/ex33.c,ex43.c]
>
> - you can use the option '-draw_pause -1' to make the window not
> disappear. Now you can zoom-in & zoom-out [with mouse-left or
> mouse-right click]
>
> - Take the snapshot of this window with xv or gnome-screenshot or
> other screen-dump tool [ like 'xwd | xpr -device ps > dump.ps']
>
> - Alternatively you can dump the matrix is matlab format - and use
> Matlab visualization tools.
>
> Satish
>
>