Welcome to theartfulscientist. Enjoy your stay as I talk about my life as a fire protection engineering student and one who studies fire dynamics. These posts range from day to day excitement to my developmental life and provide a window into my world.
It’s interesting how my routines change month by month. I guess that is what is defined by this age range. Movies, programming, motorcycling, science. I just finished the book, The Quarterlife Crisis, and as cheesy as the title sounds, I did get a bit of good stories from it. You may notice how I say stories, and that is what I mean. At this point, after reading way too many psychology books and self-help books, this article really puts it into perspective: http://www.life2point0.com/2006/11/follow_your_bli.html
It’s a long, slimy article, I know. But if you can take time out of your day to read it… well, time out like time out to watch the previous video I posted, you know. Speaking of time, it tends to dilate depending on what you are doing - there is some correlation there based on how uncomfortable I feel before I do something versus how satisfying it is. We humans are built weird like that.
In other news, I took the Fundamentals of Engineering exam on Saturday, and wow. I cannot discuss the questions and stuff there lest NCEES sues me and makes me homeless, but that was the hardest thing that I have taken in my life. It was at the George R. Brown Convention Center with what looked like 800-900 students and, according to the NCEES stats, about 560 future engineers. I would show pictures but any phone or camera device would have you banned from the building and have you $130 lighter for no good reason. Anyway, about the test: this is why you have to kick ass in school, students. The test is the connector to the reality that is real-world problems.
Otherwise, I am off to sleep for another night. This week I will be working on a cross-platform launcher for Fire Dynamics Simulator, since the command line scares or hinders our users. In Python, of course. Python and Fortan, the story of my life.
I am taking a numerical methods course and using the textbook Numerical Analysis 8th edition by Burden and Faires:
The book is good and has nice pseudocode examples throughout. It also has a companion website with all of the algorithms programmed in C, FORTRAN, Pascal, Maple, MATLAB, and Mathematica. For our assignments, we can use any program that we want, and I have been using MATLAB, FORTRAN, and Python as those make the most sense to me thus far in my computing experiences and are the most useful for my work.
However, the FORTRAN 77 programs on the website are programmed in such a way that they only work when using a FORTRAN compiler in Windows. At this time, my primary machine is an Apple Macbook Pro laptop, and I am using the Intel Fortran Compiler version 10.1 on OS X Leopard. When I try to compile the programs from the textbook website, I get errors. So, I went ahead and fixed the files so that they would work on with the Intel compiler on the Mac, and hopefully Linux as well.
The two problems were that:
a) The programs were trying to read and write to ‘CON’, which is a Windows specific way of writing to the command window console.
b) The programs had an extra line at the end and would crash the Intel compiler.
Step 1: Download the above linked zip file of the corrected FORTRAN 77 programs
Step 2: Unzip the FORTRAN files. You will find several files with the .FOR extension.
Step 3: Run the Intel FORTRAN compiler using the command: ifort -f77rtl -o <outputname> inputfilename.
For example, to compile example 12.1: ifort -f77rtl -o alg121 ALG121.FOR.
Step 4: Make the output file executable with: chmod +x alg121
Step 5: Run the file with ./alg121
Step 6: Be sure to answer the first Y/N question with the y or n character in quotes, such as “y” or “n”
Step 7: Have fun learning numerical methods and dissecting the FORTRAN programs!