<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Does anyone know if there is a funnel variable for vectors?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'> <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>Mark Maunder <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Head of the Stock Assessment
Program<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Inter-American  Tropical
Tuna Commission<br>
8604 La Jolla Shores Drive<br>
La Jolla, CA, 92037-1508, USA<br>
  <br>
Tel: (858) 546-7027<br>
Fax: (858) 546-7133<br>
<a href="mailto:mmaunder@iattc.org">mmaunder@iattc.org</a><br>
</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><a
href="http://www.fisheriesstockassessment.com/TikiWiki/tiki-index.php?page=Mark+Maunder">http://www.fisheriesstockassessment.com/TikiWiki/tiki-index.php?page=Mark+Maunder</a></span><span
style='font-size:11.0pt;color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>Visit the AD
Model Builder project at<br>
 <a href="http://admb-project.org/"><span style='color:#810081'>http://admb-project.org/</span></a></span><span
style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'> <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>See the
following website for information on fisheries stock assessment<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><a
href="http://www.fisheriesstockassessment.com/">http://www.fisheriesstockassessment.com/</a></span><span
style='font-size:11.0pt;color:#1F497D'><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'> </span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'> users-bounces@admb-project.org
[mailto:users-bounces@admb-project.org] <b>On Behalf Of </b>Ian Taylor<br>
<b>Sent:</b> Friday, May 28, 2010 4:34 PM<br>
<b>To:</b> users@admb-project.org<br>
<b>Subject:</b> [ADMB Users] memory inputs in ADMB<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Hello,<br>
Memory use seems to the topic of the day, as I was just starting to write this
email when I saw that the topic was being discussed on the developers list: <a
href="http://groups.google.com/group/admb-developers/browse_thread/thread/7d687623ab6d9f1b">http://groups.google.com/group/admb-developers/browse_thread/thread/7d687623ab6d9f1b</a><br>
Arni's suggestion of having ADMB tell us how much memory is needed by a given
model might one day solve avoid the problems I'm asking about.<br>
<br>
My first question is about the warning <br>
"Memory allocation error in grad_stack constructor<br>
 trying to allocate 2000000000 bytes"<br>
Is this warning (which seem to come from <a
href="http://code.google.com/p/admb-project/source/browse/trunk/src/linad99/gradstak.cpp">this
piece</a> of the source code), just telling me that my 32 bit Windows XP
computer can't handle the amount of memory (slightly below 2GB) that I'm trying
to allocate using the -gbs input? I've got 4GB available, but maybe 32 bit
Windows can't handle more than 2GB for any one program? A smaller input allows
the model to run fine without warning, but I'd still like to understand the
source of the warning.<br>
<br>
My second question is what happens when you enter a value for -cbs or -gbs that
is bigger than 2147483648 (2GB)? It appears that instead of getting a warning,
the model runs, but slower, and using less memory than what would be associated
with a smaller -gbs input. Since the current method of finding good values for
these inputs seems to be trial and error, perhaps ADMB could help us avoid
searching beyond the maximum for long integers by providing a warning or
someone could clarify that indeed we should not be providing inputs larger than
2^31.<br>
<br>
As I noted <a
href="http://groups.google.com/group/admb-users/browse_thread/thread/8138cac68902c078/a2ea7d9a621d76a1?lnk=gst&q=ian+gbs#a2ea7d9a621d76a1">in
a previous email to this list</a>, there seems to be no problem allocating lots
of memory when we compile models using 64 bit version of ADMB.<br>
Thanks,<br>
-Ian<o:p></o:p></p>

</div>

</body>

</html>