Fortran Instructions For Visual Fortran 6
Fortran Instructions For Visual Fortran 6
Fortran Instructions For Visual Fortran 6
Visual Fortran 6
GENERAL
The computers in the 6th floor Aerospace Engineering Computer Lab have Digital
Visual Fortran 6.0. These directions will attempt to guide you through the use of the VF6
compiler.
In Windows 95 a typical window has icons and commands at the top and sometimes at
the bottom. Also, on the right side and bottom are “scroll bars” which enable you to move
around. You can also move around using the Page Up and Page Down keys on the keyboard.
In the upper right hand corner of a window there are usually three icons. The X or right-most
icon closes the open window. The middle icon allows you to maximize or minimize the size of
the window. The left most of the three (-) causes the window to disappear and to be
represented on the taskbar by an icon and name at the bottom of the screen. Be very careful
on what you click. Accidental clicks can be exciting and even disastrous if you are not careful.
1. Login using your login name and password. (If you do not have one you can get one by
talking to the friendly system administrator in Room 615.) Your user ID will be similar to
those on university computers: Three alphabetic letters corresponding to the initials in your
name plus the last 4 digits of your student ID. For example, ABC1234. If you don’t have
a middle initial, a zero is substituted for the middle initial. For example, A0C1234. The
first time you use your account, your user ID will be your password. At that point the
system will prompt you for a new password which will be your permanent password.
Passwords should be at least six characters long, start with a letter, and should (for security
purposes) include a number or numbers. Select a password you can remember and don’t
forget it! You will need it the next time you logon.
2. SLC on Start in the bottom left corner and then move the mouse up to Programs.
3. Place cursor on Visual Fortran 6.0 and then go to Developer Studio and SLC.
4. Minimize the VF6 screen to the Taskbar at the bottom of the screen by SLC on the left
most icon in the upper right hand corner _
5. DLC on the My Computer icon. In the window that appears DLC on the A drive icon to
see what is on your floppy disk.
6. Follow the same process to see what is on the H drive. DLC on the icon that has “your
name on” Aeroserver H. Another window will open and show you what is in the H drive.
The H drive is where your files will be stored or can be stored etc. Note that -- all of your
A similar procedure could be used to copy files from say a Public File on Aeroserver or
Aeromaster. Sometimes this semester, I may give you some code that you can copy this way.
We will cover that in lab as appropriate. Also, a similar procedure (i.e. reversed) can be used
to copy copies of your program and program output back to your floppy disk.
Debugging a Code
1. Execution-time Errors. Even though the program compiles and links successfully, you may
encounter fatal execution-time errors that prevent the program from actually executing
successfully to completion. These are sometimes called run-time errors. Any execution-
time errors will be listed in the bottom window. Again you have to decipher these and
make corrections to your program. Errors will generally fall into three categories:
Logic errors in construction of your program algorithm. These cause the program to
do things you didn’t expect it to do and stop execution. For example,
dividing by zero because you forgot to define something or defined it wrong;
exponential underflow or overflow (calculated number too small or too large)
your program accessed an array element outside an allowable range (subscripts out
of range);
subroutine or function arguments are not correct,
subroutine or function arguments are inconsistent between the calling program and
the called program, and other run-time errors.
Input errors.
You provided the incorrect data type or format for the input (for example, you
can’t input characters into numeric variables, you can’t input an real number using
an integer format specification);
you provide the incorrect amount of input (too much or too little); etc.