Ignore:
Timestamp:
Nov 30, 2015 7:03:07 AM (4 years ago)
Author:
bradbell
Message:

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: af6d293b6d7c5f0e00b361108403b4200215a7a7
end hash code: aec9ede58726ce1a40825eac63d4d8f7cb40bfba

commit aec9ede58726ce1a40825eac63d4d8f7cb40bfba
Author: Brad Bell <bradbell@…>
Date: Sun Nov 29 21:24:17 2015 -0800

Move omh/libaray to omh/utility becasue it corresponds to cppad/utility.

commit 17b6e02f29dcc2a1ab2d2e6980a979374e73e19e
Author: Brad Bell <bradbell@…>
Date: Sun Nov 29 19:03:22 2015 -0800

Batch edit the entire souce directory using the script

bin/batch_edit.sh

  1. With a few exceptions, move cppad/*.hpp to cppad/utility/*.hpp
  2. Change include gaurd from CPPAD_<NAME>_INCLUDED to CPPAD_<NAME>_HPP
  3. Make the source code control $Id$ commands more uniform.
  4. Remove invisible white space
  5. Create utility.hpp (includes entire utilty directory)

commit 4a8fbe249f97116cac86583a7d9bf596dbb06473
Author: Brad Bell <bradbell@…>
Date: Sun Nov 29 18:12:50 2015 -0800

new version that passes bin/check_all.sh

commit f041069fe3e24d68133f829353f7200cf2c299ed
Author: Brad Bell <bradbell@…>
Date: Sun Nov 29 14:27:08 2015 -0800

pases bin/check_all.sh

commit 32ac61696305b7625938d4c488203cdcc19f36dc
Author: Brad Bell <bradbell@…>
Date: Sun Nov 29 06:13:56 2015 -0800

passed bin/check_all.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/track_new_del.cpp

    r2794 r3757  
    1 /* $Id$ */
     1// $Id$
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
    6 the terms of the 
     6the terms of the
    77                    Eclipse Public License Version 1.0.
    88
     
    1515
    1616$section Tracking Use of New and Delete: Example and Test$$
     17$mindex delete$$
    1718
    18 $index new, example$$
    19 $index example, new$$
    20 $index test, new$$
    2119
    22 $index delete, example$$
    23 $index example, delete$$
    24 $index test, delete$$
    2520
    2621$code
     
    3227// BEGIN C++
    3328
    34 # include <cppad/track_new_del.hpp>
     29# include <cppad/utility/track_new_del.hpp>
    3530
    3631bool track_new_del(void)
     
    5449        newlen = 10;
    5550        ptr    = CPPAD_TRACK_EXTEND(newlen, ncopy, ptr);
    56                
     51
    5752        // copy data into the new part of the array
    5853        for(i = ncopy; i < newlen; i++)
     
    6055
    6156        // check the values in the array
    62         for(i = 0; i < newlen; i++)
     57        for(i = 0; i < newlen; i++)
    6358                ok &= (ptr[i] == double(i));
    6459
Note: See TracChangeset for help on using the changeset viewer.