I&#39;ll have to check the language reference.&nbsp; To me, &quot;simple&quot; is something I can talk about for 20 minutes in class and the students will understand it completely.&nbsp; <br><br><div class="gmail_quote">On Nov 20, 2007 2:43 PM, Gerry Creager &lt;
<a href="mailto:gerry.creager@tamu.edu">gerry.creager@tamu.edu</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ooh! &nbsp;Flamebait!
<br><div><div></div><div class="Wj3C7c"><br>Nathan Moore wrote:<br>&gt; I regularly teach a college course in a physics department that deals<br>&gt; with scientific computation. &nbsp;After students take the course, I expect<br>
&gt; that they&#39;ll be able to write simple &quot;c-tran&quot; style programs for data<br>&gt; analysis, write basic MD or MC simulations, and be fairly fluent in<br>&gt; Mathematica.<br>&gt;<br>&gt; In the past, I figured that with the breadth of topics included in the
<br>&gt; course, Fortran, specifically the basic, simple, and reliable F77<br>&gt; dialect (w/ some F90 conveniences) was the language to teach. &nbsp;In my own<br>&gt; head, my rationale was:<br>&gt; - Most students can grasp the basics of fortran in half a day&#39;s reading,
<br>&gt; so I can spend more class time on science and math (probably because<br>&gt; there are no pointers - I think that C is much harder for students and<br>&gt; sometimes &quot;seems&quot; less like mathematical syntax than f77)
<br>&gt; - &quot;Classical Fortran&quot; is a great text and is readable for self-study (I<br>&gt; know of no such text for C/C++)<br>&gt; - several free compilers exist (g95 seems ok so far)<br>&gt; - Netlib, lapack, and numerical recipes cover the math library adequately
<br>&gt; - F77 is compiled (Perl/python are too slow for an MD/MC sim and I<br>&gt; figure that students should know at least on compiled language and one<br>&gt; scripting language to be competent)<br>&gt; - MPI is a relatively basic addition to the language (again, no
<br>&gt; pointers, allocation, or addressing)<br>&gt;<br>&gt; After reflection though, I&#39;ve started to wonder about the wisdom of my<br>&gt; choice. &nbsp;Specifically (like RGB), I love the GSL library, and extending<br>&gt; GSL to fortran in an intro class is non-trivial. &nbsp;Additionally, most
<br>&gt; vendors supply &quot;fast&quot; hardware libraries in C (I may be ignorant, but if<br>&gt; a student wants to call an AMD ACML fast-math function(<br>&gt; <a href="http://developer.amd.com/acml.jsp" target="_blank">
http://developer.amd.com/acml.jsp</a>), or write a linear algebra function<br>&gt; to run on a graphics card(<a href="http://developer.nvidia.com/object/cuda.html" target="_blank">http://developer.nvidia.com/object/cuda.html
</a><br>&gt; &lt;<a href="http://developer.nvidia.com/object/cuda.html" target="_blank">http://developer.nvidia.com/object/cuda.html</a>&gt;), the vendors seem to<br>&gt; assume that you&#39;ll write the code in C).<br>&gt;
<br>&gt; Also, and more relevant, I assume that most employers word-associate<br>&gt; &quot;Fortran is to backwards as C is to competence&quot;.<br>&gt;<br>&gt; So, I&#39;m thinking about reworking the class to favor C, and fearing 3
<br>&gt; weeks of pointer and addressing hell. &nbsp;For those of you who teach<br>&gt; scientific computation (and also those of you who hire undergrads), I&#39;d<br>&gt; be grateful for your thoughts. &nbsp;One specific question I have is what
<br>&gt; text covers scientific programming and touches on MPI using the C language.<br><br></div></div>With the advent of F90 and F95, the ability to call a C/C++ library<br>routine became significantly simpler. &nbsp;That said, it&#39;s not ever
<br>&quot;exactly&quot; simple to port someone else&#39;s libs from one language to<br>another, but it&#39;s not really that hard, either.<br><br>In the atmospheric sciences community, well, call us backward, but most<br>
of our applications are still coded in the arcane language of our<br>fathe... er, in Fortran. &nbsp;Mostly for the reasons you originally cite.<br>and, no, they haven&#39;t changed.<br><br>As for an employer looking for a C-competent programmer over a
<br>Fortran-competent programmer, well, they&#39;d not get &nbsp;a great deal if they<br>want someone to work with a suite of models in the &quot;wrong&quot; language.<br>They should be looking for someone who&#39;s able to deal with the language
<br>of interest... and perhaps to pick up a new language if the new model of<br>the day warrants it.<br><font color="#888888">--<br>Gerry Creager -- <a href="mailto:gerry.creager@tamu.edu">gerry.creager@tamu.edu</a><br>Texas Mesonet -- AATLT, Texas A&amp;M University
<br>Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983<br>Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843<br><br></font></blockquote></div><br><br clear="all"><br>-- <br>- - - - - - - &nbsp; - - - - - - - &nbsp; - - - - - - - 
<br>Nathan Moore<br>Assistant Professor, Physics<br>Winona State University<br>AIM: nmoorewsu <br>- - - - - - - &nbsp; - - - - - - - &nbsp; - - - - - - -


!DSPAM:4743509f199671804284693!