[ADMB Users] ARRAY_MEMBLOCK_SIZE
Mollie Brooks
mbrooks at ufl.edu
Tue Sep 7 14:40:39 PDT 2010
Thanks for all the help; I'm almost able to run the program now.
I got the code to compile with Steve's suggestion of this at the end
TOP_OF_MAIN_SECTION
time(&start);
arrmblsize = 50000000;
gradient_structure::set_GRADSTACK_BUFFER_SIZE(1.e7);
gradient_structure::set_CMPDIF_BUFFER_SIZE(1.e7);
gradient_structure::set_MAX_NVAR_OFFSET(5000);
gradient_structure::set_NUM_DEPENDENT_VARIABLES(5000);
But I had to comment out the line time(&start) because I didn't define
start.
Also, I had to leave a blank line after the last line.
Now I'm getting a warning about the line arrmblsize = 50000000;
warning: integer constant is too large for 'long' type
Is this a problem?
-Mollie
On Sep 7, 2010, at 12:01 PM, Steve Martell wrote:
> Try using spaces not tabs in the TOP_OF_MAIN_SECTION
>
> the error is occurring in the tpl2cpp translation.
>
> S.
> On 2010-09-07, at 8:26 AM, Mollie Brooks wrote:
>
>> Hello ADMB users,
>> I'm trying to figure out how to increase the ARRAY_MEMBLOCK_SIZE.
>> Is there some trick to it?
>>
>> After I clicked on the .exe file generated by running my code, it
>> gave me this error
>>
>> 159456>=150000
>> No memory for dvar_vectors
>> Need to increase ARRAY_MEMBLOCK_SIZE parameter
>> In gradient_structure declaration
>> logout
>>
>>
>> So I added this line to the end of my .tpl file
>>
>> TOP_OF_MAIN_SECTION
>> arrmblsize = 10000000;
>>
>> after reading here http://otter-rsch.com/cc/cc6.html and in the
>> admb.pdf file.
>>
>> But this gives me an error that I don't understand.
>>
>> *** tpl2cpp ADMBponds_process3
>> Error in line 98 while reading
>> a
>>
>> Line 98 is the first line of my TOP_OF_MAIN_SECTION.
>> Do you have any idea why this gives an error?
>> The version I'm running is from Nov 2009. I'm using a Mac.
>>
>> thanks,
>> Mollie
>>
>> Mollie Brooks
>> Ph.D. Candidate
>> NSF IGERT Fellow
>> Biology Department
>> University of Florida
>> mbrooks at ufl.edu
>> www.zoology.ufl.edu/mbrooks
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at admb-project.org
>> http://lists.admb-project.org/mailman/listinfo/users
>
> Steve Martell
> s.martell at fisheries.ubc.ca
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20100907/857c0f95/attachment.html>
More information about the Users
mailing list