I have installed Lahey Fortran compiler/editor on my laptop to take with me on a trip. I copied the *.for files and all input files (*.inp, and *.inc) on the computer. The *.for files compile fine, but the resulting *.exe files do not execute properly. I get the following error:
Windows...
OK, I'm following that. But instead of inputting the directory manually, is there any way for FORTRAN to recognize which directory the *.exe file is in, so I could set outdir equal to that plus a new subdirectory?
i.e.
outdir = (command returns "C:\currentdir") + (outfile...
Unfortunately, I'm a very new FORTRAN user, and I'm not sure how to do any of what you wrote. I'm running the program out of a DOS prompt. I'd like to make the alteration to the actual code.
Hello,
I have a FORTRAN 95 program that creates about 20 files every time it runs. Currently, it just dumps the files into whatever directory the *.exe file is in. I would like to have the output files concentrated in a subdirectory. However, I often use the program on different computers, so...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.