admb-project / admb

AD Model Builder
http://admb-project.org
Other
64 stars 19 forks source link

Higher dimensions not parsing in DATA_SECTION #77

Closed johnoel closed 7 years ago

johnoel commented 7 years ago

Reported by Jim Ianelli Example

File t.tpl

DATA_SECTION 6darray d6(1,1,1,2,1,3,1,4,1,5,1,6); PARAMETER_SECTION init_number x; objective_function_value ff PROCEDURE_SECTION ff=x*x;

admb script outputs

$ admb t.tpl

*** Parse: t.tpl tpl2cpp t || tpl2rem t

Error: could not parse "t.tpl".

warning -- creating unallocated 5darray() at line 2 Error in line 2 while reading ( Error in line 2 while reading d make: *** [all] Error 1