<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to PMTM_parameter_output</title><link>https://sourceforge.net/p/ichnaea/wiki/PMTM_parameter_output/</link><description>Recent changes to PMTM_parameter_output</description><atom:link href="https://sourceforge.net/p/ichnaea/wiki/PMTM_parameter_output/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 29 Jan 2014 14:49:59 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ichnaea/wiki/PMTM_parameter_output/feed" rel="self" type="application/rss+xml"/><item><title>PMTM_parameter_output modified by Iain Miller</title><link>https://sourceforge.net/p/ichnaea/wiki/PMTM_parameter_output/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="pmtm_parameter_output"&gt;PMTM_parameter_output&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Fortran:&lt;/strong&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;subroutine &lt;/span&gt;&lt;span class="nv"&gt;PMTM_parameter_output&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;instance&lt;/span&gt; &lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;parameter_name&lt;/span&gt; &lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;output_type&lt;/span&gt; &lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;for_all_ranks&lt;/span&gt; &lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;parameter_value&lt;/span&gt; &lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;err_code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Log a parameter to the output file. This is an interface routine which accepts the following parameter_value types: real(4), real(8), integer(4), integer(8), logical, character(len=*). If any other parameter types are required please contact the PMTM code custodian.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="kt"&gt;integer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;intent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;in&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="kd"&gt;::&lt;/span&gt;&lt;span class="nv"&gt;instance&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The handle of the instance to whose output file we are writing this parameter.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="kt"&gt;character&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="o"&gt;=*&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="k"&gt;intent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;in&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="kd"&gt;::&lt;/span&gt;&lt;span class="nv"&gt;parameter_name&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The name of the parameter. &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="kt"&gt;integer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;intent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;in&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="kd"&gt;::&lt;/span&gt;&lt;span class="nv"&gt;output_type&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The conditions for outputting this parameter, the options being:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;PMTM_OUTPUT_ALWAYS&lt;/strong&gt; &lt;ul&gt;
&lt;li&gt;Always output the parameter.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;PMTM_OUTPUT_ON_CHANGE&lt;/strong&gt; &lt;ul&gt;
&lt;li&gt;Only output the parameter if it has changed since the last output call.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;PMTM_OUTPUT_ONCE&lt;/strong&gt;&lt;ul&gt;
&lt;li&gt;Only output the parameter on the first call to this routine. &lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If other versions are required, please contact the PMTM code custodians.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="kt"&gt;logical&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;intent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;in&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="kd"&gt;::&lt;/span&gt;&lt;span class="nv"&gt;for_all_ranks&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Whether we are printing the parameter for all ranks (.TRUE.) or just for rank 0 (.FALSE.).&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nv"&gt;various&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;intent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;in&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="kd"&gt;::&lt;/span&gt;&lt;span class="nv"&gt;parameter_value&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The value to output.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="kt"&gt;integer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;intent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;out&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="kd"&gt;::&lt;/span&gt;&lt;span class="nv"&gt;err_code&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Will be set to &lt;strong&gt;PMTM_SUCCESS&lt;/strong&gt; if the call was successful and the appropriate error code if not.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Notes:&lt;/strong&gt; The C version of this routine takes a printf style format string argument which is used to parse the parameter values at the end.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;C:&lt;/strong&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;PMTM_error_t&lt;/span&gt; &lt;span class="n"&gt;PMTM_parameter_output&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;PMTM_instance_t&lt;/span&gt; &lt;span class="n"&gt;instance&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;const&lt;/span&gt; &lt;span class="kt"&gt;char&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;parameter_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;PMTM_output_type_t&lt;/span&gt; &lt;span class="n"&gt;output_type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;PMTM_BOOL&lt;/span&gt; &lt;span class="n"&gt;for_all_ranks&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;const&lt;/span&gt; &lt;span class="kt"&gt;char&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;format_string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;...)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Iain Miller</dc:creator><pubDate>Wed, 29 Jan 2014 14:49:59 -0000</pubDate><guid>https://sourceforge.netf8ddc17271b270101415ffc2d4710a5a36412d59</guid></item></channel></rss>