Re: [petsc-users] problem during configuring

2016-05-12 Thread Satish Balay
>>> compilers: Check that C libraries can be used from Fortran Pushing language FC Popping language FC Pushing language FC Popping language FC

Re: [petsc-users] accessing DMDA Vec ghost values

2016-05-12 Thread Sean Dettrick
Thanks Matt and Dave for the explanation, that is very helpful. Best Sean On Thu, May 12, 2016 at 8:58 AM -0700, "Dave May" > wrote: Matt beat me to the punch... :D Anyway, here is my more detailed answer. Thanks! Somehow I

Re: [petsc-users] accessing DMDA Vec ghost values

2016-05-12 Thread Dave May
Matt beat me to the punch... :D Anyway, here is my more detailed answer. > Thanks! Somehow I missed DM{Get,Create}LocalVector(). BTW what is the > difference between the Get and Create versions? It is not obvious from the > documentation. > The DMDA contains a pool of vectors (both local and

Re: [petsc-users] accessing DMDA Vec ghost values

2016-05-12 Thread Matthew Knepley
On Thu, May 12, 2016 at 10:50 AM, Sean Dettrick < sdettr...@trialphaenergy.com> wrote: > > > From: on behalf of Dave May < > dave.mayhe...@gmail.com> > Date: Thursday, May 12, 2016 at 2:48 AM > To: Sean Dettrick > Cc:

Re: [petsc-users] accessing DMDA Vec ghost values

2016-05-12 Thread Sean Dettrick
From: > on behalf of Dave May > Date: Thursday, May 12, 2016 at 2:48 AM To: Sean Dettrick > Cc:

Re: [petsc-users] DMDAGetAO and AODestroy

2016-05-12 Thread Dave May
On 12 May 2016 at 13:01, Miorelli, Federico wrote: > Dave, > > > > Thanks for your answer. > > For consistency with otehr PETSc routines it would perhaps make sense to > create a DMDARestoreAO function? > Not really. The pattern used here is the same as

Re: [petsc-users] DMDAGetAO and AODestroy

2016-05-12 Thread Dave May
On 12 May 2016 at 11:36, Miorelli, Federico wrote: > In one of my subroutines I'm calling DMDAGetAO to get the application > ordering from a DM structure. > > After using it I was calling AODestroy. > > > > Everything worked fine until I called the subroutine for the

[petsc-users] DMDAGetAO and AODestroy

2016-05-12 Thread Miorelli, Federico
In one of my subroutines I'm calling DMDAGetAO to get the application ordering from a DM structure. After using it I was calling AODestroy. Everything worked fine until I called the subroutine for the second time, when the program crashed. Removing the call to AODestroy solved the crash. Am I

Re: [petsc-users] accessing DMDA Vec ghost values

2016-05-12 Thread Dave May
On 12 May 2016 at 10:42, Sean Dettrick wrote: > Hi, > > When discussing DMDAVecGetArrayDOF etc in section 2.4.4, the PETSc 3.7 > manual says "The array is accessed using the usual global indexing on the > entire grid, but the user may only refer to the local and

[petsc-users] accessing DMDA Vec ghost values

2016-05-12 Thread Sean Dettrick
Hi, When discussing DMDAVecGetArrayDOF etc in section 2.4.4, the PETSc 3.7 manual says "The array is accessed using the usual global indexing on the entire grid, but the user may only refer to the local and ghost entries of this array as all other entries are undefined”. OK so far. But how