<div class="gmail_extra">With these changes, would you like to see all len=* changed to len=StrKIND too? Or just len=#?<br><br>Thanks,<br>Doug<br><br><div class="gmail_quote">On Thu, Apr 26, 2012 at 10:50 AM, Michael Duda <span dir="ltr">&lt;<a href="mailto:duda@ucar.edu" target="_blank">duda@ucar.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Doug.<br>
<br>
This sounds like a great idea to me.<br>
<span class="HOEnZb"><font color="#888888"><br>
Michael<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, Apr 25, 2012 at 03:15:05PM -0600, Doug Jacobsen wrote:<br>
&gt; Hi All,<br>
&gt;<br>
&gt; I figured I would give everyone one last call for input since I know some<br>
&gt; of you were rather busy last week.<br>
&gt;<br>
&gt; I&#39;ll work on this tomorrow if I don&#39;t hear from anyone. Thanks!<br>
&gt;<br>
&gt; Doug<br>
&gt;<br>
&gt; On Mon, Apr 16, 2012 at 3:23 PM, Doug Jacobsen<br>
&gt; &lt;<a href="mailto:jacobsen.douglas@gmail.com">jacobsen.douglas@gmail.com</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt; Hi Again All,<br>
&gt; &gt;<br>
&gt; &gt; Actually after some discussion within the ocean group here, I think we<br>
&gt; &gt; have come up with a better solution. Though this solution requires more<br>
&gt; &gt; code changes than the simple one I sent out previously.<br>
&gt; &gt;<br>
&gt; &gt; The solution is to define a new kind type, lets call it StrKIND. Then<br>
&gt; &gt; replace the length of all hardcoded strings with this StrKIND. This would<br>
&gt; &gt; allow us to have the length of strings controlled by the mpas_kind_types<br>
&gt; &gt; module.<br>
&gt; &gt;<br>
&gt; &gt; If everyone is ok with this, I can modify it throughout mpas. Just to be<br>
&gt; &gt; clear, all lines that have something like &quot;char (len=32)&quot; would change to<br>
&gt; &gt; &quot;char (len=StrKIND)&quot;. This would also change in the gen_inc.c file I<br>
&gt; &gt; attached previously in order to allow the string length to be standard<br>
&gt; &gt; across mpas.<br>
&gt; &gt;<br>
&gt; &gt; If anyone have comments of questions please let me know.<br>
&gt; &gt;<br>
&gt; &gt; I&#39;ll probably give this until early next week before I begin working on it.<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Doug<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Fri, Apr 13, 2012 at 4:29 PM, Doug Jacobsen &lt;<a href="mailto:jacobsen.douglas@gmail.com">jacobsen.douglas@gmail.com</a><br>
&gt; &gt; &gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Hi All,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; We recently came across an issue with registry, where namelist variables<br>
&gt; &gt;&gt; are truncated to be 32 characters in length. This is a problem when we have<br>
&gt; &gt;&gt; really long prefixes for files like the block/proc decomposition files, or<br>
&gt; &gt;&gt; even grid file names. The fix is pretty simple in the<br>
&gt; &gt;&gt; src/registry/gen_inc.c file, but I wanted some input on the max length for<br>
&gt; &gt;&gt; these variables.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Things like the input/output filename are truncated to 1024 within the<br>
&gt; &gt;&gt; MPAS code (see src/framework/mpas_io_input.F) while things like the<br>
&gt; &gt;&gt; decomposition filename are truncated to be 256 characters (see<br>
&gt; &gt;&gt; src/framework/mpas_block_decomp.F).<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; It seems like overkill to make all strings 1024 (or even 256 for that<br>
&gt; &gt;&gt; matter) but I was curious what everyones preference is. I have attached a<br>
&gt; &gt;&gt; copy of gen_inc.c where I changed the truncation limit from 32 to 256 so<br>
&gt; &gt;&gt; everyone can see what has to change, but feel free to provide input on the<br>
&gt; &gt;&gt; max length for these strings.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Doug<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; _______________________________________________<br>
&gt; mpas-developers mailing list<br>
&gt; <a href="mailto:mpas-developers@mailman.ucar.edu">mpas-developers@mailman.ucar.edu</a><br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/mpas-developers" target="_blank">http://mailman.ucar.edu/mailman/listinfo/mpas-developers</a><br>
<br>
</div></div></blockquote></div><br></div>