[petsc-users] vec of integer type
Matthew Knepley
knepley at gmail.com
Tue Jun 10 19:02:00 CDT 2014
On Tue, Jun 10, 2014 at 6:16 PM, LikunTan <tlk0812 at hotmail.com> wrote:
> Dear Petsc developers,
>
> Is that possible to define Vec of integer type?
>
What you want here is IS instead of Vec. This is what I use for parallel
integer data.
Matt
> I am defining
>
> Vec M;
> PetscInt *aM;
> VecGetArray(M, &aM);
>
> but this gives me an error when compiling:
> argument of type "PetscInt={int} **" is incompatible with parameter of
> type "PetscScalar= {PetscReal={double}} **
>
> Thanks,
>
>
>
--
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/20140610/b3213a66/attachment.html>
More information about the petsc-users
mailing list