[petsc-users] Getting DMDA local coordinates

Åsmund Ervik asmund.ervik at ntnu.no
Mon Oct 21 08:25:29 CDT 2013



On 21. okt. 2013 15:13, Jed Brown wrote:
> 
> Okay, but this has no spatial derivatives?

Correct. But the code is written such that (in our framework) a legacy
serial code which has spatial derivatives in the RHS can be plugged
straight in. I don't have any code that I can share with the world that
includes spatial derivatives in the RHS though. I guess the heat
equation would be fairly straight-forward.

> 
> Whatever you like.  Note that there are already some related examples in
> src/ts/examples/tutorials/advection-diffusion-reaction/
> 

Yes, I've seen them, but since they include TS stuff like IMEX etc.,
they're a bit more complicated for a PETSc noobie. It's sometimes hard
to know which bits are TS specific and which are DM specific (although I
must say that PETSc has remarkably good organization and "namespacing").
That's why I wrote the example for my own sake and for my colleagues.


More information about the petsc-users mailing list