Closed cgrandin closed 9 years ago
Thanks Chris for finding this error.
The Error started with commit https://github.com/admb-project/admb/commit/c14c6870cf43e2c1bd0868c66d5fd46d04614d3a
Resolved in https://github.com/admb-project/admb/commit/99e8baa1ba85a81f804820338b94fb32e8a696f0
Thanks Johnoel, there is still an issue though with 3d arrays. Try adding this into simple.tpl, DATA_SECTION:
init_int nAgears init_ivector n_A_nobs(1,nAgears) init_ivector n_A_sage(1,nAgears); init_ivector n_A_nage(1,nAgears); 3darray d3_A_obs(1,nAgears,1,n_A_nobs,n_A_sage,n_A_nage);
It is working again, thanks Johnoel!
To reproduce this error, open simple.tpl and add these lines to the DATA_SECTION:
init_int sage init_int nage vector age(sage,nage)
This worked fine in previous versions but now gives an ambiguity error in dvector.h. There are two allocate functions which match. They are:
void allocate(int ncl, int ncu); void allocate(const ad_integer &, const index_type &);
Both those definitions were there in the previous versions and have been since inception so something else has changed in the ADMB source to cause this. The error appeared when I used the current source, pulled and compiled on Nov 4, 2015.