[ADMB Users] error in size.cpp
dave fournier
davef at otter-rsch.com
Mon Mar 22 13:55:06 PDT 2010
there appears to be an error in size.cpp.
the line
return n;
in
int size_count_partial(_CONST dvar_vector& x,int n)
should be
return max(0,n);
Here is the entire modified function.
int size_count_partial(_CONST dvar_vector& x,int n)
{
if (!(x))
return 0;
else
return max(0,n);
}
I double if this is used in ADMB. It is low level code used in autodif
for the multifan model.
David A. Fournier
P.O. Box 2040,
Sidney, B.C. V8l 3S3
Canada
Phone/FAX 250-655-3364
http://otter-rsch.com
More information about the Users
mailing list