2. Use this editor, you can create a
file, edit a file and save a file. Remember that any FORTRAN program
should be saved as "xxxx.F90". (put the name in double quotes)
Cygwin Window
1. Cygwin window is a window that allows you run some basic
commands
by simply typing the
commands.
2. Start a Cygwin window by clicking on the
Cygwin
icon on the desktop.
3. Within a Cygwin window, you can list all files (
ls), change directories (
cd). See more information on
Basic
Linux Commands.
4. Within a Cygwin window, you are able to compile the program and
execute the output file (See direction below). Before you do this, make
sure you are in the right directory (folder) where the program is
saved. Use
ls to check if you
have the program listed there.
Common Instructions
1. For any problem assignment, either you are given a sample program to
start, or you need start from scratch. If you are given a sample
program,
you need download the file (copy and paste the code into Notepad
window), save it to your computer (Z: drive, CIS261 folder, a folder
created there). If you start
form scratch, you need create a new file.
2. Edit the program and make it as whatever you like.
3. Open a
Cygwin window (by
clicking on the
Crygwin icon
on
the desktop), you need run the following steps in this window.
4. Go to the directory (folder) where you saved the file, using
cd the-folder-name.
4. Compile the program, by typing
g95 program-name -o output-name to
compile the program. If error is found, go back to edit the program to
fix the error.
5. Run the executable file by typing ./
output-name .