Re: [petsc-users] fstack-array issue

2016-02-07 Thread Adrian Jackson
Hi, I have tried with -fstack-protector-all and that didn't pick up anything, but not with valgrind yet. cheers adrianj On 07/02/2016 16:13, Matthew Knepley wrote: > It seems like that you have exceeded stack space with your local array. > Did you run under valgrind? > > Matt > > On Sun, Fe

Re: [petsc-users] fstack-array issue

2016-02-07 Thread Matthew Knepley
It seems like that you have exceeded stack space with your local array. Did you run under valgrind? Matt On Sun, Feb 7, 2016 at 3:51 AM, Adrian Jackson wrote: > Hi, > > We're using PETSc in a fortran code and get an error if we compile the > code using the -fstack-arrays flag when using the G

Re: [petsc-users] VecGetValues not working.

2016-02-07 Thread Kaushik Kulkarni
Thanks Dave, No doubt I am a noob. *​~​Kaushik* On Sun, Feb 7, 2016 at 6:28 PM, Dave May wrote: > > > On Sunday, 7 February 2016, Kaushik Kulkarni wrote: > >> Hello, >> I am a beginner at PETSc, so please excuse for such a trivial doubt. I am >> writing a program to learn about PETSc vectors.

Re: [petsc-users] VecGetValues not working.

2016-02-07 Thread Dave May
On Sunday, 7 February 2016, Kaushik Kulkarni wrote: > Hello, > I am a beginner at PETSc, so please excuse for such a trivial doubt. I am > writing a program to learn about PETSc vectors. So in the process I thought > to write a small program to learn about initializing and accessing vectors, > wh

[petsc-users] VecGetValues not working.

2016-02-07 Thread Kaushik Kulkarni
Hello, I am a beginner at PETSc, so please excuse for such a trivial doubt. I am writing a program to learn about PETSc vectors. So in the process I thought to write a small program to learn about initializing and accessing vectors, which creates vectors with size `rank+1' where rank is initialized

[petsc-users] fstack-array issue

2016-02-07 Thread Adrian Jackson
Hi, We're using PETSc in a fortran code and get an error if we compile the code using the -fstack-arrays flag when using the GNU fortran compilers. This is the error we are getting: [22]PETSC ERROR: - Error Message -