[Developers] FW: ADMB-RE

Mark Maunder mmaunder at iattc.org
Sun Oct 23 16:07:54 PDT 2011


See below

From: Richard Bian [mailto:r.bian at niwa.co.nz]
Sent: Sunday, October 23, 2011 2:49 PM
To: Mark Maunder
Subject: ADMB-RE

Hi Mark,

When I code my model, I noticed something interesting in ADMB-RE. Assuming x is a dvariable, if I declare another dvariable y this way, dvariable y=x; then when I change y, x will be changed in the RE round, but not in ordinary ADMB round. I guess when ADMB-RE converts the tpl to cpp in the df1b2_parameters functions, it declares y as x's reference rather than an normal variable. I didn't see this mentioned in the manual, so I think I'd let you know about this.


Regards,
Richard


Richard Bian
National Institute of Water & Atmospheric Research
41 Market Place
Auckland Central 1010, New Zealand
Tel: +64 9 375 2054  Fax: +64 9 375 2051


Please consider the environment before printing this email.

NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20111023/78a4056d/attachment.html>


More information about the Developers mailing list