Codebase list adolc / e574413
Imported Upstream version 2.1.5 Barak A. Pearlmutter 14 years ago
4 changed file(s) with 17 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
00 /*----------------------------------------------------------------------------
11 ADOL-C -- Automatic Differentiation by Overloading in C++
22 File: fo_rev.c
3 Revision: $Id: fo_rev.c 91 2010-02-24 07:56:58Z awalther $
3 Revision: $Id: fo_rev.c 98 2010-03-05 12:17:17Z awalther $
44 Contents: Contains the routines :
55 fos_reverse (first-order-scalar reverse mode) : define _FOS_
66 fov_reverse (first-order-vector reverse mode) : define _FOV_
405405 /*--------------------------------------------------------------------------*/
406406 #else
407407 #if defined _FOV_ /* FOV */
408 rpp_A = (revreal**)malloc(ADOLC_CURRENT_TAPE_INFOS.stats[NUM_MAX_LIVES] *
409 sizeof(revreal*));
410 if (rpp_A == NULL) fail(ADOLC_MALLOC_FAILED);
408411 Aqo = (revreal*)malloc(ADOLC_CURRENT_TAPE_INFOS.stats[NUM_MAX_LIVES] * p *
409412 sizeof(revreal));
410413 if (Aqo == NULL) fail(ADOLC_MALLOC_FAILED);
73897389
73907390 AC_DEFUN([LT_AC_PROG_GCJ],
73917391 [AC_CHECK_TOOL(GCJ, gcj, no)
7392 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7392 test "x${GCJFLAGS+set}" = xset || GCJFLAGS=" "
73937393 AC_SUBST(GCJFLAGS)
73947394 ])
73957395
30013001 CXXFLAGS=$ac_save_CXXFLAGS
30023002 elif test $ac_cv_prog_cxx_g = yes; then
30033003 if test "$GXX" = yes; then
3004 CXXFLAGS="-g -O2"
3004 CXXFLAGS=" "
30053005 else
3006 CXXFLAGS="-g"
3006 CXXFLAGS=" "
30073007 fi
30083008 else
30093009 if test "$GXX" = yes; then
3010 CXXFLAGS="-O2"
3010 CXXFLAGS=" "
30113011 else
30123012 CXXFLAGS=
30133013 fi
37293729 CFLAGS=$ac_save_CFLAGS
37303730 elif test $ac_cv_prog_cc_g = yes; then
37313731 if test "$GCC" = yes; then
3732 CFLAGS="-g -O2"
3732 CFLAGS=" "
37333733 else
3734 CFLAGS="-g"
3734 CFLAGS=" "
37353735 fi
37363736 else
37373737 if test "$GCC" = yes; then
3738 CFLAGS="-O2"
3738 CFLAGS=" "
37393739 else
37403740 CFLAGS=
37413741 fi
65536553 FFLAGS=$ac_save_FFLAGS
65546554 elif test $ac_cv_prog_f77_g = yes; then
65556555 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6556 FFLAGS="-g -O2"
6556 FFLAGS=" "
65576557 else
6558 FFLAGS="-g"
6558 FFLAGS=" "
65596559 fi
65606560 else
65616561 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6562 FFLAGS="-O2"
6562 FFLAGS=" "
65636563 else
65646564 FFLAGS=
65656565 fi
00 ##############################################################################
11 # configure.ac -- Process this file with autoconf to produce configure
2 # Revision: $Id: configure.ac 91 2010-02-24 07:56:58Z awalther $
2 # Revision: $Id: configure.ac 98 2010-03-05 12:17:17Z awalther $
33 #
44 # Copyright (C) Andrea Walther, Andreas Kowarz
55 #
88 ##############################################################################
99 define([ADOLC_VER], [2])
1010 define([ADOLC_SUB], [1])
11 define([ADOLC_LVL], [3])
11 define([ADOLC_LVL], [5])
1212
1313 AC_PREREQ(2.57)
1414 AC_INIT(adolc,
1515 ADOLC_VER.ADOLC_SUB.ADOLC_LVL-trunk,
1616 [adol-c@list.coin-or.org])
17 AC_REVISION($Revision: 91 $)
17 AC_REVISION($Revision: 98 $)
1818 AC_CONFIG_SRCDIR([ADOL-C/src/adolc.h])
1919 AC_CONFIG_AUX_DIR(autoconf)
2020 AC_CONFIG_HEADERS([ADOL-C/src/config.h])