[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-07 Thread Jed Brown
On Mon, Feb 6, 2012 at 22:11, Barry Smith bsmith at mcs.anl.gov wrote: On the other hand you could argue that ALL vector types should support ghosting as a natural thing (with sequential vectors just have 0 length ghosts conceptually) then it would be desirable to allow setting the ghost

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Barry Smith
Fredrik, This question belongs on petsc-dev at mcs.anl.gov since it involves additions/extensions to PETSc so I am moving the discussion over to there. We have not done the required work to have ghosted vectors work with CUSP yet, so this will require some additions to PETSc. We

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Matthew Knepley
On Mon, Feb 6, 2012 at 11:09 AM, Barry Smith bsmith at mcs.anl.gov wrote: Fredrik, This question belongs on petsc-dev at mcs.anl.gov since it involves additions/extensions to PETSc so I am moving the discussion over to there. We have not done the required work to have ghosted

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Matthew Knepley
On Mon, Feb 6, 2012 at 12:40 PM, Jed Brown jedbrown at mcs.anl.gov wrote: On Mon, Feb 6, 2012 at 20:35, Matthew Knepley knepley at gmail.com wrote: VecCreate() VecSetType() VecSetGhosted() Is there a compelling reason for memory to be allocated before VecSetUp()? Deferring it would make

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Jed Brown
On Mon, Feb 6, 2012 at 21:42, Matthew Knepley knepley at gmail.com wrote: I don't like this because it would mean calling VecSetUp() all over the place. Couldn't the ghosting flag be on the same level as the sizes? Maybe VecSetUp() is wrong because that would imply collective. This memory

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Matthew Knepley
On Mon, Feb 6, 2012 at 12:47 PM, Jed Brown jedbrown at mcs.anl.gov wrote: On Mon, Feb 6, 2012 at 21:42, Matthew Knepley knepley at gmail.com wrote: I don't like this because it would mean calling VecSetUp() all over the place. Couldn't the ghosting flag be on the same level as the sizes?

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Barry Smith
On Feb 6, 2012, at 12:47 PM, Jed Brown wrote: On Mon, Feb 6, 2012 at 21:42, Matthew Knepley knepley at gmail.com wrote: I don't like this because it would mean calling VecSetUp() all over the place. Couldn't the ghosting flag be on the same level as the sizes? Maybe VecSetUp() is wrong

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Matthew Knepley
On Mon, Feb 6, 2012 at 1:11 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 12:47 PM, Jed Brown wrote: On Mon, Feb 6, 2012 at 21:42, Matthew Knepley knepley at gmail.com wrote: I don't like this because it would mean calling VecSetUp() all over the place. Couldn't the

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Barry Smith
On Feb 6, 2012, at 1:14 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:11 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 12:47 PM, Jed Brown wrote: On Mon, Feb 6, 2012 at 21:42, Matthew Knepley knepley at gmail.com wrote: I don't like this because it would mean

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Matthew Knepley
On Mon, Feb 6, 2012 at 1:23 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:14 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:11 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 12:47 PM, Jed Brown wrote: On Mon, Feb 6, 2012 at 21:42, Matthew

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Barry Smith
On Feb 6, 2012, at 1:27 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:23 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:14 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:11 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 12:47 PM, Jed

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Matthew Knepley
On Mon, Feb 6, 2012 at 1:30 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:27 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:23 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:14 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:11 PM,

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Barry Smith
On Feb 6, 2012, at 1:39 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:30 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:27 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:23 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:14 PM, Matthew

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Dmitry Karpeev
On Mon, Feb 6, 2012 at 1:30 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:27 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:23 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:14 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:11 PM,

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Barry Smith
On Feb 6, 2012, at 1:42 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 1:30 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:27 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:23 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:14 PM,

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Matthew Knepley
On Mon, Feb 6, 2012 at 1:42 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:39 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:30 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:27 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:23 PM,

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Dmitry Karpeev
On Mon, Feb 6, 2012 at 1:50 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:42 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 1:30 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:27 PM, Matthew Knepley wrote: On Mon, Feb 6, 2012 at 1:23 PM,

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Barry Smith
On Feb 6, 2012, at 2:02 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 1:50 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:42 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 1:30 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:27 PM,

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Dmitry Karpeev
On Mon, Feb 6, 2012 at 2:06 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 2:02 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 1:50 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:42 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 1:30

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Barry Smith
On Feb 6, 2012, at 2:28 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 2:06 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 2:02 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 1:50 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 1:42 PM,

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Dmitry Karpeev
On Mon, Feb 6, 2012 at 2:33 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 2:28 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 2:06 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 2:02 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 1:50

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Barry Smith
On Feb 6, 2012, at 2:46 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 2:33 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 2:28 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 2:06 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 2:02 PM,

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Dmitry Karpeev
On Mon, Feb 6, 2012 at 3:09 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 2:46 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 2:33 PM, Barry Smith bsmith at mcs.anl.gov wrote: On Feb 6, 2012, at 2:28 PM, Dmitry Karpeev wrote: On Mon, Feb 6, 2012 at 2:06

[petsc-dev] [petsc-users] VECMPICUSP with ghosted vector

2012-02-06 Thread Barry Smith
On Feb 6, 2012, at 3:55 PM, Jed Brown wrote: On Mon, Feb 6, 2012 at 22:11, Barry Smith bsmith at mcs.anl.gov wrote: On the other hand you could argue that ALL vector types should support ghosting as a natural thing (with sequential vectors just have 0 length ghosts conceptually) then it