Changeset 1639


Ignore:
Timestamp:
Jan 31, 2010 8:02:53 AM (10 years ago)
Author:
bradbell
Message:

/home/bradbell/cppad/trunk: Fix some problems in implementation of pycppad.

ad_fun.hpp: boost::python references copy constuctor, but does not use it.
abort_recording.hpp. metion case where no tape is active.
independent.hpp: mentiond abort recording as a solution to error case.
*/makefile.in: change comment about version of correspondng makefile.am.

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/cppad/local/abort_recording.hpp

    r1369 r1639  
    44
    55/* --------------------------------------------------------------------------
    6 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 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
     
    1616$begin abort_recording$$
    1717$spell
    18 $$
    19 
    20 $spell
    2118$$
    2219
     
    3936%$$
    4037If such a recording is currently in progress,
    41 this operation will stop the recording and delete the
     38$code abort_recording$$ will stop the recording and delete the
    4239corresponding information.
     40Otherwise, $code abort_recording$$ has no effect.
    4341
    4442$children%
  • trunk/cppad/local/ad_fun.hpp

    r1614 r1639  
    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
     
    119119// Private member functions
    120120
    121 # ifdef NDEBUG
    122         // disable use of the copy constructor
    123         // private if NDEBUG is defined, and public otherwise
    124         inline ADFun(const ADFun &f)
    125         {       CPPAD_ASSERT_UNKNOWN(false); }
    126 # endif
    127 
    128121        /// change the operation sequence corresponding to this object
    129122        template <typename ADvector>
     
    229222// ------------------------------------------------------------
    230223public:
    231 # ifndef NDEBUG
    232224        /// copy constructor
    233         // priviate if NDEBUG is defined, and public otherwise
    234225        ADFun(const ADFun& g)
    235226        : total_num_var_(0), taylor_(CPPAD_NULL)
    236         {       CPPAD_ASSERT_KNOWN(
    237                 false,
     227        {       CppAD::ErrorHandler::Call(
     228                true,
     229                __LINE__,
     230                __FILE__,
     231                "ADFun(const ADFun& g)",
    238232                "Attempting to use the ADFun<Base> copy constructor.\n"
    239233                "Perhaps you are passing an ADFun<Base> object "
     
    241235                );
    242236         }
    243 # endif
     237
    244238        /// default constructor
    245239        ADFun(void);
  • trunk/cppad/local/independent.hpp

    r1588 r1639  
    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
     
    167167        CPPAD_ASSERT_KNOWN(
    168168                ADBase::tape_ptr() == CPPAD_NULL,
    169                 "Independent: cannot create a new tape because"
    170                 "\na previous tape is still active (for this thread)."
     169                "Independent: cannot create a new tape because\n"
     170                "a previous tape is still active (for this thread).\n"
     171                "AD<Base>::abort_recording() would abort this previous recording."
    171172        );
    172173        size_t id = ADBase::tape_new();
  • trunk/speed/adolc/makefile.in

    r1630 r1639  
    8787CYGPATH_W = @CYGPATH_W@
    8888
    89 # $Id: makefile.am 1611 2009-12-20 15:50:31Z bradbell $
     89# $Id: makefile.am 1638 2010-01-28 16:40:58Z bradbell $
    9090# -----------------------------------------------------------------------------
    91 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
     91# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
    9292#
    9393# CppAD is distributed under multiple licenses. This distribution is under
  • trunk/speed/cppad/makefile.in

    r1630 r1639  
    8686CYGPATH_W = @CYGPATH_W@
    8787
    88 # $Id: makefile.am 1611 2009-12-20 15:50:31Z bradbell $
     88# $Id: makefile.am 1638 2010-01-28 16:40:58Z bradbell $
    8989# -----------------------------------------------------------------------------
    90 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
     90# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
    9191#
    9292# CppAD is distributed under multiple licenses. This distribution is under
  • trunk/speed/double/makefile.in

    r1630 r1639  
    8686CYGPATH_W = @CYGPATH_W@
    8787
    88 # $Id: makefile.am 1611 2009-12-20 15:50:31Z bradbell $
     88# $Id: makefile.am 1638 2010-01-28 16:40:58Z bradbell $
    8989# -----------------------------------------------------------------------------
    90 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
     90# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
    9191#
    9292# CppAD is distributed under multiple licenses. This distribution is under
  • trunk/speed/fadbad/makefile.in

    r1630 r1639  
    8686CYGPATH_W = @CYGPATH_W@
    8787
    88 # $Id: makefile.am 1611 2009-12-20 15:50:31Z bradbell $
     88# $Id: makefile.am 1638 2010-01-28 16:40:58Z bradbell $
    8989# -----------------------------------------------------------------------------
    90 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
     90# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
    9191#
    9292# CppAD is distributed under multiple licenses. This distribution is under
  • trunk/speed/profile/makefile.in

    r1630 r1639  
    8686CYGPATH_W = @CYGPATH_W@
    8787
    88 # $Id: makefile.am 1611 2009-12-20 15:50:31Z bradbell $
     88# $Id: makefile.am 1638 2010-01-28 16:40:58Z bradbell $
    8989# -----------------------------------------------------------------------------
    90 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
     90# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
    9191#
    9292# CppAD is distributed under multiple licenses. This distribution is under
  • trunk/speed/sacado/makefile.in

    r1630 r1639  
    8787CYGPATH_W = @CYGPATH_W@
    8888
    89 # $Id: makefile.am 1611 2009-12-20 15:50:31Z bradbell $
     89# $Id: makefile.am 1638 2010-01-28 16:40:58Z bradbell $
    9090# -----------------------------------------------------------------------------
    91 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-09 Bradley M. Bell
     91# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
    9292#
    9393# CppAD is distributed under multiple licenses. This distribution is under
Note: See TracChangeset for help on using the changeset viewer.