Re: [petsc-users] vector of struct

2014-03-25 Thread Barry Smith
On Mar 25, 2014, at 5:21 AM, Matthew Knepley wrote: > On Mon, Mar 24, 2014 at 3:56 PM, Dinesh Kumar wrote: > Hi, > > I am trying to implement a 3-D Surface Registration code using PetSc. I > want to create a vector of structures i.e. > > struct Point { > double x, y, z; > }; > > Then

Re: [petsc-users] vector of struct

2014-03-25 Thread Matthew Knepley
On Mon, Mar 24, 2014 at 3:56 PM, Dinesh Kumar wrote: > Hi, > > I am trying to implement a 3-D Surface Registration code using PetSc. I > want to create a vector of structures i.e. > > struct Point { > double x, y, z; > }; > > Then create a PetSc vector that stores array of "Points types".

[petsc-users] vector of struct

2014-03-24 Thread Dinesh Kumar
Hi, I am trying to implement a 3-D Surface Registration code using PetSc. I want to create a vector of structures i.e. struct Point { double x, y, z; }; Then create a PetSc vector that stores array of "Points types". Can someone point me to the right direction. regards --dinesh