Prefix for DACreate

2009-02-21 Thread Jed Brown
We solve equations in a high-aspect ratio domain and have both a 2- and
3-dimensional DA which need to be compatible.  Due to the nature of the
problem, the x-direction of the 3D DA must be local which means that
options such as -da_processors_x don't work (they mean different things
for each DA, thus forcing an incompatible state).

It is currently not possible to set an options prefix on a DA because
the usual PETSc creation pattern isn't used.  A hack that would fix my
problem is to just add a prefix argument to DACreate, but the more
elegant solution is a more significant refactoring to DACreate,
DASetSizes, DASetOptionsPrefix, DASetFromOptions.


Jed
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: 
http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090221/a899bdaa/attachment.pgp


Prefix for DACreate

2009-02-21 Thread Matthew Knepley
I will do it, but it will have to wait for weekend after next since I have
to
go the SIAM CSE.

  Matt

On Sat, Feb 21, 2009 at 2:57 PM, Jed Brown jed at 59a2.org wrote:

 We solve equations in a high-aspect ratio domain and have both a 2- and
 3-dimensional DA which need to be compatible.  Due to the nature of the
 problem, the x-direction of the 3D DA must be local which means that
 options such as -da_processors_x don't work (they mean different things
 for each DA, thus forcing an incompatible state).

 It is currently not possible to set an options prefix on a DA because
 the usual PETSc creation pattern isn't used.  A hack that would fix my
 problem is to just add a prefix argument to DACreate, but the more
 elegant solution is a more significant refactoring to DACreate,
 DASetSizes, DASetOptionsPrefix, DASetFromOptions.


 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/20090221/f04ba9c6/attachment.html