Setting options on matrices obtained from a DM

2009-07-22 Thread Jed Brown
A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 260 bytes Desc: OpenPGP digital signature URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090722/f03e611c/attachment.pgp>

Vec: types, sizes, and block sizes...

2009-07-22 Thread Lisandro Dalcin
On Wed, Jul 22, 2009 at 6:53 PM, Barry Smith wrote: > > ? ?VecCreate() > ? ?VecSetXXX > ? ?VecSetYYY > ? ?VecSetBlockSize() > ? ?VecSetUp() ? (called also automatically as needed by later vector > routines, like PCSetUp()/KSPSetUp()/SNESSetUp()/TSSetUp() are called) > ? ? ?use the beast > OK, that

Setting options on matrices obtained from a DM

2009-07-22 Thread Jed Brown
o-it. Jed -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 260 bytes Desc: OpenPGP digital signature URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090722/9135cfd4/attachment.pgp>

Vec: types, sizes, and block sizes...

2009-07-22 Thread Barry Smith
VecCreate() VecSetXXX VecSetYYY VecSetBlockSize() VecSetUp() (called also automatically as needed by later vector routines, like PCSetUp()/KSPSetUp()/SNESSetUp()/TSSetUp() are called) use the beast To make this universal we need to fix Mat to have the Ma

Setting options on matrices obtained from a DM

2009-07-22 Thread Matthew Knepley
roducing this complication because the language stinks, not because we have not figured out an easy way to do it (which we already use elsewhere for the exact same purpose). Matt > > Jed > > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090722/0082cb1c/attachment.html>

Vec: types, sizes, and block sizes...

2009-07-22 Thread Lisandro Dalcin
Starting a new thread ... Here you have simple example about creating Vec's. PETSc let me set first the type, or first the size and block size... However... setting FIRST the TYPE is currently broken... Anything we are going to do to fix this will require to handle the case above... At first, the

Setting options on matrices obtained from a DM

2009-07-22 Thread Lisandro Dalcin
On Wed, Jul 22, 2009 at 12:19 PM, Barry Smith wrote: > > On Jul 22, 2009, at 9:56 AM, Lisandro Dalcin wrote: > >> On Wed, Jul 22, 2009 at 12:20 AM, Barry Smith wrote: >>> >>> On Jul 21, 2009, at 7:47 PM, Jed Brown wrote: >>> Barry Smith wrote: >>> ? This is just a limitation of the curren

Setting options on matrices obtained from a DM

2009-07-22 Thread Matthew Knepley
o work with than factory objects which enforce more sequencing. >> >> Jed >> >> > > > -- > What most experimenters take for granted before they begin their > experiments is infinitely more interesting than any results to which their > experiments lead. > -- Norbert Wiener > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090722/0a1e13cc/attachment.html>

Setting options on matrices obtained from a DM

2009-07-22 Thread Lisandro Dalcin
On Wed, Jul 22, 2009 at 12:20 AM, Barry Smith wrote: > > On Jul 21, 2009, at 7:47 PM, Jed Brown wrote: > >> Barry Smith wrote: >> > ? ?This is just a limitation of the current implementation due to the way > the design evolved over time. > There is nothing intrinsic to the abstract design of PETSc

SNESSetUp() and matrix-free options

2009-07-22 Thread Lisandro Dalcin
On Wed, Jul 22, 2009 at 12:26 AM, Barry Smith wrote: >> >> Can we at least agree on the simple rules below: >> >> 1) KSPSetFromOptions() requires a previous call to KSPSetOperators() >> >> 2) SNESSetFromOptions() requires a previous call to: >> ?a) SNESSetFunction(), and also SNESSetJacobian() unle

Setting options on matrices obtained from a DM

2009-07-22 Thread Barry Smith
On Jul 22, 2009, at 9:56 AM, Lisandro Dalcin wrote: > On Wed, Jul 22, 2009 at 12:20 AM, Barry Smith > wrote: >> >> On Jul 21, 2009, at 7:47 PM, Jed Brown wrote: >> >>> Barry Smith wrote: >>> >>This is just a limitation of the current implementation due to >> the way >> the design evolved

SNESSetUp() and matrix-free options

2009-07-22 Thread Barry Smith
On Jul 22, 2009, at 9:39 AM, Lisandro Dalcin wrote: > On Wed, Jul 22, 2009 at 12:26 AM, Barry Smith > wrote: >>> >>> Can we at least agree on the simple rules below: >>> >>> 1) KSPSetFromOptions() requires a previous call to KSPSetOperators() >>> >>> 2) SNESSetFromOptions() requires a previous

Setting options on matrices obtained from a DM

2009-07-22 Thread Jed Brown
ion model is much nicer to work with than factory objects which enforce more sequencing. Jed -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 260 bytes Desc: OpenPGP digital signature URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090722/5b139481/attachment.pgp>

Setting options on matrices obtained from a DM

2009-07-22 Thread Jed Brown
e_XXX() could be called before MatSetSizes(), but this is nontrivial. Jed -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 260 bytes Desc: OpenPGP digital signature URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090722/1bfbe283/attachment.pgp>

Setting options on matrices obtained from a DM

2009-07-22 Thread Jed Brown
re URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090722/785e6308/attachment.pgp>