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

HOSTNAM function returns 1

ferrad01
Beginner
511 Views

IOS = HOSTNAM(host_name) is returning 1 with host_name empty.

What does this mean?

ferrad

Extra info: it is machine dependent, it works fine on some machines, but fails on others.

0 Kudos
3 Replies
ferrad01
Beginner
511 Views
Well 63 people have read this, hopefully at least 1 of them is from Intel. How about a reply?
0 Kudos
Steven_L_Intel1
Employee
511 Views
This is a user forum - if you want a response from Intel specifically, contact Intel Premier Support.

I'd guess (since I have not looked at the source) that HOSTNAM just calls a C library or Win32 API routine to return the name. Perhaps on the system where it doesn't work, the host name is not properly defined?

I suggest that you submit a report to Intel Premier Support, attaching an example and showing the actual host name of systems where it works and doesn't work.

Try building and running the attached program on the system where yours doesn't work. What does it do?
0 Kudos
ferrad01
Beginner
511 Views

This program works fine on my machine (HOSTNAM fails).

I will submit to Premier Support.

0 Kudos
Reply