[petsc-users] VecGetArray issue

Matthew Knepley knepley at gmail.com
Thu Jan 22 11:40:22 CST 2015


On Thu, Jan 22, 2015 at 11:27 AM, <Carol.Brickley at awe.co.uk> wrote:

>   All,
>
>
>
> When I use VecGetArray it only seems to return half of the array? I am
> using it:
>
>
>
> VecGetArray (ptr->sol_x_loc, sol_v, iss, err)
>
>
>
> And sol_v only seems to come back with half the vector?
>
>
>
> I am using a F90 interface to the Petsc 3.4.3 routines.
>

Note that VecGetArray only gives you the local values. Are you running in
parallel?

  Thanks,

     Matt


>
>
> Carol
>
>
>
>
>
> *Dr Carol Brickley *
>
> *BSc,PhD,ARCS,DIC,MBCS*
>
>
>
> *Senior Software Engineer*
>
> *Applied Computer Science*
>
> *DS+T,*
>
> *AWE*
>
> *Aldermaston*
>
> *Reading*
>
> *Berkshire*
>
> *RG7 4PR*
>
>
>
> *Direct: 0118 9855035*
>
>
>
> ___________________________________________________
> ____________________________ The information in this email and in any
> attachment(s) is commercial in confidence. If you are not the named
> addressee(s) or if you receive this email in error then any distribution,
> copying or use of this communication or the information in it is strictly
> prohibited. Please notify us immediately by email at admin.internet(at)
> awe.co.uk, and then delete this message from your computer. While
> attachments are virus checked, AWE plc does not accept any liability in
> respect of any virus which is not detected. AWE Plc Registered in England
> and Wales Registration No 02763902 AWE, Aldermaston, Reading, RG7 4PR
>



-- 
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/20150122/948fa233/attachment.html>


More information about the petsc-users mailing list