[petsc-users] Problem with "If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type charac..."

Zhang, Hong hongzhang at anl.gov
Tue Dec 27 11:07:17 CST 2016


PetscInt   IIA(1)
IIA(1) = II
call MatSetValues(A_mat_uv,1,IIA,1,int_impl(k,3),impl_mat_A,INSERT_VALUES,ierr)

Hong (Mr)

> On Dec 27, 2016, at 2:38 AM, TAY wee-beng <zonexo at gmail.com> wrote:
> 
> Hi,
> 
> I'm now trying to compile an old code and I got the error:
> 
> "If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type charac...
> 
> which happens at:
> 
> call MatSetValues(A_mat_uv,1,II,1,int_impl(k,3),impl_mat_A,INSERT_VALUES,ierr)
> 
> I remember having this error. However, I can't find my solution. I recall it's due to some changes in the new PETSc version.
> 
> Can you help?
> 
> 
> -- 
> Thank you
> 
> Yours sincerely,
> 
> TAY wee-beng
> 



More information about the petsc-users mailing list