Anyone knows how to get the current host name from a Cray Fortran program? I want basically the output of UNIX gethostname(). After scouring Craydocs pages, I see that the PXF* functions do not seem to contain this information.
Wirawan
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Cray Fortran is quite ahead in modern Fortran features.
You can call the
gethostname()using C interoperability features of Fortran 2003. The name would be null terminated.You can also probably use
GET_ENVIRONMENT_VARIABLEintrinsic subroutine from Fortran 2003.