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

Arni Magnusson arnima at hafro.is
Mon Apr 18 08:43:51 PDT 2011


A Google search for "maximum number of dlinks" links to the AUTODIF 
manual, suggesting that the user can increase this value directly from the 
TPL file:

TOP_OF_MAIN_SECTION
   gradient_structure::set_MAX_DLINKS(n);

Haven't tried this, but it looks like it should work.

Arni



On Mon, 18 Apr 2011, dave fournier wrote:

> Well you could increase the maximum number of dlinks.
>
>  grepping on the source one finds something like
>
>  if (nlinks > gradient_structure::MAX_DLINKS)
>  {
>    cerr << "Need to increase the maximum number of dlinks" << endl;
>
>
> then grepping on gradient_structure::MAX_DLINKS produces something like
>
>    gradstrc.cpp:int gradient_structure::MAX_DLINKS = 5000;
>
> Sop change that to something like
>
> int gradient_structure::MAX_DLINKS = 10000;
>
> and recompile the source.
>



More information about the Users mailing list