Changeset 13080


Ignore:
Timestamp:
08/17/12 12:50:53 (13 years ago)
Author:
Eric.Larour
Message:

CHG: need ADOLC_VERSION for compile with old versions of adolc or new dvpt versions.
Also shielded tape_stats routine using the new ADOLC_VERSION version number.

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/m4/issm_options.m4

    r13056 r13080  
    474474        AC_MSG_RESULT($HAVE_ADOLC)
    475475        dnl }}}
     476        dnl adolc-version{{{
     477        AC_ARG_WITH([adolc-version],
     478                AS_HELP_STRING([--with-adolc-version=number], [adolc version.]),
     479                [ADOLC_VERSION=$withval],[ADOLC_VERSION=2])
     480        AC_MSG_CHECKING(for adolc-version)
     481
     482        AC_DEFINE_UNQUOTED([_ADOLC_VERSION_],$ADOLC_VERSION,[ADOLC version])
     483        AC_MSG_RESULT($ADOLC_VERSION)
     484        dnl }}}
    476485        dnl adic2{{{
    477486        AC_ARG_WITH([adic2-dir],
  • issm/trunk-jpl/src/c/solutions/issm.cpp

    r13073 r13080  
    1515
    1616        /*AD: */
    17         int   tape_stats[11];
     17        #if _ADOLC_VERSION_ == 2
     18        int      tape_stats[11];
     19        #else
     20        size_t   tape_stats[11];
     21        #endif
    1822
    1923        /*FemModel: */
Note: See TracChangeset for help on using the changeset viewer.