Function Overloading

Xiaoping Duan (Intel)
Total Points:
714
Status Points:
214
Brown Belt
July 2, 2009 7:54 PM PDT
Rate
 
#1
Quoting - brunocalado
How can I create a interface for overload this functions?

I need just to use
CALL func(a,b)
for the all functions

SUBROUTINE func1(a,b)
INTEGER :: a,b
END SUBROUTINE

SUBROUTINE func2(a,b)
REAL :: a,b
END SUBROUTINE



You can use generic name for procedures like below:

INTERFACE func

SUBROUTINE func1(a,b)
INTEGER :: a,b
END SUBROUTINE

SUBROUTINE func2(a,b)
REAL :: a,b
END SUBROUTINE

END INTERFACE



Intel Software Network Forums Statistics

8482 users have contributed to 31618 threads and 100685 posts to date.
In the past 24 hours, we have 34 new thread(s) 120 new posts(s), and 176 new user(s).

In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to gemm(A,A,A) like possible? The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member rohit5575