[ADMB Users] Need to increase the maximum number of dlinks

Johnoel Ancheta johnoel at hawaii.edu
Mon Apr 18 17:15:20 PDT 2011


Try and find a line in the tpl that is doing too much operations (ie a 
long line),
then break the line into smaller chucks.

For example,
a += b + c + d + e + f + g + h;

change to
dvariable B = b + c + d;
dvariable C = e + f + g + h;
a += B + C;

This resolves the dlink problem for some cases.

JOhnoel


On 4/18/11 2:09 PM, John Sibert wrote:
> Luis,
>
> That is a very rare error message. I'm not completely sure that I have 
> ever seen it.
>
> I'm curious what might be causing it. Can you somehow reduce the 
> "size" of you model and see if you still get the message?
>
> I may have seen the message once, and if I did it might have been in 
> conjunction with another error caused by unbalanced 
> RETURN_ARRAYS_INCREMENT();  and    RETURN_ARRAYS_DECREMENT(); 
> statements in some function returning variable objects.
>
> Cheers,
> John
>
> On 04/18/2011 04:43 AM, Luis Ridao wrote:
>> ADMB-help,
>> "Need to increase the maximum number of dlinks"
>> This is the message that popped up when trying to run a ADMB model
>> on Windows (ADMB 10.0).
>> The model compiles and builds succesfully.
>> How can this be fixed?
>> Thanks in advance,
>> Luis
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at admb-project.org
>> http://lists.admb-project.org/mailman/listinfo/users
>




More information about the Users mailing list