[petsc-users] vec of integer type

Barry Smith bsmith at mcs.anl.gov
Tue Jun 10 18:26:19 CDT 2014


No

On 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?
> 
> 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,



More information about the petsc-users mailing list