Changeset 1647


Ignore:
Timestamp:
Feb 7, 2010 7:51:48 AM (10 years ago)
Author:
bradbell
Message:

/home/bradbell/cppad/stable/20100101: Fix bugs in the ADFun<Base>.optimize() and PrintFor? operations.

optimize.hpp: extra semi-colon was voiding check for excat match.
print_op.hpp: assertion had to low of a limit for valid arugument values.
new_release.sh: change to release number for this bug fix.

Location:
stable/20100101
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable/20100101/cppad/local/optimize.hpp

    r1613 r1647  
    44
    55/* --------------------------------------------------------------------------
    6 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
     6CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
    77
    88CppAD is distributed under multiple licenses. This distribution is under
     
    326326        {       size_t k = tape[i].arg[0];
    327327                CPPAD_ASSERT_UNKNOWN( k < i );
    328                 if (new_arg[0] == tape[k].new_var );
     328                if (new_arg[0] == tape[k].new_var )
    329329                        return tape[i].new_var;
    330330        }
  • stable/20100101/cppad/local/print_op.hpp

    r1458 r1647  
    55
    66/* --------------------------------------------------------------------------
    7 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
     7CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
    88
    99CppAD is distributed under multiple licenses. This distribution is under
     
    9898
    9999/*!
    100 Print operation for parameters; i.e., op = PrivOp.
     100Print operation for variables; i.e., op = PrivOp.
    101101
    102102The C++ source code corresponding to this operation is
     
    152152\li NumRes(PrivOp) == 0
    153153\li arg[0] < num_test
    154 \li arg[1] < i_z
     154\li arg[1] <= i_z
    155155*/
    156156template <class Base>
     
    168168        CPPAD_ASSERT_UNKNOWN( NumRes(PripOp) == 0 );
    169169        CPPAD_ASSERT_UNKNOWN( arg[0] < num_text );
    170         CPPAD_ASSERT_UNKNOWN( arg[1] < i_z );
     170        CPPAD_ASSERT_UNKNOWN( arg[1] <= i_z );
    171171
    172172        std::cout << text + arg[0];
  • stable/20100101/new_release.sh

    r1617 r1647  
    1313repository="https://projects.coin-or.org/svn/CppAD"
    1414stable_version="20100101"
    15 release="0"
     15release="1"
    1616release_version="$stable_version.$release"
    1717msg="Creating releases/$release_version"
     
    1919if ! grep "AC_INIT(CppAD.*, $stable_version.$release" configure.ac >> /dev/null
    2020then
    21         echo "Must change version number in build.sh,"
     21        echo "Must change version number in configure.ac,"
    2222        echo "then run build.sh all test, and check in changes."
    2323        exit 1
Note: See TracChangeset for help on using the changeset viewer.