How to visualize a matrix object from a remote machine?

2009-12-15 Thread h...@umn.edu
Hi, I use X11 to connect the server and I want to draw the nonzero structure of matrix. The option '-mat_view_draw' gives some error messages. How to fix it? Thanks. Bests, Hui

How to visualize a matrix object from a remote machine?

2009-12-15 Thread Satish Balay
On Tue, 15 Dec 2009, hxie at umn.edu wrote: Hi, I use X11 to connect the server and I want to draw the nonzero structure of matrix. The option '-mat_view_draw' gives some error messages. How to fix it? Thanks. What error message? Normally you can do the following: ssh -Y remotemachine

How to visualize a matrix object from a remote machine?

2009-12-15 Thread Satish Balay
If you are running on a cluster - the cluster nodes won't usually have access to the X11-server-port on the front-end node. So - its best to do '-mat_view_draw' on a non-cluster environment. If you really need to do this on the cluster - the following methods are possible: 1) assuming you know

Problems with VecGetArray in Fortran

2009-12-15 Thread Barai, Pallab
Hello, I am initializing a Petsc Vector with 1.0 using the VecSet function. When I try to extract the values using VecGetArray, I get junk output in Fortran. I implemented the same thing in C and it works fine in C. The output and test code for both the Fortran and C are given below. Is this

Problems with VecGetArray in Fortran

2009-12-15 Thread Satish Balay
In fortran - try and avoid passing constants with implicit types - and explicitly define them. i.e PetscScalar one one = 1.0d0 call VecSet(tmp, one, ierr) etc.. Also - VecGetArrayF90() can be prefered over the old VecGetArray() [assuming f77 is nolonger needed] Satish

matrix building question

2009-12-15 Thread Barry Smith
On Dec 15, 2009, at 5:55 PM, Matt Funk wrote: Sorry, i should have been more specific. Of course there cannot be 'holes': What i meant was this: could i, in theory, build a matrix that with the following layout: rows: 0-249 owned by proc0 rows: 250-499 owned by proc1 rows: 500-749 owned

Mesh resolution

2009-12-15 Thread Ryan Yan
attachment was scrubbed... URL: http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20091215/ae4694ac/attachment.htm

Mesh resolution

2009-12-15 Thread (Rebecca) Xuefei YUAN
The relation between the coarser grid and finer grid is always half spacing in either x-, y-, or z-direction. Thus, for your finest grid being 257x257x257, you need a coarser grid of 129x129x129 on the coarse grid if your level is 2. Hope this is helpful. R Quoting Ryan Yan vyan2000 at

Mesh resolution

2009-12-15 Thread Ryan Yan
-- next part -- An HTML attachment was scrubbed... URL: http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20091215/e26bdb12/attachment.htm