compiling fortran programs within iraf
Amira Val Baker wrote on Jul 08, 2010
Can someone help me - I am trying to use a fortran program that has previously worked. The only difference is now I am running it from my personal laptop. I am compiling within iraf,and keep getting the following errors?? e.g.
> fc program.f
program.f
MAIN program:
Warning on line 80 of program.f: local variable nrowsncols never used
Warning on line 80 of program.f: local variable adui never used
Warning on line 80 of program.f: local variable nargs never used
link:
> fc program.f
program.f
MAIN program:
Warning on line 80 of program.f: local variable nrowsncols never used
Warning on line 80 of program.f: local variable adui never used
Warning on line 80 of program.f: local variable nargs never used
link:
Mike Fitzpatrick wrote on Jul 08, 2010
Does your laptop perhaps have a different compiler, OS or IRAF version? The messages are just warnings, you can compile with the '-w' flag to suppress them or else edit out the unused variable declarations.
Amira Val Baker wrote on Jul 08, 2010
Thanks Fitz - I had already tried that and when I try to run the .e program is states
bin/bash: no file
Any more suggestions would be much appreciated. Thanks
bin/bash: no file
Any more suggestions would be much appreciated. Thanks
Mike Fitzpatrick wrote on Jul 08, 2010
Did the file link correctly or were there any error messages when compiling? "No file" doesn't look like a normal error message, was it 'no such file' or 'command not found'? If so then you might just need to execute it as "./program.e" and adjust your path to include the '.' directory. Otherwise, please post more information (IRAF and OS version, 32- or 64-bit system, etc). Note there are tasks in $iraf/sys/imfort/tasks directory you can use to verify that FC work on your system.
-Mike
-Mike
Amira Val Baker wrote on Jul 08, 2010
Thanks again - there were no error messages when compiling. It was only when I typed the command:
program imagein imageout
that I got the response:
/bin/bash: program.e: command not found
I will try your suggestion to execute it as /.program.e
program imagein imageout
that I got the response:
/bin/bash: program.e: command not found
I will try your suggestion to execute it as /.program.e
Last post on Jul 08, 2010