Re: [petsc-users] DMDA objects while distributing 3d arrays

2017-01-19 Thread Matthew Knepley
On Thu, Jan 19, 2017 at 6:56 PM, Manuel Valera wrote: > I've read some more and from the ex13f90aux from the dm examples, it seems > is very similar what im looking for, it says: > > ! > ! The following 4 subroutines handle the mapping of coordinates. I'll > explain > ! this in detail: >

Re: [petsc-users] DMDA objects while distributing 3d arrays

2017-01-19 Thread Manuel Valera
I've read some more and from the ex13f90aux from the dm examples, it seems is very similar what im looking for, it says: ! ! The following 4 subroutines handle the mapping of coordinates. I'll explain ! this in detail: !PETSc gives you local arrays which are indexed using the global in

[petsc-users] DMDA objects while distributing 3d arrays

2017-01-19 Thread Manuel Valera
Hello all, I'm currently pushing forward on the parallelization of my model, next step would be to parallelize all the grids (pressure, temperature, velocities, and such), and they are stored as 3d arrays in fortran. I'm following ex11f90.f and is a good start, i have a couple questions from it: