Starting from:

$30

ASSINGNMENT 2: ADDITIONAL INSTRUCTIONS

ECSE 543 – ASSINGNMENT 2: ADDITIONAL INSTRUCTIONS FOR QUESTION #2
UNIX (or similar) Environments:
1. COMMAND FOR COMPILING SIMPLE2D SOURCE CODE ON UNIX (or similar)
ENVIORONMNETS:
gfortran simple2d.for feutilit.for -o simple2d.exe
Note: The above command will produce an executable file named ‘simple2d.exe’ assuming
the files ‘simple2d.for’and ‘feutilit.for’ are located in the current directory.
2. COMMAND FOR RUNNING SIMPLE2D.EXE:
./simple2d.exe <s2d03.dat >s2d03.out
Note: The above command assumes that the input file ‘s2d03.dat’ exists in the same
directory as the executable file created in the previous step. The output of the program
will appear in the file ‘s2d03.out’.
3. ADDINTIONAL NOTES:
a. The instructions above assume you have access to a UNIX– like environment with a
Fortran compiler installed, such as:
• Mac OS X (e.g., using the ‘Terminal” app)
• Linux
• Windows (e.g. CygWin or MinGW)
If necessary, you can download a Fortran compiler at:
https://gcc.gnu.org/wiki/GFortranBinaries (You may already have one installed).
b. The ECE UNIX machines have ‘gfortran’ installed on them. See the following link for
accessing them:
https://www.mcgill.ca/ece/department/it-and-technical-services/it-faqs
c. Some useful commands for login and file transfer to UINIX machines:
Login: ssh –l username machine_name
File transfer: scp filename username@machinename:

More products