Changeset 447


Ignore:
Timestamp:
Jan 11, 2014 1:51:26 PM (7 years ago)
Author:
kulshres
Message:

Revert "make sure to overwrite the second output in {a,}{sin,cos}{,h}"

This reverts commit fc3c83e63e5275b60a29e5d8fe8c8b085e1d2cad.

we really need to save the final state when we stop tracing. overwriting
is not always guarenteed.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/src/adouble.cpp

    r445 r447  
    12611261    ADOLC_GLOBAL_TAPE_VARS.store[y.loc()] =
    12621262        ADOLC_MATH_NSP::cos(ADOLC_GLOBAL_TAPE_VARS.store[x.loc()]);
    1263     y = 0;
    12641263    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    12651264    return locat;
     
    12921291    ADOLC_GLOBAL_TAPE_VARS.store[y.loc()] =
    12931292        ADOLC_MATH_NSP::sin(ADOLC_GLOBAL_TAPE_VARS.store[x.loc()]);
    1294     y = 0;
    12951293    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    12961294    return locat;
     
    13251323    ADOLC_GLOBAL_TAPE_VARS.store[locat] =
    13261324        ADOLC_MATH_NSP::asin(ADOLC_GLOBAL_TAPE_VARS.store[x.loc()]);
    1327     y = 0;
    13281325    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    13291326    return locat;
     
    13521349    ADOLC_GLOBAL_TAPE_VARS.store[locat] =
    13531350        ADOLC_MATH_NSP::acos(ADOLC_GLOBAL_TAPE_VARS.store[x.loc()]);
    1354     y = 0;
    13551351    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    13561352    return locat;
     
    13791375    ADOLC_GLOBAL_TAPE_VARS.store[locat] =
    13801376        ADOLC_MATH_NSP::atan(ADOLC_GLOBAL_TAPE_VARS.store[x.loc()]);
    1381     y = 0;
    13821377    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    13831378    return locat;
     
    15721567    ADOLC_GLOBAL_TAPE_VARS.store[locat] =
    15731568        ADOLC_MATH_NSP_ERF::asinh(ADOLC_GLOBAL_TAPE_VARS.store[x.loc()]);
    1574     y = 0;
    15751569    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    15761570    return locat;
     
    15991593    ADOLC_GLOBAL_TAPE_VARS.store[locat] =
    16001594        ADOLC_MATH_NSP_ERF::acosh(ADOLC_GLOBAL_TAPE_VARS.store[x.loc()]);
    1601     y = 0;
    16021595    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    16031596    return locat;
     
    16261619    ADOLC_GLOBAL_TAPE_VARS.store[locat] =
    16271620        ADOLC_MATH_NSP_ERF::atanh(ADOLC_GLOBAL_TAPE_VARS.store[x.loc()]);
    1628     y = 0;
    16291621    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    16301622    return locat;
     
    16541646    ADOLC_GLOBAL_TAPE_VARS.store[locat] =
    16551647        ADOLC_MATH_NSP_ERF::erf(ADOLC_GLOBAL_TAPE_VARS.store[x.loc()]);
    1656     y = 0;
    16571648    ADOLC_OPENMP_RESTORE_THREAD_NUMBER;
    16581649    return locat;
Note: See TracChangeset for help on using the changeset viewer.