[petsc-users] changing DAs matrix and coefficients ordering

ilyas yilmaz ilyasy at chalmers.se
Tue Feb 2 10:36:34 CST 2010


Hi,

Thank you Jed and Matthew for answering me.


> 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 have actually tried it before, but I failed. I guess I am missing
something. Could you please explain me how to do this on a simple DAs
example?

Thank you.


> 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
>

Regards,
Ilyas.



More information about the petsc-users mailing list