This actual argument must be the name of a user subroutine or the name of intrinsic subroutine.

This actual argument must be the name of a user subroutine or the name of intrinsic subroutine.

milenko@milenkons:~/fcm10/bcg2$ ifort -c mvm.f90
mvm.f90(33): error #6636: This actual argument must be the name of a user subroutine or the name of intrinsic subroutine.   [MATVEC]
call bicgstab2 (okprint,l, n, x, rhs,matvec, nonzero, tol,typestop,mxmv, work, ldw, info)
-------------------------------------^
compilation aborted for mvm.f90 (code 1)

I have problem with external function,I am attaching the code.

AdjuntoTamaño
Descargar mvm.f90567 bytes
Descargar m1.f908.18 KB
Descargar m2.f90365 bytes
publicaciones de 3 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

The message is pretty clear to me. In m2, you declare matvec as a function that returns an array. But in bicgstab2, you call the matvec argument as a subroutine, which is a conflict. These need to be consistent.

Steve

Thanks Steve,I will try to fix this.

Inicie sesión para dejar un comentario.