Some basic questions about PETSC

2006-12-05 Thread Ben Tay
"Its normally better to change the values in place" So you mean I should use VecSetValue/s instead? Thank you. Regards. On 12/4/06, Matthew Knepley wrote: > > On 12/4/06, Ben Tay wrote: > > > > Hi, > > > > regarding qn 4 ie the requirement of > > VecAssemblyBegin,VecAssemblyEnd, I used VecPl

Some basic questions about PETSC

2006-12-05 Thread Matthew Knepley
I would, but not knowing anything about your application, I can't tell whether it will make a difference. Matt On 12/4/06, Ben Tay wrote: > "Its normally better to change the values in place" > > So you mean I should use VecSetValue/s instead? > > Thank you. > > Regards. > > > On 12/4/06, Matt

Some basic questions about PETSC

2006-12-04 Thread Ben Tay
Hi, regarding qn 4 ie the requirement of VecAssemblyBegin,VecAssemblyEnd, I used VecPlaceArray, VecResetArray to change the values. I did not use Assembly after the 1st time step and it works ok. So that is fine too, right? Thank you! On 12/4/06, Satish Balay wrote: > > On Sun, 3 Dec 2006, Mat

Some basic questions about PETSC

2006-12-04 Thread Ben Tay
Hi, I'm still relatively new to PETSC but I've finally managed to solve my own poisson eqn using it in about a week's time.Thank you for writing such a good solver. However, I have some questions still about PETSC: 1. Are petscscaler the same as real nos.? I am writing in double precision or rea

Some basic questions about PETSC

2006-12-04 Thread Matthew Knepley
On 12/4/06, Ben Tay wrote: > > Hi, > > regarding qn 4 ie the requirement of > VecAssemblyBegin,VecAssemblyEnd, I used VecPlaceArray, > VecResetArray to change the values. I did not use Assembly after the 1st > time step and it works ok. So that is fine too, right? Its alright, but probably not o

Some basic questions about PETSC

2006-12-03 Thread Satish Balay
On Sun, 3 Dec 2006, Matthew Knepley wrote: > > 1. Are petscscaler the same as real nos.? I am writing in double precision > > or real(8). So are these 2 interchangeable? (same as petscint and integer). > > Yes. You can check these defines in include/finclude/petscdef.h PetscInt -> integer*4 Pet

Some basic questions about PETSC

2006-12-03 Thread Matthew Knepley
On 12/3/06, Ben Tay wrote: > Hi, > > I'm still relatively new to PETSC but I've finally managed to solve my own > poisson eqn using it in about a week's time.Thank you for writing such a > good solver. > > However, I have some questions still about PETSC: > > 1. Are petscscaler the same as real no