Quantcast
Channel: Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2583

getcwd line break 80 characters

$
0
0

Dear All,

I'm using the getcwd function on Ubuntu Linux and the return string contains a newline statement if the current directory name is longer than 80 characters:

program myWD use IFPORT implicit none character(len=1024) :: cwd integer :: error error = getcwd(cwd) print*, trim(cwd)//':' end program myWD

will give

/nethome/storage/raid4/m.diehl/DAMASK/testing/Spectral_parsingArguments/referen ce: /nethome/storage/raid4/m.diehl/DAMASK/testing/Spectral_parsingArguments/refere:

if I call the program from the folder 'reference' and 'refere', respectively. Tested with ifort 13.0.1 and 12.1.2.

 


Viewing all articles
Browse latest Browse all 2583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>