<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for all the help; I'm almost able to run the program now. <div>I got the code to compile with Steve's suggestion of this at the end<div><br></div><div><div><div>TOP_OF_MAIN_SECTION</div><div><span class="Apple-tab-span" style="white-space: pre; ">  </span>time(&start);</div><div><span class="Apple-tab-span" style="white-space: pre; "> </span>arrmblsize = 50000000;</div><div><span class="Apple-tab-span" style="white-space: pre; ">    </span>gradient_structure::set_GRADSTACK_BUFFER_SIZE(1.e7);</div><div><span class="Apple-tab-span" style="white-space: pre; ">      </span>gradient_structure::set_CMPDIF_BUFFER_SIZE(1.e7);</div><div><span class="Apple-tab-span" style="white-space: pre; "> </span>gradient_structure::set_MAX_NVAR_OFFSET(5000);</div><div><span class="Apple-tab-span" style="white-space: pre; ">    </span>gradient_structure::set_NUM_DEPENDENT_VARIABLES(5000);</div></div><div><br></div><div>But I had to comment out the line time(&start) because I didn't define start.</div><div>Also, I had to leave a blank line after the last line. </div><div><br></div><div>Now I'm getting a warning about the line arrmblsize = 50000000;</div><div><div>warning: integer constant is too large for 'long' type</div></div><div><br></div><div>Is this a problem?</div><div>-Mollie</div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-size: medium;"><br></span></span></font></div><div><div apple-content-edited="true"><br class="Apple-interchange-newline"> </div><br><div><div>On Sep 7, 2010, at 12:01 PM, Steve Martell wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Try using spaces not tabs in the TOP_OF_MAIN_SECTION<div><br></div><div>the error is occurring in the tpl2cpp translation.</div><div><br></div><div>S.<br><div><div>On 2010-09-07, at 8:26 AM, Mollie Brooks wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello ADMB users,<div><div>I'm trying to figure out how to increase the <span class="Apple-style-span" style="font-family: Times; ">ARRAY_MEMBLOCK_SIZE. Is there some trick to it? </span></div><div><br></div><div><span class="Apple-style-span" style="font-family: Times; "></span>After I clicked on the .exe file generated by running my code, it gave me this error</div><div><br></div><div><div>159456>=150000</div><div> No memory for dvar_vectors</div><div> Need to increase ARRAY_MEMBLOCK_SIZE parameter</div><div>In gradient_structure declaration</div><div>logout</div></div><div><br></div><div><br></div><div>So I added this line to the end of my .tpl file</div><div><br></div><div><div>TOP_OF_MAIN_SECTION</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>arrmblsize = 10000000;</div></div><div><br></div><div>after reading here <a href="http://otter-rsch.com/cc/cc6.html">http://otter-rsch.com/cc/cc6.html</a> and in the admb.pdf file.</div><div><br></div><div>But this gives me an error that I don't understand. </div><div><br></div><div><div>*** tpl2cpp   ADMBponds_process3</div><div>Error in line 98 while reading</div><div>a</div></div><div><br></div><div>Line 98 is the first line of my TOP_OF_MAIN_SECTION. </div><div>Do you have any idea why this gives an error?</div><div>The version I'm running is from Nov 2009. <span class="Apple-style-span" style="font-family: Times; ">I'm using a Mac. </span></div><div><br></div><div>thanks,</div><div>Mollie</div><div><br></div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div>Mollie Brooks</div><div>Ph.D. Candidate</div><div>NSF IGERT Fellow</div><div>Biology Department</div><div>University of Florida</div><div><a href="mailto:mbrooks@ufl.edu">mbrooks@ufl.edu</a></div><div><a href="http://www.zoology.ufl.edu/mbrooks">www.zoology.ufl.edu/mbrooks</a></div><div><br></div></span></div></div></span><br class="Apple-interchange-newline"> </div><br></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@admb-project.org">Users@admb-project.org</a><br><a href="http://lists.admb-project.org/mailman/listinfo/users">http://lists.admb-project.org/mailman/listinfo/users</a><br></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>Steve Martell</div><div><a href="mailto:s.martell@fisheries.ubc.ca">s.martell@fisheries.ubc.ca</a></div><div><br></div></span><br class="Apple-interchange-newline"> </div> <br></div></div></blockquote></div><br></div></div></div></body></html>