Changeset 1771


Ignore:
Timestamp:
Jan 1, 2011 10:41:51 AM (9 years ago)
Author:
bradbell
Message:

Fix warnings about variables shadowing other identifiers (gcc -Wshadow).
rosen_34.cpp, bender_quad.cpp, ode_grea.cpp, ode_gear_control.cpp,
reverse.cpp, k_gt_one.cpp, multiple_solution.cpp, get_started.cpp,
ode_simple.hpp, ode_fast.hpp, sparse_set.hpp, sparse_pack.hpp, det_minor.cpp

Update version number:
AUTHORS, configure, configure.ac, config.h, configure.hpp

Add -Wshadow to compliation command:
build.sh, */test_one.in

makefile.in: fix location of cppad.pc.
whats_new_10.omh: user's view of the changes.

Location:
trunk
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • trunk/AUTHORS

    r1766 r1771  
    22             ===========================================
    33
    4 To date, 2010-12-31, Bradley M. Bell is the sole author of CppAD.
     4To date, 2011-01-01, Bradley M. Bell is the sole author of CppAD.
    55While Bradley M. Bell worked for the University of Washington during
    66the development of CppAD, the following are also true:
  • trunk/bin/build.sh

    r1768 r1771  
    22# $Id$
    33# -----------------------------------------------------------------------------
    4 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     4# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    55#
    66# CppAD is distributed under multiple licenses. This distribution is under
     
    255255        echo "../configure \\"
    256256        echo "$dir_list" | sed -e 's| | \\\n\t|g' -e 's|$| \\|' -e 's|^|\t|'
    257         echo "CXX_FLAGS=\"-Wall -ansi -pedantic-errors -std=c++98\"\\"
     257        echo "CXX_FLAGS=\"-Wall -ansi -pedantic-errors -std=c++98 -Wshadow\"\\"
    258258        echo "--with-Documentation"
    259259        #
    260260        ../configure $dir_list \
    261                 CXX_FLAGS="-Wall -ansi -pedantic-errors -std=c++98" \
     261                CXX_FLAGS="-Wall -ansi -pedantic-errors -std=c++98 -Wshadow" \
    262262                --with-Documentation
    263263        #
  • trunk/configure

    r1768 r1771  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.66 for CppAD 20101231.
     3# Generated by GNU Autoconf 2.66 for CppAD 20110101.
    44#
    55# Report bugs to <cppad@list.coin-or.org>.
     
    552552PACKAGE_NAME='CppAD'
    553553PACKAGE_TARNAME='cppad'
    554 PACKAGE_VERSION='20101231'
    555 PACKAGE_STRING='CppAD 20101231'
     554PACKAGE_VERSION='20110101'
     555PACKAGE_STRING='CppAD 20110101'
    556556PACKAGE_BUGREPORT='cppad@list.coin-or.org'
    557557PACKAGE_URL=''
     
    12631263  # This message is too long to be a string in the A/UX 3.1 sh.
    12641264  cat <<_ACEOF
    1265 \`configure' configures CppAD 20101231 to adapt to many kinds of systems.
     1265\`configure' configures CppAD 20110101 to adapt to many kinds of systems.
    12661266
    12671267Usage: $0 [OPTION]... [VAR=VALUE]...
     
    13291329if test -n "$ac_init_help"; then
    13301330  case $ac_init_help in
    1331      short | recursive ) echo "Configuration of CppAD 20101231:";;
     1331     short | recursive ) echo "Configuration of CppAD 20110101:";;
    13321332   esac
    13331333  cat <<\_ACEOF
     
    14421442if $ac_init_version; then
    14431443  cat <<\_ACEOF
    1444 CppAD configure 20101231
     1444CppAD configure 20110101
    14451445generated by GNU Autoconf 2.66
    14461446
     
    17691769running configure, to aid debugging if configure makes a mistake.
    17701770
    1771 It was created by CppAD $as_me 20101231, which was
     1771It was created by CppAD $as_me 20110101, which was
    17721772generated by GNU Autoconf 2.66.  Invocation command line was
    17731773
     
    37783778# Define the identity of the package.
    37793779 PACKAGE='cppad'
    3780  VERSION='20101231'
     3780 VERSION='20110101'
    37813781
    37823782
     
    60056005# values after options handling.
    60066006ac_log="
    6007 This file was extended by CppAD $as_me 20101231, which was
     6007This file was extended by CppAD $as_me 20110101, which was
    60086008generated by GNU Autoconf 2.66.  Invocation command line was
    60096009
     
    60716071ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
    60726072ac_cs_version="\\
    6073 CppAD config.status 20101231
     6073CppAD config.status 20110101
    60746074configured by $0, generated by GNU Autoconf 2.66,
    60756075  with options \\"\$ac_cs_config\\"
  • trunk/configure.ac

    r1768 r1771  
    11dnl $Id$
    22dnl ---------------------------------------------------------------------------
    3 dnl CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     3dnl CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44dnl
    55dnl CppAD is distributed under multiple licenses. This distribution is under
     
    1313dnl Process this file with autoconf to produce a configure script.
    1414dnl   package   version              bug-report
    15 AC_INIT(CppAD, 20101231, cppad@list.coin-or.org)
     15AC_INIT(CppAD, 20110101, cppad@list.coin-or.org)
    1616AC_SUBST(PACKAGE_URL, "http://www.coin-or.org/CppAD")
    1717AC_SUBST(PACKAGE_DESCRIPTION, "Differentiation of C++ Algorithms")
  • trunk/cppad/config.h

    r1768 r1771  
    2424
    2525/* Define to the full name and version of this package. */
    26 #define PACKAGE_STRING "CppAD 20101231"
     26#define PACKAGE_STRING "CppAD 20110101"
    2727
    2828/* Define to the one symbol short name of this package. */
     
    3333
    3434/* Define to the version of this package. */
    35 #define PACKAGE_VERSION "20101231"
     35#define PACKAGE_VERSION "20110101"
    3636
    3737/* Version number of package */
    38 #define VERSION "20101231"
     38#define VERSION "20110101"
    3939
    4040/* Define to `__inline__' or `__inline' if that's what the C compiler
  • trunk/cppad/configure.hpp

    r1766 r1771  
    66
    77/* --------------------------------------------------------------------------
    8 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     8CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    99
    1010CppAD is distributed under multiple licenses. This distribution is under
     
    6161cppad-yyyymmdd as a C string where yyyy is year, mm is month, and dd is day.
    6262*/
    63 # define CPPAD_PACKAGE_STRING "CppAD 20101231"
     63# define CPPAD_PACKAGE_STRING "CppAD 20110101"
    6464
    6565/*
  • trunk/cppad/local/sparse_pack.hpp

    r1658 r1771  
    33
    44/* --------------------------------------------------------------------------
    5 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     5CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    66
    77CppAD is distributed under multiple licenses. This distribution is under
     
    8989
    9090        Any memory currently allocated for this object is freed. If both
    91         \a n_set and \a end are non-zero new memory is allocated, otherwise
     91        \a n_set_in and \a end_in are non-zero new memory is allocated, otherwise
    9292        no new memory is allocated for the object.
    9393
    94         \param n_set
     94        \param n_set_in
    9595        is the number of sets in this vector of sets.
    9696
    97         \param end
     97        \param end_in
    9898        is the maximum element plus one (the minimum element is 0).
    9999        */
    100         void resize(size_t n_set, size_t end)
     100        void resize(size_t n_set_in, size_t end_in)
    101101        {       Pack zero(0);
    102102                if( allocated_ )
     
    105105                }
    106106
    107                 n_set_          = n_set;
    108                 end_            = end;
    109                 n_pack_         = ( 1 + (end - 1) / n_bit_ );
     107                n_set_          = n_set_in;
     108                end_            = end_in;
     109                n_pack_         = ( 1 + (end_ - 1) / n_bit_ );
    110110                size_t i        = n_set_ * n_pack_;
    111111
     
    118118
    119119                // values that signify past end of list
    120                 next_index_   = n_set;
    121                 next_element_ = end;
     120                next_index_   = n_set_;
     121                next_element_ = end_;
    122122        }
    123123        // -----------------------------------------------------------------
  • trunk/cppad/local/sparse_set.hpp

    r1641 r1771  
    33
    44/* --------------------------------------------------------------------------
    5 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     5CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    66
    77CppAD is distributed under multiple licenses. This distribution is under
     
    7474
    7575        Any memory currently allocated for this object is freed. If
    76         \a n_set is zero, no new memory is allocated for the set.
     76        \a n_set_in is zero, no new memory is allocated for the set.
    7777        Otherwise, new memory may be allocated for the sets.
    7878
    79         \param n_set
     79        \param n_set_in
    8080        is the number of sets in this vector of sets.
    8181
    82         \param end
     82        \param end_in
    8383        is the maximum element plus one (the minimum element is 0).
    8484        */
    85         void resize(size_t n_set, size_t end)
    86         {       n_set_          = n_set;
    87                 end_            = end;
     85        void resize(size_t n_set_in, size_t end_in)
     86        {       n_set_          = n_set_in;
     87                end_            = end_in;
    8888                // free all memory connected with data_
    8989                data_.resize(0);
     
    9292
    9393                // value that signfies past end of list
    94                 next_index_ = n_set;
     94                next_index_ = n_set_;
    9595        }
    9696        // -----------------------------------------------------------------
  • trunk/cppad_ipopt/example/get_started.cpp

    r1705 r1771  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    6464        public:
    6565                // derived class part of constructor
    66                 FG_info(bool retape)
    67                 : retape_ (retape)
     66                FG_info(bool retape_in)
     67                : retape_ (retape_in)
    6868                { }
    6969                // Evaluation of the objective f(x), and constraints g(x)
  • trunk/cppad_ipopt/example/ode_fast.hpp

    r1636 r1771  
    33# define CPPAD_ODE_FAST_INCLUDED
    44/* --------------------------------------------------------------------------
    5 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     5CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    66
    77CppAD is distributed under multiple licenses. This distribution is under
     
    4444        public:
    4545                // derived class part of constructor
    46                 FG_fast(bool retape, const SizeVector& N)
    47                 : retape_ (retape), N_(N)
     46                FG_fast(bool retape_in, const SizeVector& N)
     47                : retape_ (retape_in), N_(N)
    4848                {       assert( N_[0] == 0 );
    4949                        S_.resize( N_.size() );
     
    6666                        {       // used for measurement with index k+1
    6767                                ADVector r(1); // return value is a scalar
    68                                 size_t j;
    6968                                // u is [y( s[k+1] ) , a]
    7069                                for(j = 0; j < Ny; j++)
  • trunk/cppad_ipopt/example/ode_simple.hpp

    r1636 r1771  
    44
    55/* --------------------------------------------------------------------------
    6 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     6CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    77
    88CppAD is distributed under multiple licenses. This distribution is under
     
    4949        public:
    5050                // derived class part of constructor
    51                 FG_simple(bool retape, const SizeVector& N)
    52                 : retape_ (retape), N_(N)
     51                FG_simple(bool retape_in, const SizeVector& N)
     52                : retape_ (retape_in), N_(N)
    5353                {       assert( N_[0] == 0 );
    5454                        S_.resize( N.size() );
     
    101101                                Number dt = T / Number( N_[k+1] );
    102102                                for(j = 0; j < N_[k+1]; j++)
    103                                 {       size_t index = (j + S_[k]) * Ny;
     103                                {       size_t Index = (j + S_[k]) * Ny;
    104104                                        // y(t) at end of last step
    105105                                        ym = y;
     
    108108                                        // value of y(t) at end of this step
    109109                                        for(i = 0; i < Ny; i++)
    110                                                 y[i] = x[Ny + index + i];
     110                                                y[i] = x[Ny + Index + i];
    111111                                        // G(y, a) at end of this step
    112112                                        G = eval_G(y, a);
     
    114114                                        for(i = 0; i < Ny; i++)
    115115                                        {       dy = (G[i] + Gm[i]) * dt / 2;
    116                                                 fg[1+Ny+index+i] =
     116                                                fg[1+Ny+Index+i] =
    117117                                                        y[i] - ym[i] - dy;
    118118                                        }
  • trunk/cppad_ipopt/test/k_gt_one.cpp

    r1705 r1771  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    2626public:
    2727        // derived class part of constructor
    28         FG_K_gt_one(bool retape)
    29         : retape_ (retape)
     28        FG_K_gt_one(bool retape_in)
     29        : retape_ (retape_in)
    3030        { }
    3131        // Evaluation of the objective f(x), and constraints g(x)
  • trunk/cppad_ipopt/test/multiple_solution.cpp

    r1705 r1771  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    3333public:
    3434        // constructor
    35         FG_J_changes(bool retape)
    36         : retape_ (retape)
     35        FG_J_changes(bool retape_in)
     36        : retape_ (retape_in)
    3737        { }
    3838        size_t number_functions(void)
  • trunk/example/bender_quad.cpp

    r1643 r1771  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    9090                        size_t N = z_.size();
    9191
    92                         ADvector f(1);
    93                         f[0] = 0.;
     92                        ADvector F(1);
     93                        F[0] = 0.;
    9494
    9595                        AD<double> residual;
    9696                        for(i = 0; i < N; i++)
    9797                        {       residual = y[0] * sin( x[0] * t_[i] ) - z_[i];
    98                                 f[0]    += .5 * residual * residual;
     98                                F[0]    += .5 * residual * residual;
    9999                        }
    100                         return f;
     100                        return F;
    101101                }
    102102                // Fun.h(x, y) = H(x, y) = F_y (x, y)
     
    120120                        const BAvector &x ,
    121121                        const BAvector &y ,
    122                         const ADvector &h )
     122                        const ADvector &H )
    123123                {       size_t i;
    124124                        size_t N = z_.size();
    125125
    126                         ADvector dy(1);
     126                        ADvector Dy(1);
    127127                        AD<double> fyy = 0.;
    128128
     
    130130                        {       fyy += sin( x[0] * t_[i] ) * sin( x[0] * t_[i] );
    131131                        }
    132                         dy[0] = - h[0] / fyy;
    133 
    134                         return dy;
     132                        Dy[0] = - H[0] / fyy;
     133
     134                        return Dy;
    135135                }
    136136        };
  • trunk/example/ode_gear.cpp

    r1370 r1771  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-07 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    101101
    102102                        // define AD function object
    103                         ADFun<double> Fun(X, F);
     103                        ADFun<double> fun(X, F);
    104104
    105105                        // compute partial of f w.r.t x
     
    110110                        for(j = 0; j < n; j++)
    111111                        {       dx[j] = 1.;
    112                                 df = Fun.Forward(1, dx);
     112                                df = fun.Forward(1, dx);
    113113                                for(i = 0; i < n; i++)
    114114                                        f_x [i * n + j] = df[i];
  • trunk/example/ode_gear_control.cpp

    r1370 r1771  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-07 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    9595
    9696                        // define AD function object
    97                         ADFun<double> Fun(X, F);
     97                        ADFun<double> fun(X, F);
    9898
    9999                        // compute partial of f w.r.t x
     
    104104                        for(j = 0; j < n; j++)
    105105                        {       dx[j] = 1.;
    106                                 df = Fun.Forward(1, dx);
     106                                df = fun.Forward(1, dx);
    107107                                for(i = 0; i < n; i++)
    108108                                        f_x [i * n + j] = df[i];
  • trunk/example/rosen_34.cpp

    r1370 r1771  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-07 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    101101
    102102                        // define AD function object
    103                         ADFun<double> Fun(T, F);
     103                        ADFun<double> fun(T, F);
    104104
    105105                        // compute partial of f w.r.t t
    106106                        CPPAD_TEST_VECTOR<double> dt(1);
    107107                        dt[0] = 1.;
    108                         f_t = Fun.Forward(1, dt);
     108                        f_t = fun.Forward(1, dt);
    109109                }
    110110
     
    134134
    135135                        // define AD function object
    136                         ADFun<double> Fun(X, F);
     136                        ADFun<double> fun(X, F);
    137137
    138138                        // compute partial of f w.r.t x
     
    143143                        for(j = 0; j < n; j++)
    144144                        {       dx[j] = 1.;
    145                                 df = Fun.Forward(1, dx);
     145                                df = fun.Forward(1, dx);
    146146                                for(i = 0; i < n; i++)
    147147                                        f_x [i * n + j] = df[i];
  • trunk/example/test_one.sh.in

    r1638 r1771  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    4141cmd="g++ test_one.cpp $*
    4242        -o test_one.exe
    43         -g -Wall -ansi -pedantic-errors
     43        -g -Wall -ansi -pedantic-errors -Wshadow
    4444        -std=c++98 -DCPPAD_ADOLC_EXAMPLES
    4545        -I.. -I/usr/include/boost-1_33_1
  • trunk/makefile.am

    r1766 r1771  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    317317#
    318318pkgconfigdir = $(libdir)/pkgconfig
    319 pkgconfig_DATA = cppad.pc
     319pkgconfig_DATA = pkgconfig/cppad.pc
  • trunk/makefile.in

    r1768 r1771  
    247247# $Id$
    248248# -----------------------------------------------------------------------------
    249 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     249# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    250250#
    251251# CppAD is distributed under multiple licenses. This distribution is under
     
    522522#
    523523pkgconfigdir = $(libdir)/pkgconfig
    524 pkgconfig_DATA = cppad.pc
     524pkgconfig_DATA = pkgconfig/cppad.pc
    525525all: all-recursive
    526526
  • trunk/omh/whats_new_10.omh

    r1768 r1771  
    11$Id$
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    1313$begin whats_new_10$$
    1414$spell
     15        Wshadow
    1516        pkg-config
    1617        Dir
     
    5657Move most all CppAD development shell scripts to the $code bin$$
    5758subdirectory of the distribution directory.
     59$lnext
     60Fix warnings generated by the $code g++$$ compiler option $code -Wshadow$$;
     61for example,
     62$code
     63sparse_pack.hpp:101:2: warning: declaration of 'end' shadows a member of 'this'
     64$$
    5865$lend
    5966
  • trunk/speed/cppad/det_minor.cpp

    r1644 r1771  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    129129       
    130130                // create function object f : A -> detA
    131                 CppAD::ADFun<double> f;
    132131                f.Dependent(A, detA);
    133132
  • trunk/test_more/reverse.cpp

    r1659 r1771  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    2929
    3030        // compute sum and product of elements in U
    31         AD<double> sum  = 0.;
    32         AD<double> prod = 1.;
     31        AD<double> Sum  = 0.;
     32        AD<double> Prod = 1.;
    3333        size_t i;
    3434        for(i = 0; i < 3; i++)
    35         {       sum  += U[i];
    36                 prod *= U[i];
     35        {       Sum  += U[i];
     36                Prod *= U[i];
    3737        }
    3838
    3939        // dependent variable vector
    4040        CPPAD_TEST_VECTOR< AD<double> > V(2);
    41         V[0] = sum;
    42         V[1] = prod;
     41        V[0] = Sum;
     42        V[1] = Prod;
    4343
    4444        // V = f(U)
  • trunk/test_more/test_one.sh.in

    r1717 r1771  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    3636cmd="g++ test_one.cpp $*
    3737        -o test_one.exe
    38         -g -Wall -ansi -pedantic-errors
     38        -g -Wall -ansi -pedantic-errors -Wshadow
    3939        -std=c++98 -DCPPAD_ADOLC_TEST
    4040        -I.. -I/usr/include/boost-1_33_1
Note: See TracChangeset for help on using the changeset viewer.