[petsc-users] changing DAs matrix and coefficients ordering

Jed Brown jed at 59A2.org
Tue Feb 2 09:49:32 CST 2010


On Tue, 2 Feb 2010 16:18:59 +0100 (CET), "ilyas yilmaz" <ilyasy at chalmers.se> wrote:
> How can I tell this DAs?

You can do this by just transposing the meanings of X,Y,Z in the DA
creation and info routines.

I do this frequently for problems where the "Z" direction has physical
significance in that it represents tighter coupling than other spatial
directions (therefore it should correspond to PETSc's "X" direction).

For all but the most trivial cases, it's worth creating a couple
wrappers so that your code can use the meanings consistently.

Jed


More information about the petsc-users mailing list