Codebase list cppad / ab2da54
master: completely remove cppad_deprecated (not used for years). check_all.sh: echo random number choices. check_define.sh: overwrite old temporary files if this exist. check_tempfile.sh: ignore junk files. command_line_arg.cmake: remove extra variable that is no longer used. CMakeLists.txt: request bug report if error occurs. eigen_prefix.omh: remove extra text after sentence (how did it get there ?). Brad Bell 4 years ago
48 changed file(s) with 22 addition(s) and 86 deletion(s). Raw diff Collapse all Expand all
187187 "debug_even, debug_odd, debug_all, or debug_none"
188188 )
189189 assert_value_in_set(cppad_debug_which debug_even debug_odd debug_all debug_none)
190 #
190191 # cppad_deprecated
191192 IF( cppad_deprecated )
192 MESSAGE(FATAL_ERROR "cppad_deprecated has been removed" )
193 MESSAGE(FATAL_ERROR "cppad_deprecated has been removed from cmake comamnd" )
193194 ENDIF( cppad_deprecated )
194195 # =============================================================================
195196 # cppad_lib
376377 IF ( cmake_install_docdir )
377378 INSTALL( DIRECTORY "doc/" DESTINATION ${cppad_abs_docdir}/cppad )
378379 ENDIF ( cmake_install_docdir )
379 #
380 IF( ${cppad_deprecated} )
381 STRING( TOLOWER "${cppad_deprecated}" temp )
382 IF( "${temp}" STREQUAL "yes" )
383 MESSAGE(FATAL_ERROR
384 "cppad_deprecated = YES has been removed; see whats_new 2017-02-10."
385 )
386 ENDIF( "${temp}" STREQUAL "yes" )
387 MESSAGE(FATAL_ERROR
388 "cppad_deprecated = ${cppad_deprecated} not a valid choice"
389 )
390 ENDIF( ${cppad_deprecated} )
8080 random_01() {
8181 set +e
8282 eval random_01_$1="`expr $RANDOM % 2`"
83 eval echo "random_01_$1=\$random_01_$1"
8384 set -e
8485 }
8586 # -----------------------------------------------------------------------------
1414 echo 'bin/check_define.sh: must be executed from its parent directory'
1515 exit 1
1616 fi
17 for temp_file in check_define.1 check_define.2 check_define.3
18 do
19 if [ -e $temp_file ]
20 then
21 echo "bin/check_define.sh: $temp_file exists"
22 exit 0
23 fi
24 done
2517 # -----------------------------------------------------------------------------
2618 echo 'Check '# define' versus '# undef' names and check for addon names'
2719 echo '-----------------------------------------------------------------------'
00 #! /bin/bash -e
11 # -----------------------------------------------------------------------------
2 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-18 Bradley M. Bell
2 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-19 Bradley M. Bell
33 #
44 # CppAD is distributed under the terms of the
55 # Eclipse Public License Version 2.0.
1515 exit 1
1616 fi
1717 # -----------------------------------------------------------------------------
18 list=`ls | sed -n -e '/^new.[0-9]*$/d' -e '/\.[0-9]*$/p'`
18 list=`ls | sed -n \
19 -e '/^new.[0-9]*$/d' \
20 -e '/^junk.[0-9]*$/d' \
21 -e '/\/junk.[0-9]*$/d' \
22 -e '/\.[0-9]*$/p'`
1923 if [ "$list" != '' ]
2024 then
2125 echo 'Use following command to remove temporary files:'
00 # -----------------------------------------------------------------------------
1 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 Bradley M. Bell
1 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-19 Bradley M. Bell
22 #
33 # CppAD is distributed under the terms of the
44 # Eclipse Public License Version 2.0.
1414 # is the variable we are setting to its default value.
1515 # The varaiable can be changed on the cmake command line (or in the camke gui).
1616 # The final value of the variable is printed with the cmake output.
17 #
18 # variable_01: (out)
19 # This value has value 1, if variable is true, and 0 otherwise.
2017 #
2118 # default: (in)
2219 # is the default value for this variable; i.e.,
4340 SET(${variable} "${default}" CACHE ${type} "${description}")
4441 MESSAGE(STATUS "${variable} = ${${variable}}")
4542 #
46 # convert BOOL variables to 0/1
47 IF( ${variable} )
48 SET( ${variable}_01 1)
49 ELSE( ${variable} )
50 SET( ${variable}_01 0)
51 ENDIF( ${variable} )
5243 ENDMACRO( command_line_arg )
634634 cppad_has_tmpnam_s
635635 cppad_has_mkstemp
636636 cppad_has_colpack
637 cppad_deprecated_01
638637 cppad_cxx_flags
639638 CppAD_HAVE_AR_FALSE
640639 CppAD_HAVE_AR_TRUE
57205719
57215720 cppad_cxx_flags=""
57225721
5723 cppad_deprecated_01=0
5724
57255722 cppad_has_colpack=0
57265723
57275724 cppad_has_mkstemp=0
371371 dnl -------------------------------------------------------------------------
372372 dnl Setting that cmake finds but autotools not kept up to date on
373373 AC_SUBST(cppad_cxx_flags, "")
374 AC_SUBST(cppad_deprecated_01, 0)
375374 AC_SUBST(cppad_has_colpack, 0)
376375 AC_SUBST(cppad_has_mkstemp, 0)
377376 AC_SUBST(cppad_has_tmpnam_s, 0)
291291 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
292292 cppad_cppadvector = @cppad_cppadvector@
293293 cppad_cxx_flags = @cppad_cxx_flags@
294 cppad_deprecated_01 = @cppad_deprecated_01@
295294 cppad_description = @cppad_description@
296295 cppad_eigenvector = @cppad_eigenvector@
297296 cppad_has_adolc = @cppad_has_adolc@
295295 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
296296 cppad_cppadvector = @cppad_cppadvector@
297297 cppad_cxx_flags = @cppad_cxx_flags@
298 cppad_deprecated_01 = @cppad_deprecated_01@
299298 cppad_description = @cppad_description@
300299 cppad_eigenvector = @cppad_eigenvector@
301300 cppad_has_adolc = @cppad_has_adolc@
328328 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
329329 cppad_cppadvector = @cppad_cppadvector@
330330 cppad_cxx_flags = @cppad_cxx_flags@
331 cppad_deprecated_01 = @cppad_deprecated_01@
332331 cppad_description = @cppad_description@
333332 cppad_eigenvector = @cppad_eigenvector@
334333 cppad_has_adolc = @cppad_has_adolc@
279279 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
280280 cppad_cppadvector = @cppad_cppadvector@
281281 cppad_cxx_flags = @cppad_cxx_flags@
282 cppad_deprecated_01 = @cppad_deprecated_01@
283282 cppad_description = @cppad_description@
284283 cppad_eigenvector = @cppad_eigenvector@
285284 cppad_has_adolc = @cppad_has_adolc@
310310 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
311311 cppad_cppadvector = @cppad_cppadvector@
312312 cppad_cxx_flags = @cppad_cxx_flags@
313 cppad_deprecated_01 = @cppad_deprecated_01@
314313 cppad_description = @cppad_description@
315314 cppad_eigenvector = @cppad_eigenvector@
316315 cppad_has_adolc = @cppad_has_adolc@
293293 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
294294 cppad_cppadvector = @cppad_cppadvector@
295295 cppad_cxx_flags = @cppad_cxx_flags@
296 cppad_deprecated_01 = @cppad_deprecated_01@
297296 cppad_description = @cppad_description@
298297 cppad_eigenvector = @cppad_eigenvector@
299298 cppad_has_adolc = @cppad_has_adolc@
281281 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
282282 cppad_cppadvector = @cppad_cppadvector@
283283 cppad_cxx_flags = @cppad_cxx_flags@
284 cppad_deprecated_01 = @cppad_deprecated_01@
285284 cppad_description = @cppad_description@
286285 cppad_eigenvector = @cppad_eigenvector@
287286 cppad_has_adolc = @cppad_has_adolc@
278278 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
279279 cppad_cppadvector = @cppad_cppadvector@
280280 cppad_cxx_flags = @cppad_cxx_flags@
281 cppad_deprecated_01 = @cppad_deprecated_01@
282281 cppad_description = @cppad_description@
283282 cppad_eigenvector = @cppad_eigenvector@
284283 cppad_has_adolc = @cppad_has_adolc@
276276 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
277277 cppad_cppadvector = @cppad_cppadvector@
278278 cppad_cxx_flags = @cppad_cxx_flags@
279 cppad_deprecated_01 = @cppad_deprecated_01@
280279 cppad_description = @cppad_description@
281280 cppad_eigenvector = @cppad_eigenvector@
282281 cppad_has_adolc = @cppad_has_adolc@
409409 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
410410 cppad_cppadvector = @cppad_cppadvector@
411411 cppad_cxx_flags = @cppad_cxx_flags@
412 cppad_deprecated_01 = @cppad_deprecated_01@
413412 cppad_description = @cppad_description@
414413 cppad_eigenvector = @cppad_eigenvector@
415414 cppad_has_adolc = @cppad_has_adolc@
272272 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
273273 cppad_cppadvector = @cppad_cppadvector@
274274 cppad_cxx_flags = @cppad_cxx_flags@
275 cppad_deprecated_01 = @cppad_deprecated_01@
276275 cppad_description = @cppad_description@
277276 cppad_eigenvector = @cppad_eigenvector@
278277 cppad_has_adolc = @cppad_has_adolc@
278278 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
279279 cppad_cppadvector = @cppad_cppadvector@
280280 cppad_cxx_flags = @cppad_cxx_flags@
281 cppad_deprecated_01 = @cppad_deprecated_01@
282281 cppad_description = @cppad_description@
283282 cppad_eigenvector = @cppad_eigenvector@
284283 cppad_has_adolc = @cppad_has_adolc@
328328 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
329329 cppad_cppadvector = @cppad_cppadvector@
330330 cppad_cxx_flags = @cppad_cxx_flags@
331 cppad_deprecated_01 = @cppad_deprecated_01@
332331 cppad_description = @cppad_description@
333332 cppad_eigenvector = @cppad_eigenvector@
334333 cppad_has_adolc = @cppad_has_adolc@
279279 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
280280 cppad_cppadvector = @cppad_cppadvector@
281281 cppad_cxx_flags = @cppad_cxx_flags@
282 cppad_deprecated_01 = @cppad_deprecated_01@
283282 cppad_description = @cppad_description@
284283 cppad_eigenvector = @cppad_eigenvector@
285284 cppad_has_adolc = @cppad_has_adolc@
271271 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
272272 cppad_cppadvector = @cppad_cppadvector@
273273 cppad_cxx_flags = @cppad_cxx_flags@
274 cppad_deprecated_01 = @cppad_deprecated_01@
275274 cppad_description = @cppad_description@
276275 cppad_eigenvector = @cppad_eigenvector@
277276 cppad_has_adolc = @cppad_has_adolc@
312312 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
313313 cppad_cppadvector = @cppad_cppadvector@
314314 cppad_cxx_flags = @cppad_cxx_flags@
315 cppad_deprecated_01 = @cppad_deprecated_01@
316315 cppad_description = @cppad_description@
317316 cppad_eigenvector = @cppad_eigenvector@
318317 cppad_has_adolc = @cppad_has_adolc@
293293 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
294294 cppad_cppadvector = @cppad_cppadvector@
295295 cppad_cxx_flags = @cppad_cxx_flags@
296 cppad_deprecated_01 = @cppad_deprecated_01@
297296 cppad_description = @cppad_description@
298297 cppad_eigenvector = @cppad_eigenvector@
299298 cppad_has_adolc = @cppad_has_adolc@
00 # -----------------------------------------------------------------------------
1 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-18 Bradley M. Bell
1 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-19 Bradley M. Bell
22 #
33 # CppAD is distributed under the terms of the
44 # Eclipse Public License Version 2.0.
5353 IF( NOT cppad_stdvector )
5454 MESSAGE(FATAL_ERROR
5555 "cppad_testvector not one of following: boost, cppad, eigen, std."
56 "This should have been found earlier, please report this as a bug."
5657 )
5758 ENDIF( NOT cppad_stdvector )
5859 ENDIF( NOT cppad_eigenvector )
265265 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
266266 cppad_cppadvector = @cppad_cppadvector@
267267 cppad_cxx_flags = @cppad_cxx_flags@
268 cppad_deprecated_01 = @cppad_deprecated_01@
269268 cppad_description = @cppad_description@
270269 cppad_eigenvector = @cppad_eigenvector@
271270 cppad_has_adolc = @cppad_has_adolc@
296296 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
297297 cppad_cppadvector = @cppad_cppadvector@
298298 cppad_cxx_flags = @cppad_cxx_flags@
299 cppad_deprecated_01 = @cppad_deprecated_01@
300299 cppad_description = @cppad_description@
301300 cppad_eigenvector = @cppad_eigenvector@
302301 cppad_has_adolc = @cppad_has_adolc@
346346 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
347347 cppad_cppadvector = @cppad_cppadvector@
348348 cppad_cxx_flags = @cppad_cxx_flags@
349 cppad_deprecated_01 = @cppad_deprecated_01@
350349 cppad_description = @cppad_description@
351350 cppad_eigenvector = @cppad_eigenvector@
352351 cppad_has_adolc = @cppad_has_adolc@
00 /* --------------------------------------------------------------------------
1 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-18 Bradley M. Bell
1 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-19 Bradley M. Bell
22
33 CppAD is distributed under the terms of the
44 Eclipse Public License Version 2.0.
101101 AD<%Base%>( %y% )
102102 %$$
103103 A deprecated alternative is to make this constructor implicit using the
104 $cref/cppad_deprecated/cmake/cppad_deprecated/$$
104 cmake $code cppad_deprecated$$
105105 option during the install procedure.
106106
107107 $head 12-26$$
00 /* --------------------------------------------------------------------------
1 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-18 Bradley M. Bell
1 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-19 Bradley M. Bell
22
33 CppAD is distributed under the terms of the
44 Eclipse Public License Version 2.0.
9292 Fix $code cmake$$ setting
9393 $code cppad_implicit_ctor_from_any_type$$
9494 Note that this cmake option has since been replaced by
95 $cref/cppad_deprecated/cmake/cppad_deprecated/$$.
95 $code cppad_deprecated$$ option.
9696 $lnext
9797 The $code clang++$$ compiler was optimizing out the calculations
9898 in the $cref time_test.cpp$$ and $cref speed_test.cpp$$ examples.
154154 $cref/cppad_postfix/cmake/cppad_postfix/$$.
155155 $lnext
156156 Change $code cppad_implicit_ctor_from_any_type$$ to
157 $cref/cppad_deprecated/cmake/cppad_deprecated/$$ and
157 the cmake $code cppad_deprecated$$ option and
158158 change its specifications to refer to all deprecated features.
159159 $lend
160160
546546 $head 02-10$$
547547 $list number$$
548548 The subset of deprecated features corresponding to
549 $cref/cppad_deprecated=YES/cmake/cppad_deprecated/$$
549 the cmake command option $code cppad_deprecated=YES$$
550550 have been completely removed.
551551 $lnext
552552 Fix problems with $cref autotools$$ build
4646
4747 $section Changes and Additions to CppAD During 2019$$
4848
49 $head 09-23$$
50 The $code cppad_deprecated$$ option has been completely removed from the
51 cmake command $cref/options/cmake/CMake Command/Options/$$ documentation.
52
4953 $head 09-18$$
5054 Merge in changes from json branch which implement the
5155 $cref/compare operators/json_op_define/Compare Operators/$$.
129129 \
130130 -D cppad_cxx_flags=%cppad_cxx_flags% \
131131 -D cppad_profile_flag=%cppad_profile_flag% \
132 \
133132 -D cppad_testvector=%cppad_testvector% \
134133 -D cppad_max_num_threads=%cppad_max_num_threads% \
135134 -D cppad_tape_id_type=%cppad_tape_id_type% \
136135 -D cppad_tape_addr_type=%cppad_tape_addr_type% \
137136 -D cppad_debug_which=%cppad_debug_which% \
138 -D cppad_deprecated=%cppad_deprecated% \
139137 \
140138 ..
141139 %$$
478476 If $icode cppad_debug_which$$ does not appear on the command line,
479477 the default value $code debug_all$$ is used.
480478
481 $head cppad_deprecated$$
482 The default value for $icode cppad_deprecated$$ is $code NO$$
483 (the value $code YES$$ is not currently being used).
484
485479 $children%
486480 omh/install/adolc_prefix.omh%
487481 omh/install/colpack_prefix.omh%
6363 $code eigen_array$$ and $code eigen_det$$
6464 have passed their correctness check.
6565
66 options to this program.
67
6866 $head Test Vector$$
6967 If you have specified $icode eigen_prefix$$ you can choose
7068 $codei%
8381 $code build/prefix$$.
8482
8583
86
8784 $end
278278 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
279279 cppad_cppadvector = @cppad_cppadvector@
280280 cppad_cxx_flags = @cppad_cxx_flags@
281 cppad_deprecated_01 = @cppad_deprecated_01@
282281 cppad_description = @cppad_description@
283282 cppad_eigenvector = @cppad_eigenvector@
284283 cppad_has_adolc = @cppad_has_adolc@
265265 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
266266 cppad_cppadvector = @cppad_cppadvector@
267267 cppad_cxx_flags = @cppad_cxx_flags@
268 cppad_deprecated_01 = @cppad_deprecated_01@
269268 cppad_description = @cppad_description@
270269 cppad_eigenvector = @cppad_eigenvector@
271270 cppad_has_adolc = @cppad_has_adolc@
265265 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
266266 cppad_cppadvector = @cppad_cppadvector@
267267 cppad_cxx_flags = @cppad_cxx_flags@
268 cppad_deprecated_01 = @cppad_deprecated_01@
269268 cppad_description = @cppad_description@
270269 cppad_eigenvector = @cppad_eigenvector@
271270 cppad_has_adolc = @cppad_has_adolc@
287287 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
288288 cppad_cppadvector = @cppad_cppadvector@
289289 cppad_cxx_flags = @cppad_cxx_flags@
290 cppad_deprecated_01 = @cppad_deprecated_01@
291290 cppad_description = @cppad_description@
292291 cppad_eigenvector = @cppad_eigenvector@
293292 cppad_has_adolc = @cppad_has_adolc@
266266 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
267267 cppad_cppadvector = @cppad_cppadvector@
268268 cppad_cxx_flags = @cppad_cxx_flags@
269 cppad_deprecated_01 = @cppad_deprecated_01@
270269 cppad_description = @cppad_description@
271270 cppad_eigenvector = @cppad_eigenvector@
272271 cppad_has_adolc = @cppad_has_adolc@
285285 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
286286 cppad_cppadvector = @cppad_cppadvector@
287287 cppad_cxx_flags = @cppad_cxx_flags@
288 cppad_deprecated_01 = @cppad_deprecated_01@
289288 cppad_description = @cppad_description@
290289 cppad_eigenvector = @cppad_eigenvector@
291290 cppad_has_adolc = @cppad_has_adolc@
266266 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
267267 cppad_cppadvector = @cppad_cppadvector@
268268 cppad_cxx_flags = @cppad_cxx_flags@
269 cppad_deprecated_01 = @cppad_deprecated_01@
270269 cppad_description = @cppad_description@
271270 cppad_eigenvector = @cppad_eigenvector@
272271 cppad_has_adolc = @cppad_has_adolc@
286286 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
287287 cppad_cppadvector = @cppad_cppadvector@
288288 cppad_cxx_flags = @cppad_cxx_flags@
289 cppad_deprecated_01 = @cppad_deprecated_01@
290289 cppad_description = @cppad_description@
291290 cppad_eigenvector = @cppad_eigenvector@
292291 cppad_has_adolc = @cppad_has_adolc@
275275 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
276276 cppad_cppadvector = @cppad_cppadvector@
277277 cppad_cxx_flags = @cppad_cxx_flags@
278 cppad_deprecated_01 = @cppad_deprecated_01@
279278 cppad_description = @cppad_description@
280279 cppad_eigenvector = @cppad_eigenvector@
281280 cppad_has_adolc = @cppad_has_adolc@
285285 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
286286 cppad_cppadvector = @cppad_cppadvector@
287287 cppad_cxx_flags = @cppad_cxx_flags@
288 cppad_deprecated_01 = @cppad_deprecated_01@
289288 cppad_description = @cppad_description@
290289 cppad_eigenvector = @cppad_eigenvector@
291290 cppad_has_adolc = @cppad_has_adolc@
274274 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
275275 cppad_cppadvector = @cppad_cppadvector@
276276 cppad_cxx_flags = @cppad_cxx_flags@
277 cppad_deprecated_01 = @cppad_deprecated_01@
278277 cppad_description = @cppad_description@
279278 cppad_eigenvector = @cppad_eigenvector@
280279 cppad_has_adolc = @cppad_has_adolc@
290290 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
291291 cppad_cppadvector = @cppad_cppadvector@
292292 cppad_cxx_flags = @cppad_cxx_flags@
293 cppad_deprecated_01 = @cppad_deprecated_01@
294293 cppad_description = @cppad_description@
295294 cppad_eigenvector = @cppad_eigenvector@
296295 cppad_has_adolc = @cppad_has_adolc@
415415 cppad_cplusplus_201100_ok = @cppad_cplusplus_201100_ok@
416416 cppad_cppadvector = @cppad_cppadvector@
417417 cppad_cxx_flags = @cppad_cxx_flags@
418 cppad_deprecated_01 = @cppad_deprecated_01@
419418 cppad_description = @cppad_description@
420419 cppad_eigenvector = @cppad_eigenvector@
421420 cppad_has_adolc = @cppad_has_adolc@