<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A GISS ModelE code fragment</title>
	<atom:link href="http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/feed/" rel="self" type="application/rss+xml" />
	<link>http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/</link>
	<description>by Dan Hughes</description>
	<lastBuildDate>Fri, 20 Nov 2009 12:11:45 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dan Hughes</title>
		<link>http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/comment-page-1/#comment-138</link>
		<dc:creator>Dan Hughes</dc:creator>
		<pubDate>Sat, 10 Jan 2009 20:32:23 +0000</pubDate>
		<guid isPermaLink="false">http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/#comment-138</guid>
		<description>Ryan O, I have posted additional discussions of the units &lt;a href=&quot;http://danhughes.auditblogs.com/2009/01/10/more-on-nasagiss-modele-viscous-dissipation-the-units/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.

I still don&#039;t have it all figured out.</description>
		<content:encoded><![CDATA[<p>Ryan O, I have posted additional discussions of the units <a href="http://danhughes.auditblogs.com/2009/01/10/more-on-nasagiss-modele-viscous-dissipation-the-units/">here</a>.</p>
<p>I still don&#8217;t have it all figured out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan O</title>
		<link>http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/comment-page-1/#comment-137</link>
		<dc:creator>Ryan O</dc:creator>
		<pubDate>Fri, 09 Jan 2009 20:49:48 +0000</pubDate>
		<guid isPermaLink="false">http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/#comment-137</guid>
		<description>I hate to bump a really old thread.  I apologize!  But I&#039;m not clear on the units.  Are the units of ediff &lt;b&gt;J&lt;/b&gt;/m2 or &lt;b&gt;W&lt;/b&gt;/m2?  Both are mentioned above.  Secondly, if the units are &lt;b&gt;J&lt;/b&gt;/m2, what is the time step used?</description>
		<content:encoded><![CDATA[<p>I hate to bump a really old thread.  I apologize!  But I&#8217;m not clear on the units.  Are the units of ediff <b>J</b>/m2 or <b>W</b>/m2?  Both are mentioned above.  Secondly, if the units are <b>J</b>/m2, what is the time step used?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Hughes</title>
		<link>http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/comment-page-1/#comment-110</link>
		<dc:creator>Dan Hughes</dc:creator>
		<pubDate>Wed, 30 Jan 2008 15:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/#comment-110</guid>
		<description>Michael, there isn&#039;t a single post here in which I have expressed any opinion about &#039;global warming&#039;.

And I did not express myself as being opposed to a rewrite.

I have always been responsible for obtaining funding for the projects on which I work.  Why do you and Gavin think that it&#039;s my (or our collective) responsibility to obtain funding for you.  Plus as a practical matter exactly how would that work?  If I help you write the proposals do I get a cut of the work action?

More later, maybe.</description>
		<content:encoded><![CDATA[<p>Michael, there isn&#8217;t a single post here in which I have expressed any opinion about &#8216;global warming&#8217;.</p>
<p>And I did not express myself as being opposed to a rewrite.</p>
<p>I have always been responsible for obtaining funding for the projects on which I work.  Why do you and Gavin think that it&#8217;s my (or our collective) responsibility to obtain funding for you.  Plus as a practical matter exactly how would that work?  If I help you write the proposals do I get a cut of the work action?</p>
<p>More later, maybe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Tobis</title>
		<link>http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/comment-page-1/#comment-109</link>
		<dc:creator>Michael Tobis</dc:creator>
		<pubDate>Wed, 30 Jan 2008 00:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/#comment-109</guid>
		<description>Re #18: the attachment to Fortran is bizarre in my opinion. The idea that anyone anywhere is still taking up Fortran as a first language pervades the ludicrous Fortran textbooks. Nobody takes up Fortran unless they are maintaining something crufty that runs on a supercomputer. (Yet as far as I know there is no introduction to Fortran book for seasoned professionals in print! I have to work out my issues from cloying texts written for undergraduates as if nothing had happened in computing since about 1968). The idea that it is easier to learn than Matlab or Python can only be advanced by people who only know one language; it is in fact the most baroque and confusing language out there.

Re #9, alas, yes. I am as uncomfortable as any of you with nonmilitary publicly funded codes being closed and simply can&#039;t fathom any reason for it. I do hope all of you are as strident advocates for open source elsewhere in the public sector as you are in climate research.

I suppose you won&#039;t take my word for it that there are all sorts of pressures extraneous to the scientific community to keep science codes closed. The best solution is to have the grant agencies specify an open source license in their proposal calls. I&#039;ll be Microsoft will be thrilled by that.

That aside, many of the demands you all are making, however reasonable (and some of them are very reasonable), are expensive, and climate work (other than remote sensing which eats up the bulk of the big numbers often quoted) has always been run on a shoestring, as Gavin rightly points out.

I wonder whether most of the readers of this blog will support the increase in funding required to get this thing done right from top to bottom. Dan has already expressed himself opposed to a rewrite, calling the idea &quot;naive&quot;, though I don&#039;t really understand why, being naive and all myself.

I promise you that doing it right will not make global warming go away, though, so if that&#039;s what you&#039;re after you probably shouldn&#039;t advocate for ponying up.</description>
		<content:encoded><![CDATA[<p>Re #18: the attachment to Fortran is bizarre in my opinion. The idea that anyone anywhere is still taking up Fortran as a first language pervades the ludicrous Fortran textbooks. Nobody takes up Fortran unless they are maintaining something crufty that runs on a supercomputer. (Yet as far as I know there is no introduction to Fortran book for seasoned professionals in print! I have to work out my issues from cloying texts written for undergraduates as if nothing had happened in computing since about 1968). The idea that it is easier to learn than Matlab or Python can only be advanced by people who only know one language; it is in fact the most baroque and confusing language out there.</p>
<p>Re #9, alas, yes. I am as uncomfortable as any of you with nonmilitary publicly funded codes being closed and simply can&#8217;t fathom any reason for it. I do hope all of you are as strident advocates for open source elsewhere in the public sector as you are in climate research.</p>
<p>I suppose you won&#8217;t take my word for it that there are all sorts of pressures extraneous to the scientific community to keep science codes closed. The best solution is to have the grant agencies specify an open source license in their proposal calls. I&#8217;ll be Microsoft will be thrilled by that.</p>
<p>That aside, many of the demands you all are making, however reasonable (and some of them are very reasonable), are expensive, and climate work (other than remote sensing which eats up the bulk of the big numbers often quoted) has always been run on a shoestring, as Gavin rightly points out.</p>
<p>I wonder whether most of the readers of this blog will support the increase in funding required to get this thing done right from top to bottom. Dan has already expressed himself opposed to a rewrite, calling the idea &#8220;naive&#8221;, though I don&#8217;t really understand why, being naive and all myself.</p>
<p>I promise you that doing it right will not make global warming go away, though, so if that&#8217;s what you&#8217;re after you probably shouldn&#8217;t advocate for ponying up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Hughes</title>
		<link>http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/comment-page-1/#comment-107</link>
		<dc:creator>Dan Hughes</dc:creator>
		<pubDate>Wed, 05 Dec 2007 21:50:26 +0000</pubDate>
		<guid isPermaLink="false">http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/#comment-107</guid>
		<description>Thanks for the pointer, Spence.

A million lines of code and no software engineering is not a pretty picture.

It is very likely, with high confidence, that the resulting code won&#039;t be pretty either.</description>
		<content:encoded><![CDATA[<p>Thanks for the pointer, Spence.</p>
<p>A million lines of code and no software engineering is not a pretty picture.</p>
<p>It is very likely, with high confidence, that the resulting code won&#8217;t be pretty either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spence_UK</title>
		<link>http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/comment-page-1/#comment-106</link>
		<dc:creator>Spence_UK</dc:creator>
		<pubDate>Wed, 05 Dec 2007 12:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/#comment-106</guid>
		<description>Hi Dan

I hope you don&#039;t mind me dropping this in here, it seemed an appropriate place to put it.

There is an article in this months Physics World that will probably make you chuckle, &quot;Fortran at 50&quot;, discussing how the HadSM3 climate model consists of &quot;over one million lines of Fortran code&quot;.  It adds a quote at the end:

&lt;blockquote&gt;Despite the wealth of off-the-shelf software packages, there often comes a time in scientific research when they do not do quite what is needed.  It is then usually much simpler for a researcher to write the necessary software than for a software expert to understand the scientific requirements.  And, [...] Fortran is still one of the easiest languages for a scientist or engineer to learn.&lt;/blockquote&gt;

If a researcher is experimenting, I can&#039;t imagine Fortran being easier to use than something like Matlab or R.  And if you&#039;re writing a million lines of code then you really need to be getting software engineers involved if you want any hope of getting something with a fairly low level of bugginess.  The difficulty in writing reliable software goes far beyond just learning the syntax of the language.  Whilst I have no major problems with Fortran per se, it is the naivety of the problems of producing software and complex models within the scientific community that stands out in this article.

http://physicsworld.com/cws/article/print/31912</description>
		<content:encoded><![CDATA[<p>Hi Dan</p>
<p>I hope you don&#8217;t mind me dropping this in here, it seemed an appropriate place to put it.</p>
<p>There is an article in this months Physics World that will probably make you chuckle, &#8220;Fortran at 50&#8243;, discussing how the HadSM3 climate model consists of &#8220;over one million lines of Fortran code&#8221;.  It adds a quote at the end:</p>
<blockquote><p>Despite the wealth of off-the-shelf software packages, there often comes a time in scientific research when they do not do quite what is needed.  It is then usually much simpler for a researcher to write the necessary software than for a software expert to understand the scientific requirements.  And, [...] Fortran is still one of the easiest languages for a scientist or engineer to learn.</p></blockquote>
<p>If a researcher is experimenting, I can&#8217;t imagine Fortran being easier to use than something like Matlab or R.  And if you&#8217;re writing a million lines of code then you really need to be getting software engineers involved if you want any hope of getting something with a fairly low level of bugginess.  The difficulty in writing reliable software goes far beyond just learning the syntax of the language.  Whilst I have no major problems with Fortran per se, it is the naivety of the problems of producing software and complex models within the scientific community that stands out in this article.</p>
<p><a href="http://physicsworld.com/cws/article/print/31912">http://physicsworld.com/cws/article/print/31912</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Follow the Money.... - Debate Politics Forums</title>
		<link>http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/comment-page-1/#comment-99</link>
		<dc:creator>Follow the Money.... - Debate Politics Forums</dc:creator>
		<pubDate>Wed, 26 Sep 2007 19:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/#comment-99</guid>
		<description>[...] http://www.ecd.bnl.gov/steve/pubs/HeatCapacity.pdf Climate Study Results in Bold Headlines, Claims  Models, Methods, Software » Blog Archive » A GISS ModelE code fragment Climate Audit - by Steve McIntyre » East Anglia Refusal Letter Climate Audit - by Steve McIntyre » [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.ecd.bnl.gov/steve/pubs/HeatCapacity.pdf">http://www.ecd.bnl.gov/steve/pubs/HeatCapacity.pdf</a> Climate Study Results in Bold Headlines, Claims  Models, Methods, Software » Blog Archive » A GISS ModelE code fragment Climate Audit &#8211; by Steve McIntyre » East Anglia Refusal Letter Climate Audit &#8211; by Steve McIntyre » [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Models, Methods, Software &#187; Blog Archive &#187; Dissipation of Fluid Motions into Thermal Energy</title>
		<link>http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/comment-page-1/#comment-82</link>
		<dc:creator>Models, Methods, Software &#187; Blog Archive &#187; Dissipation of Fluid Motions into Thermal Energy</dc:creator>
		<pubDate>Sun, 03 Jun 2007 13:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/#comment-82</guid>
		<description>[...] Chaotic Response is Numerical NoiseTom Vonk on A Short Summary of Future DiscussionsDan Hughes on A GISS ModelE code fragmentReid on This looks [...]</description>
		<content:encoded><![CDATA[<p>[...] Chaotic Response is Numerical NoiseTom Vonk on A Short Summary of Future DiscussionsDan Hughes on A GISS ModelE code fragmentReid on This looks [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Hughes</title>
		<link>http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/comment-page-1/#comment-27</link>
		<dc:creator>Dan Hughes</dc:creator>
		<pubDate>Tue, 27 Feb 2007 20:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/#comment-27</guid>
		<description>Hello again Gavin,

For item (3) I&#039;m still confused, but maybe I have made some progress. I have come to the conclusion that the complete equation for conservation of KE has not been used. And the dissipation is &#039;backed out&#039; of an approximate equation for KE. Given the velocity distribution solution from the momentum equations I don&#039;t understand why this is necessary.

A complete equation for conservation of KE requires accounting on the RHS for (1) bulk flow of KE, (2) work done by pressure of surroundings, (3) rate of reversible conversion to internal energy, (4) rate of work done by viscous forces, (5) rate of irreversible conversion to internal energy (dissipation), and (6) rate of work done by gravity. See Aris, for example. I think this equation would usually be solved for the change in KE and not used as an equation for the viscous dissipation. The viscous dissipation must be consistent with the symmetric stress tensor used in the momentum equations for the fluid flow. If the momentum equations solutions are available why not simply calculate the dissipation? Equally important, when a phrase like &#039;conservation of energy&#039; is used it should always be a reference to the fundamental form for which energy is in fact conserved. Approximate forms do not conserve energy.

If I have correctly followed your comments, and the coding, the viscous dissipation in the ModelE model is approximated by

Diss = (KE_1 + PE_1) - ( KE_0 + PE_0 ), where _1 is a final state and _0 is an initial state.

Only items (5) and (6) in the above list are retained, all others are neglected. Conservation of KE cannot be satisfied if only parts of the correct equation are retained. Additionally I&#039;ll still say that the calculation in the code accounts for both the approximate explicit parts retained plus implicit contributions due to numerical solution methods.

That this is not a complete measure of the viscous dissipation is shown by the fact that it gives the wrong answer for all flows for which the change in KE and PE are zero. There can be viscous dissipation into internal energy when the change in KE and PE are zero. Some of the terms that have been dropped from the complete KE conservation equation make it possible.

I also have not been able to understand how KE+PE can be a negative-definite (for the ModelE sign convention), monotonically decreasing function of time for general, transient flows of compressible materials. Of course the coding does not tell me the sign used for the dissipation. But the coding does allow for the possibility that ediff can be either positive or negative.

I have seen the range of dissipation seems to be from about 2 W/m2 to about 15 W/m^2. Have experiments been conducted to validate the model?

Maybe I&#039;ll get back to this if I can find some papers and reports that develop the approximations used in the codes from complete statements of the continuous equations. I find that explicit statements of assumptions and approximations and the steps in the processes used to arrive at the final forms of the continuous are very helpful

(5) I have never used the words &#039;true&#039;, &#039;bug free&#039; &#039;correct&#039; or &#039;complete&#039; (actually I have used &#039;correct&#039;, but not in the sense &#039;proof of correctness&#039;). No one who has been part of a software V&amp;V and SQA project for any non-toy model/code has ever used these words either. Generally it seems that those seeking an exemption for their particular software project are the first to mention these concepts. Sometimes they also throw in something about the squelching of creativity, trampling of personal devotion to excellence, and smashing of creative coding too. An accepted and proven procedure for conducting V&amp;V and SQA for real-world, evolved models/codes is outlined in the report linked &lt;a href=&quot;http://danhughes.auditblogs.com/files/2007/02/vandvandsqapost.pdf&quot; rel=&quot;nofollow&quot;&gt;in this post&lt;/a&gt;.

So far as I can tell, there has never been an independent, formal, documented V&amp;V and SQA audit of any AOLGCM code as these procedure are understood to mean in the software-development world.

(6) When a paper is reviewed for publication, I think reviewers carefully check the source of where the numbers presented in the results come from (I always did). Reviewers do not pass over the equations and all other necessary parts of the problem statement as something of secondary importance simply because it looks like something that has been previously published. Direct verification of the problem statement and its solution are integral parts of the peer-review process.

Numerical solution methods are notorious, and rightly so, for producing numbers that might in some rough approximate way satisfy the discrete equations and yet at the same time have no relation to the solutions of the continuous equations. The actual source of the numbers is of great importance, and it is this source that must be directly verified by persons independent of the author of the work under review. The same process applies to software. Comparison of computer-code output does not represent verification, validation, or SQA. And most certainly it does not provide information relative to &#039;truth&#039;, &#039;bug freeness&#039;, &#039;correctness&#039;, or &#039;completeness&#039;.

There are journals published by professional engineering societies that will not accept papers for publication given absence of direct demonstration of Verification of the numerical solution methods. The science journals have given a free pass to papers that are based on numerical calculations. If they had not, there would be requirements that the calculations be directly demonstrated to be actual solutions of the continuous equations. A paper based on a single calculation on a single grid (with the exact same code) would be rejected out of hand and returned to the authors.</description>
		<content:encoded><![CDATA[<p>Hello again Gavin,</p>
<p>For item (3) I&#8217;m still confused, but maybe I have made some progress. I have come to the conclusion that the complete equation for conservation of KE has not been used. And the dissipation is &#8216;backed out&#8217; of an approximate equation for KE. Given the velocity distribution solution from the momentum equations I don&#8217;t understand why this is necessary.</p>
<p>A complete equation for conservation of KE requires accounting on the RHS for (1) bulk flow of KE, (2) work done by pressure of surroundings, (3) rate of reversible conversion to internal energy, (4) rate of work done by viscous forces, (5) rate of irreversible conversion to internal energy (dissipation), and (6) rate of work done by gravity. See Aris, for example. I think this equation would usually be solved for the change in KE and not used as an equation for the viscous dissipation. The viscous dissipation must be consistent with the symmetric stress tensor used in the momentum equations for the fluid flow. If the momentum equations solutions are available why not simply calculate the dissipation? Equally important, when a phrase like &#8216;conservation of energy&#8217; is used it should always be a reference to the fundamental form for which energy is in fact conserved. Approximate forms do not conserve energy.</p>
<p>If I have correctly followed your comments, and the coding, the viscous dissipation in the ModelE model is approximated by</p>
<p>Diss = (KE_1 + PE_1) &#8211; ( KE_0 + PE_0 ), where _1 is a final state and _0 is an initial state.</p>
<p>Only items (5) and (6) in the above list are retained, all others are neglected. Conservation of KE cannot be satisfied if only parts of the correct equation are retained. Additionally I&#8217;ll still say that the calculation in the code accounts for both the approximate explicit parts retained plus implicit contributions due to numerical solution methods.</p>
<p>That this is not a complete measure of the viscous dissipation is shown by the fact that it gives the wrong answer for all flows for which the change in KE and PE are zero. There can be viscous dissipation into internal energy when the change in KE and PE are zero. Some of the terms that have been dropped from the complete KE conservation equation make it possible.</p>
<p>I also have not been able to understand how KE+PE can be a negative-definite (for the ModelE sign convention), monotonically decreasing function of time for general, transient flows of compressible materials. Of course the coding does not tell me the sign used for the dissipation. But the coding does allow for the possibility that ediff can be either positive or negative.</p>
<p>I have seen the range of dissipation seems to be from about 2 W/m2 to about 15 W/m^2. Have experiments been conducted to validate the model?</p>
<p>Maybe I&#8217;ll get back to this if I can find some papers and reports that develop the approximations used in the codes from complete statements of the continuous equations. I find that explicit statements of assumptions and approximations and the steps in the processes used to arrive at the final forms of the continuous are very helpful</p>
<p>(5) I have never used the words &#8216;true&#8217;, &#8216;bug free&#8217; &#8216;correct&#8217; or &#8216;complete&#8217; (actually I have used &#8216;correct&#8217;, but not in the sense &#8216;proof of correctness&#8217;). No one who has been part of a software V&amp;V and SQA project for any non-toy model/code has ever used these words either. Generally it seems that those seeking an exemption for their particular software project are the first to mention these concepts. Sometimes they also throw in something about the squelching of creativity, trampling of personal devotion to excellence, and smashing of creative coding too. An accepted and proven procedure for conducting V&amp;V and SQA for real-world, evolved models/codes is outlined in the report linked <a href="http://danhughes.auditblogs.com/files/2007/02/vandvandsqapost.pdf">in this post</a>.</p>
<p>So far as I can tell, there has never been an independent, formal, documented V&amp;V and SQA audit of any AOLGCM code as these procedure are understood to mean in the software-development world.</p>
<p>(6) When a paper is reviewed for publication, I think reviewers carefully check the source of where the numbers presented in the results come from (I always did). Reviewers do not pass over the equations and all other necessary parts of the problem statement as something of secondary importance simply because it looks like something that has been previously published. Direct verification of the problem statement and its solution are integral parts of the peer-review process.</p>
<p>Numerical solution methods are notorious, and rightly so, for producing numbers that might in some rough approximate way satisfy the discrete equations and yet at the same time have no relation to the solutions of the continuous equations. The actual source of the numbers is of great importance, and it is this source that must be directly verified by persons independent of the author of the work under review. The same process applies to software. Comparison of computer-code output does not represent verification, validation, or SQA. And most certainly it does not provide information relative to &#8216;truth&#8217;, &#8216;bug freeness&#8217;, &#8216;correctness&#8217;, or &#8216;completeness&#8217;.</p>
<p>There are journals published by professional engineering societies that will not accept papers for publication given absence of direct demonstration of Verification of the numerical solution methods. The science journals have given a free pass to papers that are based on numerical calculations. If they had not, there would be requirements that the calculations be directly demonstrated to be actual solutions of the continuous equations. A paper based on a single calculation on a single grid (with the exact same code) would be rejected out of hand and returned to the authors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin</title>
		<link>http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/comment-page-1/#comment-21</link>
		<dc:creator>Gavin</dc:creator>
		<pubDate>Tue, 20 Feb 2007 15:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://danhughes.auditblogs.com/2006/12/11/a-giss-modele-code-fragment/#comment-21</guid>
		<description>(1) Availability of the NASA/GISS ModelE code.

&gt; Documentation both external and internal to the code is either not available or not sufficiently detailed.

True. Creating good documentation takes time and effort, and unfortunately the scientists are not paid to do that. You won&#039;t be impressed that the situation now is significantly better than it used to be, however, even perfect documentation does not impart understanding - that is always going to take work.

&gt; If this is indeed a calculation of the physical dissipation why doesnâ€™t the comment simply state that. Additional information pointing to references containing both the continuous and discrete equations for the calculation would be most helpful.

If the dissipation isn&#039;t included (which it wasn&#039;t for a long time) it would be a small error that was &#039;fixed&#039; by this code fragment. I doubt you really need a reference to the continuous and discrete versions of the conservation of energy!

(2) Request for Constructive Efforts to Improve the code
&gt; more documentation is absolutely needed.

Thanks, but that is well known. Bears repeating I suppose.

&gt; the situation surrounding the AOLGCM models/codes is such that the very foundation of the scientific process cannot be applied. That is, independent verification and replication of reported results cannot be carried out.

Absolutely untrue. You can redo almost any reported experiment and test the sensitivity of the results. You can download CCSM3 and do the equivalent experiment and see whether the same phenomena occurs, you can test predictions against real world data.

(3) The ediff Coding

&gt; You state, â€? â€¦. ediff, it is simply the dissipation term in the KE equation â€¦â€?.

Slight mis-statement. It is the term for the dissipation of KE in the temperature equation.

&gt; the coding seems to say that it is in fact the difference between the sum of kinetic energy (KE) plus potential energy (PE) at two different states of the fluid, or stages of a calculation.

No contradiction. The different stages are before and after the momentum/advection equations are dealt with.  Any loss in total energy, associated principally with KE dissipation, is turned to heat.

&gt; viscous dissipation always acts to increase the thermal energy of a fluid. As shown in the coding, the quantity ediff can be both positive and negative.

The coding does not tell you the sign. &#039;ediff&#039; in fact is always negative (which leads to an increase in temperture). The sign convention is arbitrary.

&gt; Citations to papers and reports or textbooks that cite exactly what continuous equations are being used would have made this entire discussion unnecessary.

Energy is conserved. $d/dt (\int E dA) =0$ ; $ d/dt \sum E_{ij} = 0$.

(4) Execution of the Code by Anyone

It is difficult, but not impossible, and it isn&#039;t just amateurs doing it. It works best when they keep us appraised of their ideas and we keep them up-to-date with fixes and suggestions. I disagree that good documentation is a substitute for using the model. You would have worked out the importance (or not) of ediff in much less time than these postings if you&#039;d just run the model and put in some print statements and looked at the diagnostic printout.

&gt; Such details include development of the modeling and associated continuous equations, the discrete approximations to the continuous equations, the numerical solution methods for the discrete equations, the details of the structure of the code, and even the details of each and every calculation in each and every routine in the code.

Fine. Please inform our funders of the need to double our budget.

(5) Not Operational Forecasting Products

This is a distinction not between projections and forecasting, but a disinction between research and operations. One is a science, the other is engineering (roughly, though obviously the distinction is not clear cut). It is conceivable that climate forecasting could be made into an operational unit (a National Climate Service), but as it stands all climate model devlopment groups are research based - we do not have a mandate to produce &#039;products&#039;. Compare that to the National Hurricane Center which does.

&gt; The scientific journals associated with the climate-change community will accept papers for publication the basis of which are calculations by computer software that has not been peer-reviewed. So, AOLGCM-based papers get peer-reviewed and published and then cited in the IPCC reports. This is not correct because it bypasses the independent verification and replication processes of the scientific method.

This is simply not the case. No complex code can ever be proven &#039;true&#039; (let alone demonstrated to be bug free). Thus publications reporting GCM results can only be suggestive. If a result is interesting it gets looked at by other model groups to see if it&#039;s robust. Thus a background of replicated results gets built up and sense of what is and what isn&#039;t &#039;bankable&#039;.  This is much more useful than showing that any one code is &#039;correct&#039; since it can never be shown to complete. With limited resources, this is the approach that the field has taken.

(6) Newer Versions of the Code

&gt; We have been directed to investigate a part of the AOLGCM contributions to the climate-change community that apparently is no longer in use.

Model development is continuous. We released the &#039;frozen&#039; version that was used in the IPCC AR4 runs. All of the results currently being published use physics as coded in that version. However, newer runs will use updated code, that is inevitable. Changes will be documented in the literature.

Science using GCMs does work differently from that in other fields. There is no agreed upon set of equations that completely cover the problem and the need for parameterisations of unresolved processes means that there never will be. Thus the evaluation of models will always be against real world data, not against pure theoretical solutions.</description>
		<content:encoded><![CDATA[<p>(1) Availability of the NASA/GISS ModelE code.</p>
<p>&gt; Documentation both external and internal to the code is either not available or not sufficiently detailed.</p>
<p>True. Creating good documentation takes time and effort, and unfortunately the scientists are not paid to do that. You won&#8217;t be impressed that the situation now is significantly better than it used to be, however, even perfect documentation does not impart understanding &#8211; that is always going to take work.</p>
<p>&gt; If this is indeed a calculation of the physical dissipation why doesnâ€™t the comment simply state that. Additional information pointing to references containing both the continuous and discrete equations for the calculation would be most helpful.</p>
<p>If the dissipation isn&#8217;t included (which it wasn&#8217;t for a long time) it would be a small error that was &#8216;fixed&#8217; by this code fragment. I doubt you really need a reference to the continuous and discrete versions of the conservation of energy!</p>
<p>(2) Request for Constructive Efforts to Improve the code<br />
&gt; more documentation is absolutely needed.</p>
<p>Thanks, but that is well known. Bears repeating I suppose.</p>
<p>&gt; the situation surrounding the AOLGCM models/codes is such that the very foundation of the scientific process cannot be applied. That is, independent verification and replication of reported results cannot be carried out.</p>
<p>Absolutely untrue. You can redo almost any reported experiment and test the sensitivity of the results. You can download CCSM3 and do the equivalent experiment and see whether the same phenomena occurs, you can test predictions against real world data.</p>
<p>(3) The ediff Coding</p>
<p>&gt; You state, â€? â€¦. ediff, it is simply the dissipation term in the KE equation â€¦â€?.</p>
<p>Slight mis-statement. It is the term for the dissipation of KE in the temperature equation.</p>
<p>&gt; the coding seems to say that it is in fact the difference between the sum of kinetic energy (KE) plus potential energy (PE) at two different states of the fluid, or stages of a calculation.</p>
<p>No contradiction. The different stages are before and after the momentum/advection equations are dealt with.  Any loss in total energy, associated principally with KE dissipation, is turned to heat.</p>
<p>&gt; viscous dissipation always acts to increase the thermal energy of a fluid. As shown in the coding, the quantity ediff can be both positive and negative.</p>
<p>The coding does not tell you the sign. &#8216;ediff&#8217; in fact is always negative (which leads to an increase in temperture). The sign convention is arbitrary.</p>
<p>&gt; Citations to papers and reports or textbooks that cite exactly what continuous equations are being used would have made this entire discussion unnecessary.</p>
<p>Energy is conserved. $d/dt (\int E dA) =0$ ; $ d/dt \sum E_{ij} = 0$.</p>
<p>(4) Execution of the Code by Anyone</p>
<p>It is difficult, but not impossible, and it isn&#8217;t just amateurs doing it. It works best when they keep us appraised of their ideas and we keep them up-to-date with fixes and suggestions. I disagree that good documentation is a substitute for using the model. You would have worked out the importance (or not) of ediff in much less time than these postings if you&#8217;d just run the model and put in some print statements and looked at the diagnostic printout.</p>
<p>&gt; Such details include development of the modeling and associated continuous equations, the discrete approximations to the continuous equations, the numerical solution methods for the discrete equations, the details of the structure of the code, and even the details of each and every calculation in each and every routine in the code.</p>
<p>Fine. Please inform our funders of the need to double our budget.</p>
<p>(5) Not Operational Forecasting Products</p>
<p>This is a distinction not between projections and forecasting, but a disinction between research and operations. One is a science, the other is engineering (roughly, though obviously the distinction is not clear cut). It is conceivable that climate forecasting could be made into an operational unit (a National Climate Service), but as it stands all climate model devlopment groups are research based &#8211; we do not have a mandate to produce &#8216;products&#8217;. Compare that to the National Hurricane Center which does.</p>
<p>&gt; The scientific journals associated with the climate-change community will accept papers for publication the basis of which are calculations by computer software that has not been peer-reviewed. So, AOLGCM-based papers get peer-reviewed and published and then cited in the IPCC reports. This is not correct because it bypasses the independent verification and replication processes of the scientific method.</p>
<p>This is simply not the case. No complex code can ever be proven &#8216;true&#8217; (let alone demonstrated to be bug free). Thus publications reporting GCM results can only be suggestive. If a result is interesting it gets looked at by other model groups to see if it&#8217;s robust. Thus a background of replicated results gets built up and sense of what is and what isn&#8217;t &#8216;bankable&#8217;.  This is much more useful than showing that any one code is &#8216;correct&#8217; since it can never be shown to complete. With limited resources, this is the approach that the field has taken.</p>
<p>(6) Newer Versions of the Code</p>
<p>&gt; We have been directed to investigate a part of the AOLGCM contributions to the climate-change community that apparently is no longer in use.</p>
<p>Model development is continuous. We released the &#8216;frozen&#8217; version that was used in the IPCC AR4 runs. All of the results currently being published use physics as coded in that version. However, newer runs will use updated code, that is inevitable. Changes will be documented in the literature.</p>
<p>Science using GCMs does work differently from that in other fields. There is no agreed upon set of equations that completely cover the problem and the need for parameterisations of unresolved processes means that there never will be. Thus the evaluation of models will always be against real world data, not against pure theoretical solutions.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
