<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Mark,<div><br></div><div>I would just declare a integer counter in the DATA_SECTION (i.e., the counter must have a global scope), then increment this counter in the procedure section.  If the phase changes then reset the counter (use the current_phase() command to check which phase our in).</div><div><br></div><div>Steve</div><div><div><div>On 8-Apr-10, at 11:29 AM, Fowler, Mark wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div> <!-- Converted from text/rtf format --><p><font size="2" face="Arial">Hello,</font> <br><font size="2" face="Arial">Anybody have a programmatic way to capture the iterations per estimation stage, maybe some form of screen output parser?</font></p><p><font size="2" face="Arial">I'm dealing with multi-stage fishery models that often require a lot of iterations to converge. It would help if I could pinpoint the particular stage or stages that broached an evaluation limit. I'm not aware of any way to capture this report-style, the information does not seem to be stored by ADMB in a manner a conventional user might access. As the common bottlenecks I encounter can require thousands of iterations to overcome, I'd like to avoid simply spooling and visually wading through the screen output to determine iterations per estimation stages. </font></p> <ul><ul><p><span lang="en-us"><font size="2" face="Arial">Mark Fowler</font></span> <br><span lang="en-us"><font size="2" face="Arial">Population Ecology Division</font></span> <br><span lang="en-us"><font size="2" face="Arial">Bedford Inst of Oceanography</font></span> <br><span lang="en-us"><font size="2" face="Arial">Dept Fisheries & Oceans</font></span> <br><span lang="en-us"><font size="2" face="Arial">Dartmouth NS Canada</font></span> <br><span lang="en-us"><font size="2" face="Arial">B2Y 4A2</font></span> <br><span lang="en-us"><font size="2" face="Arial">Tel. (902) 426-3529</font></span> <br><span lang="en-us"><font size="2" face="Arial">Fax (902) 426-9710</font></span> <br><span lang="en-us"><font size="2" face="Arial">Email <a href="mailto:fowlerm@mar.dfo-mpo.gc.ca">fowlerm@mar.dfo-mpo.gc.ca</a></font></span> <br><span lang="en-us"><font size="2" face="Arial">Home Tel. (902) 461-0708</font></span> <br><span lang="en-us"><font size="2" face="Arial">Home Email <a href="mailto:mark.fowler@ns.sympatico.ca">mark.fowler@ns.sympatico.ca</a></font></span> </p> <br> </ul></ul> </div> _______________________________________________<br>Users mailing list<br><a href="mailto:Users@admb-project.org">Users@admb-project.org</a><br>http://lists.admb-project.org/mailman/listinfo/users<br></blockquote></div><br><div apple-content-edited="true"> <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 style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Steve Martell</div><div><a href="mailto:s.martell@fisheries.ubc.ca">s.martell@fisheries.ubc.ca</a></div><div><br></div></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>