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

TAY wee-beng zonexo at gmail.com
Tue Dec 27 19:30:37 CST 2016


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 <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