[petsc-users] vec of integer type

Jed Brown jed at jedbrown.org
Tue Jun 10 18:25:21 CDT 2014


LikunTan <tlk0812 at hotmail.com> writes:

> Dear Petsc developers,
> Is that possible to define Vec of integer type?

No.  Why do you want that?

> 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,
>
>  		 	   		  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140611/0221d7ef/attachment.pgp>


More information about the petsc-users mailing list