[petsc-users] DM global/ local vectors and DMDAVecGetArrayF90 indics

Matthew Knepley knepley at gmail.com
Mon Jul 16 17:27:48 CDT 2012


On Mon, Jul 16, 2012 at 4:42 PM, TAY wee-beng <zonexo at gmail.com> wrote:

> Hi,
>
> I have 2 questions.
>
> When I use DMCreateGlobalVector and DMCreateLocalVector with
>
> Vec pressure_global, pressure_local
>
> call DMCreateGlobalVector(da_dof1,**pressure_global,ierr)
>
> call DMCreateLocalVector(da_dof1,**pressure_local,ierr)
>
> Are the pressure_global and pressure_local using the same memory space, or
> are they seperate?
>

Separate.


> Another thing is in Fortran, DMDAVecGetArrayF90  gives an array which
> starts from 0. However, my Fortran array usually starts from 1. Is there
> any simple ways to have the array starting from 1 instead?
>

Its not simple.

  Matt


> Thanks
>
> --
> Yours sincerely,
>
> TAY wee-beng
>
>


-- 
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-users/attachments/20120716/efb56dad/attachment.html>


More information about the petsc-users mailing list