[petsc-users] vec of integer type

Likun Tan tlk0812 at hotmail.com
Tue Jun 10 19:56:54 CDT 2014


I c, thank you.


> On Jun 10, 2014, at 5:02 PM, Matthew Knepley <knepley at gmail.com> wrote:
> 
>> 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/74ac4c07/attachment.html>


More information about the petsc-users mailing list