Need a simple unstructured grid example

2007-06-10 Thread Matthew Knepley
Can you take a look at the latest tutorial under the Tutorials link? It works with 2.3.3 and discusses the Bratu problem with both structured and unstructured meshes and has running code for it. Matt On 6/9/07, Shi Jin jinzishuai at yahoo.com wrote: I am using petsc-2.3.3-p1. I've taken a

How to zero all values on a particular row?

2007-06-10 Thread Ben Tay
to do this? Thanks -- next part -- An HTML attachment was scrubbed... URL: http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20070610/c3285549/attachment.htm

Error installing PETSc with --download-triangle

2007-06-10 Thread Shi Jin
://answers.yahoo.com/dir/?link=listsid=396545433 -- next part -- A non-text attachment was scrubbed... Name: build.log Type: application/octet-stream Size: 26669 bytes Desc: 988914365-build.log URL: http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20070610/3efb8028

How to zero all values on a particular row?

2007-06-10 Thread Barry Smith
On Sun, 10 Jun 2007, Ben Tay wrote: Hi, I need to insert values into a matrix and then solve this poisson eqn as part of my cfd code. For efficiency sake, I simply use do j=1,size_y do i=1,size_x matsetvalue end do end do to insert values into all the cells Then

How to zero all values on a particular row?

2007-06-10 Thread Barry Smith
On Mon, 11 Jun 2007, Ben Tay wrote: Thanks Barry, I managed to get it working. I realise that I had to call matssemblybegin/end each time after I zero a particular row. I also tried MatSetOption(mat,MAT_KEEP_ZEROED_ROWS) as what you 've suggested. So do I have to

Do not ignore errors in Makefile

2007-06-10 Thread Barry Smith
Shi, I have come up with a scheme that helps with this implemented in petsc-dev. The default behavior is the same, for example, [anlext2wls147:snes/examples/tutorials] bsmith% make ex37f90 gfortran -c -I/Users/bsmith/Src/petsc-dev/include/finclude -fPIC -Wall -Wno-unused-variable -g

Error compile petsc-dev

2007-06-10 Thread Shi Jin
Hi, Since I wanted to try Barry's implementation on the Do not ignore errors in Makefile issue, I checked out petsc-dev (both the Mercurial and the nightly tar ball). However, I had the same errors during make: home/seki/mywork/PETSc/petsc-dev/conf/variables:119:

Error compile petsc-dev

2007-06-10 Thread Barry Smith
Please send to petsc-maint at mcs.anl.gov instead of petsc-users The makefile system was changed slightly in petsc-dev see http://www-unix.mcs.anl.gov/web-mail-archive/lists/petsc-dev/2007/06/msg3.html Most likely you have not set PETSC_ARCH Barry On Sun, 10 Jun 2007, Shi Jin

Do not ignore errors in Makefile

2007-06-10 Thread Shi Jin
Great. This seems to be exactly what I want. I hope it will soon be available in the release. Shi --- Barry Smith bsmith at mcs.anl.gov wrote: Shi, I have come up with a scheme that helps with this implemented in petsc-dev. The default behavior is the same, for example,

Do not ignore errors in Makefile

2007-06-10 Thread Shi Jin
Hi Barry, The make PETSC_MAKE_STOP_ON_ERROR= method works perfectly. However, when putting this line inside the Makefile after all the include statements, it showslots of script code and there is not detailed compiler errors. I changed it to PETSC_MAKE_STOP_ON_ERROR=, without the in the end and