Thanks Satish and Hong!

Also realised that besides IIA, impl_mat_A has to be an array too.


Yours sincerely,

TAY wee-beng

On 28/12/2016 1:17 AM, Satish Balay wrote:
Looks like this issue was previously discussed

http://lists.mcs.anl.gov/pipermail/petsc-users/2015-October/027365.html

Satish

On Tue, 27 Dec 2016, Zhang, Hong wrote:

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 <[email protected]> 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



Reply via email to