<< Chapter < Page | Chapter >> Page > |
Form new teams of two or three with one member that developed each part of the code. Include all features into the code. Test the combined features. Work together as a team to do the following simulation assignments.
Modern FORTRAN compilers in the MSWindows are very user friendly. They have built in project workspace routines, documentation, and integrated editor and debugger. If you use the FORTRAN compiler on Owlnet, it is useful to know how to use make files to compile and link FORTRAN code. The following is an example make file. You may give it the name, makefile , with no extension.
f77 -c streamf1.f;
f77 -c bc1.f;f77 -c coef1.f;
f77 -c asolve.f;f77 -c atimes.f;
f77 -c dsprsax.f;f77 -c dsprstx.f;
f77 -c linbcg.f;f77 -c snrm.f;
f77 -o exe streamf1.o bc1.o coef1.o asolve.o atimes.o dsprsax.o dsprstx.o linbcg.o snrm.o
You have to give yourself permission to execute the make file with the one-time command,
chmod +x makefile
The line with the -c option compiles the source code and makes an object code file with the extension of .o. The line with the -o option links the object files into the executable file called exe . This executable file can be executed by typing its name, exe , on the command line.
This example makefile is not very efficient because it will compile every source code listed. There are instructions to recompile only the source code that has been modified or "touched" since the last time the makefile was invoked. However, I do not recall the instructions.
Notification Switch
Would you like to follow the 'Transport phenomena' conversation and receive update notifications?