<div class="gmail_extra">Hi All,<br><br>I figured I would give everyone one last call for input since I know some of you were rather busy last week.<br><br>I&#39;ll work on this tomorrow if I don&#39;t hear from anyone. Thanks!<br>

<br>Doug<br><br><div class="gmail_quote">On Mon, Apr 16, 2012 at 3:23 PM, Doug Jacobsen <span dir="ltr">&lt;<a href="mailto:jacobsen.douglas@gmail.com" target="_blank">jacobsen.douglas@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Again All,<br><br>Actually after some discussion within the ocean group here, I think we have come up with a better solution. Though this solution requires more code changes than the simple one I sent out previously.<br>


<br>The solution is to define a new kind type, lets call it StrKIND. Then replace the length of all hardcoded strings with this StrKIND. This would allow us to have the length of strings controlled by the mpas_kind_types module.<br>


<br>If everyone is ok with this, I can modify it throughout mpas. Just to be clear, all lines that have something like &quot;char (len=32)&quot; would change to &quot;char (len=StrKIND)&quot;. This would also change in the gen_inc.c file I attached previously in order to allow the string length to be standard across mpas.<br>


<br>If anyone have comments of questions please let me know.<br><br>I&#39;ll probably give this until early next week before I begin working on it.<br><br>Thanks,<br>Doug<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">

On Fri, Apr 13, 2012 at 4:29 PM, Doug Jacobsen <span dir="ltr">&lt;<a href="mailto:jacobsen.douglas@gmail.com" target="_blank">jacobsen.douglas@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br><br>We recently came across an issue with registry, where namelist variables are truncated to be 32 characters in length. This is a problem when we have really long prefixes for files like the block/proc decomposition files, or even grid file names. The fix is pretty simple in the src/registry/gen_inc.c file, but I wanted some input on the max length for these variables.<br>



<br>Things like the input/output filename are truncated to 1024 within the MPAS code (see src/framework/mpas_io_input.F) while things like the decomposition filename are truncated to be 256 characters (see src/framework/mpas_block_decomp.F).<br>



<br>It seems like overkill to make all strings 1024 (or even 256 for that matter) but I was curious what everyones preference is. I have attached a copy of gen_inc.c where I changed the truncation limit from 32 to 256 so everyone can see what has to change, but feel free to provide input on the max length for these strings.<span><font color="#888888"><br>



<br>Doug<br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br></div>