Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29256 Discussions

Is the IMSL routine DZPOCC, a Function or a Subroutine?

Yitzak_B_
Beginner
641 Views
IMSL documentaion describes DZPOCC as a subroutine requiring the CALL DZPOCC (NDEG,COEFF,ROOT). However The latest download IVF9.0_28 does not think so. It regards it as a function and sends a compilation error: The CALL statement is invoking a function subprogram as a subroutine. [DZPOCC]

note: it did work well with IVF9.0_18

Thanks for your help
0 Kudos
2 Replies
Steven_L_Intel1
Employee
641 Views
My guess is that you have a declaration something like:

DOUBLE PRECISION DZPOCC

The IMSL-provided declarations show this as a subroutine. I'll note that DZPOCC is the "Fortran 77 interface" version, if you were using the new style with USE ZPOCC_INT, you'd just call ZPOCC with double arguments.
0 Kudos
Yitzak_B_
Beginner
641 Views

Thanks Steve, Its working fine.

Yitzak

0 Kudos
Reply