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
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
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
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
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
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
attachment was scrubbed...
URL:
http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20091215/ae4694ac/attachment.htm
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
-- next part --
An HTML attachment was scrubbed...
URL:
http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20091215/e26bdb12/attachment.htm