Re: [petsc-users] cannot convert ‘int*’ to ‘PetscInt*

2016-10-16 Thread Satish Balay
On Sun, 16 Oct 2016, 丁老师 wrote: > Dear professor: >I met the following error for Petsc 3.7.3. >I delcare LocalSize as int, but it doesn't work anymore. it works for > 3.6.3. > >error: cannot convert ‘int*’ to ‘PetscInt* {aka long int*}’ for argument > ‘2’ to ‘PetscErrorCode

Re: [petsc-users] cannot convert ‘int*’ to ‘PetscInt*

2016-10-16 Thread Dave May
On Sunday, 16 October 2016, 丁老师 wrote: > Dear professor: >I met the following error for Petsc 3.7.3. >I delcare LocalSize as int, but it doesn't work anymore. it works for > 3.6.3. > This error has nothing to do with the version of petsc. Whether it "worked" is

[petsc-users] cannot convert ‘int*’ to ‘PetscInt*

2016-10-16 Thread 丁老师
Dear professor: I met the following error for Petsc 3.7.3. I delcare LocalSize as int, but it doesn't work anymore. it works for 3.6.3. error: cannot convert ‘int*’ to ‘PetscInt* {aka long int*}’ for argument ‘2’ to ‘PetscErrorCode VecGetLocalSize(Vec, PetscInt*)’ VecGetLocalSize