Liz,<div>I use:<div> cout<<"Final gradient: "<<objective_function_value::pobjfun->gmax << endl;</div><div><div> if(objective_function_value::pobjfun->gmax >final_conv)</div><div> {N_warn++; warning<<"Final gradient: "<<objective_function_value::pobjfun->gmax <<" is larger than final_conv: "<<final_conv<<endl;}</div>
<div><br></div><div>Rick</div><br><div class="gmail_quote">On Mon, Oct 1, 2012 at 12:33 PM, Liz Brooks <span dir="ltr"><<a href="mailto:liz.brooks@noaa.gov" target="_blank">liz.brooks@noaa.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">dear admb users,<br><br>i would like to access the final gradient from a model run, other than watching it scroll by on the screen. is this written to file, or is it possible to add code so that information is saved? any info and/or code would be much appreciated.<br>
<br>thanks<br>liz brooks<br><br>Northeast Fisheries Science Center<br>166 Water Street<br>Woods Hole, MA 02536<br>
<br>_______________________________________________<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" target="_blank">http://lists.admb-project.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><b id="internal-source-marker_0.645288739586249" style="font-weight:normal"><span style="font-family:Arial;font-size:13px;color:rgb(102,102,102);font-weight:bold;vertical-align:baseline;white-space:pre-wrap">Richard D. Methot Jr.</span><br>
<font color="#666666" face="Arial"><span style="white-space:pre-wrap"><i>National Stock Assessment Coordinator</i></span></font></b><div><b style="font-weight:normal"><font color="#666666" face="Arial"><span style="white-space:pre-wrap"><i>Office of Science & Technology<br>
</i></span></font><span style="font-family:Arial;font-size:13px;color:rgb(102,102,102);font-style:italic;vertical-align:baseline;white-space:pre-wrap">NOAA Fisheries</span><br><span style="font-family:Arial;font-size:13px;color:rgb(102,102,102);font-style:italic;vertical-align:baseline;white-space:pre-wrap">U.S. Department of Commerce</span><br>
<span style="font-family:Arial;font-size:13px;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap">Office: 206-860-3365</span><br><span style="font-family:Arial;font-size:13px;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap">Mobile: 301-787-0241</span><br>
<span style="font-family:Arial;font-size:13px;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap">richard.methot<a href="mailto:first.last@noaa.gov" style="font-family:'Times New Roman';font-size:medium">@noaa.gov</a></span><font><span style="font-size:13px;font-family:Arial;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap"></span></font><br>
<a href="http://www.nmfs.noaa.gov/" style="font-family:'Times New Roman';font-size:medium"><span style="font-size:13px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap">www.nmfs.noaa.gov</span></a><font><span style="font-size:13px;font-family:Arial;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap"></span></font><br>
<font><span style="font-size:13px;font-family:Arial;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap"></span></font><br><font><span style="font-size:13px;font-family:Arial;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap"></span></font><font face="Times New Roman" size="3"><img src="https://lh5.googleusercontent.com/uxmewxTV_PYQm_PjTxFdhAJkHKG-ceIlHmahTsDCHDbrVfKtzhyw0sE5qfRXcTXyQhKEbI-6A91gKn3i23y8sK5O4AvwBTeiFBPnA98Kx3gLKAjrh_s" width="206px;" height="50px;"></font></b>
</div><br>
</div></div>