<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi Ben,<br>
    <br>
    Committed the changes suggested by Dave to the admb <br>
    version control.<br>
    <br>
    <small><small><small>Index: src/df1b2-separable/tpl2rem.lex<br>
===================================================================<br>
          --- src/df1b2-separable/tpl2rem.lex    (revision 736)<br>
          +++ src/df1b2-separable/tpl2rem.lex    (working copy)<br>
          @@ -3942,8 +3942,17 @@<br>
           <br>
           #else<br>
               strcpy(outcommand,"cat xxglobal.tmp   xxhtop.tmp  
          header.tmp "<br>
          -     "  xxalloc1.tmp   xxalloc2.tmp   xxalloc3.tmp  
          xxalloc4.tmp "<br>
          -     "   xxalloc5.tmp    xxtopm.tmp    xxalloc6.tmp > ");<br>
          +     "  xxalloc1.tmp   xxalloc2.tmp   xxalloc3.tmp ");<br>
          +    if (report_defined)<br>
          +    {<br>
          +      strcat(outcommand," xxalloc4.tmp");<br>
          +    }<br>
          +    if (preliminary_calcs_defined)<br>
          +    {<br>
          +      strcat(outcommand," xxalloc5.tmp");<br>
          +    } <br>
          +    strcat(outcommand, "  xxtopm.tmp    xxalloc6.tmp > ");<br>
          +<br>
               strcpy(outcommand2,"cat tfile1  tfile2 tfile3 tfile4 >
          ");<br>
           <br>
               strcpy(outcommand3a,"sed -n -f ");</small></small></small><br>
    <br>
    <br>
    Johnoel<br>
    <br>
    On 8/23/10 8:02 AM, John Sibert wrote:
    <blockquote cite="mid:4C72B7BB.1020504@hawaii.edu" type="cite">Can
      you please look into this and reply to Ben and the list?
      <br>
      <br>
      Thanks,
      <br>
      John
      <br>
      <br>
      -------- Original Message --------
      <br>
      Subject:     Re: [ADMB Users] new version of R2admb on R-forge
      <br>
      Date:     Mon, 23 Aug 2010 12:27:45 -0400
      <br>
      From:     Ben Bolker <a class="moz-txt-link-rfc2396E" href="mailto:bolker@ufl.edu"><bolker@ufl.edu></a>
      <br>
      To:     <a class="moz-txt-link-abbreviated" href="mailto:davef@otter-rsch.com">davef@otter-rsch.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:davef@otter-rsch.com"><davef@otter-rsch.com></a>
      <br>
      CC:     <a class="moz-txt-link-abbreviated" href="mailto:users@admb-project.org">users@admb-project.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:users@admb-project.org"><users@admb-project.org></a>,
      Motoki Wu <a class="moz-txt-link-rfc2396E" href="mailto:apewu@ucdavis.edu"><apewu@ucdavis.edu></a>
      <br>
      <br>
      <br>
      <br>
        Can this/has this gone in the 'official' source tree so it gets
      taken
      <br>
      care of in the next release?
      <br>
      <br>
        thanks,
      <br>
          Ben Bolker
      <br>
      <br>
      dave fournier wrote:
      <br>
      <blockquote type="cite"> Ben Bolker wrote:
        <br>
        <br>
         OK in that case one can get rid of the erros reported in the
        liver gamma
        <br>
         function by modifying the
        <br>
         lex input file like this.
        <br>
         get rid of
        <br>
          /*
        <br>
             strcpy(outcommand,"cat xxglobal.tmp   xxhtop.tmp  
        header.tmp "
        <br>
              "  xxalloc1.tmp   xxalloc2.tmp   xxalloc3.tmp  
        xxalloc4.tmp"
        <br>
              "   xxalloc5.tmp    xxtopm.tmp    xxalloc6.tmp>  ");
        <br>
           */
        <br>
         and change to
        <br>
             strcpy(outcommand,"cat xxglobal.tmp   xxhtop.tmp  
        header.tmp "
        <br>
              "  xxalloc1.tmp   xxalloc2.tmp   xxalloc3.tmp ");
        <br>
             if (report_defined)
        <br>
             {
        <br>
               strcat(outcommand," xxalloc4.tmp");
        <br>
             }
        <br>
             if (preliminary_calcs_defined)
        <br>
             {
        <br>
               strcat(outcommand," xxalloc5.tmp");
        <br>
             }
        <br>
             This file is named remod10 on my version.  I can supply
        other
        <br>
         detailas etc if required.
        <br>
        <br>
        <br>
        <br>
        <blockquote type="cite"> dave fournier wrote:
          <br>
          <br>
          <blockquote type="cite"> Ben Bolker wrote:
            <br>
            <br>
             Well there is some confusion because it appears to me that
            Motoki was
            <br>
             using  tpl2rem on simple.tpl
            <br>
             which has no random effects.
            <br>
             I say this because my  version of tpl2cpp does not produce
            any error
            <br>
             message.
            <br>
            <br>
             Once that is settled
            <br>
             for  tpl2rem it would be simple modify the  cat ...  line
            to exclude the
            <br>
             missing files.
            <br>
            <br>
            <br>
          </blockquote>
             It is already settled.
          <br>
             As I explained, Motoki's problem came about because R2admb
          flagged the
          <br>
           warning message about 'safe mode' as an error (it no longer
          does).
          <br>
           Motoki got confused (I think) by the bit of code that was
          used to flag
          <br>
           the 'xxalloc' warnings and thought that was the problem with
          the code.
          <br>
             By default the current version of R2admb runs simple.tpl
          just fine,
          <br>
           with a warning message on some versions about 'safe' mode
          being
          <br>
           deprecated.  It filters xxalloc warnings.
          <br>
          <br>
             cheers
          <br>
                Ben
          <br>
          <br>
          <br>
          <br>
        </blockquote>
        <br>
      </blockquote>
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>