Thank you all for your very quick response. I just ran what Weihai put up on the site and it works fine.<br><br>Cheers<br>Jacob<br><br><div class="gmail_quote">On Wed, Jan 18, 2012 at 20:30, Weihai Liu <span dir="ltr"><<a href="mailto:liuweih@msu.edu">liuweih@msu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Arni and Jacob. We just fixed all the data file format for the video.<span class="HOEnZb"><font color="#888888"><div>
<br></div></font></span><div><span class="HOEnZb"><font color="#888888">weihai</font></span><div><div class="h5"><br><br><div class="gmail_quote">On Wed, Jan 18, 2012 at 1:46 PM, Arni Magnusson <span dir="ltr"><<a href="mailto:arnima@hafro.is" target="_blank">arnima@hafro.is</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I run into the same problem as Jacob, but only in Linux.<br>
<br>
[Windows] the test vector is -99 100 -101<br>
[Linux] the test vector is 0 0 0<br>
<br>
The problem seems to caused by the .dat file, which contains Dos line endings. The short-term solution is to convert the line endings:<br>
<br>
$ dos2unix growth_loglike.dat<br>
<br>
I hope the long-term solution will be to make ADMB data file parser more robust. To examine the problem I changed the model to<br>
<br>
DATA_SECTION<br>
init_int nobs<br>
!! SHOW(nobs);<br>
init_matrix vonBdata(1,nobs,1,2)<br>
!! SHOW(vonBdata);<br>
init_vector testvec(1,3)<br>
!! SHOW(testvec);<br>
<br>
PARAMETER_SECTION<br>
init_number t0<br>
objective_function_value nll<br>
<br>
PROCEDURE_SECTION<br>
nll = square(t0-1.0);<br>
<br>
GLOBALS_SECTION<br>
#define SHOW(x) cout << #x << ": " << x << endl;<br>
<br>
It looks like the problem arises when three conditions are met:<br>
<br>
1. Model is run in Linux<br>
2. Data file has Dos line endings<br>
3. Data file has empty line between two comments<br>
<br>
Thanks for reporting this problem, Jacob. You can use the 'dos2unix' shell command to fix the problem for now.<br>
<br>
Arni<div><br>
<br>
<br>
<br>
On Wed, 18 Jan 2012, Weihai Liu wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
pretty sure your admb is broken, can you even run the simple.tpl which in admb examples folder? The training example is fine after changing its tpl name and the version will not be a issue for this kind testing.<br>
<br>
weihai<br>
<br>
<br>
<br>
On Wed, Jan 18, 2012 at 11:52 AM, Jacob Kasper <<a href="mailto:jacobkasper@gmail.com" target="_blank">jacobkasper@gmail.com</a>>wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am going through the training video and I keep getting errors with ADMB2 and onwards. I can run some tpl files but not the ones that are associated with the training video, even when I download fore example the files here <a href="ftp://glpd.fw.msu.edu/QFC/ADMB-Videos/Current_ADMB_Video_Release/ADMB%202/and" target="_blank">ftp://glpd.fw.msu.edu/QFC/<u></u>ADMB-Videos/Current_ADMB_<u></u>Video_Release/ADMB%202/and</a> change the .tpl so that the names is the same as the .dat. when I run the .tpl and then the program I get the message "the test vector is 0 0 0" which is not what the training video suggests that it should return. I have been over the .tpl file carefully and I cannot figure out the error, could this be a version issue? I am running Linux 64 bit and built it from the source distribution.<br>
<br>
THank you<br>
<br>
Jacob<br>
<br>
</blockquote>
<br>
</blockquote>
</blockquote></div><br></div></div></div>
</blockquote></div><br>