Changeset 501


Ignore:
Timestamp:
May 9, 2014 4:45:39 AM (6 years ago)
Author:
kulshres
Message:

try fix taylor mismatch in div_d_a

forward calls write two taylors and reverse calls expect two taylors
but during trace creation with keep=1 only one taylor is written.
This breaks shortcut reverse calls in case the trace contains an operation
like:

x = 1.0 / x;

So we should only write and expect one taylor in forward and reverse.

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

Location:
trunk/ADOL-C/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/src/fo_rev.c

    r444 r501  
    11131113
    11141114#if !defined(_NTIGHT_)
     1115                if (arg != res)
    11151116                ADOLC_GET_TAYLOR(res);
    11161117#endif /* !_NTIGHT_ */
  • trunk/ADOL-C/src/ho_rev.c

    r439 r501  
    12671267            }
    12681268
     1269                if (arg != res)
    12691270                GET_TAYL(res,k,p)
    12701271                break;
  • trunk/ADOL-C/src/uni5_for.c

    r496 r501  
    23192319                IF_KEEP_WRITE_TAYLOR(res,keep,k,p)
    23202320
    2321                 /* olvo 980922 necessary for reverse */
     2321                /* olvo 980922 necessary for reverse
     2322                   kk 20140508 I don't think so
    23222323                if (arg == res) {
    23232324                    IF_KEEP_WRITE_TAYLOR(arg,keep,k,p)
    2324                 }
     2325                } */
    23252326
    23262327#if !defined(_NTIGHT_)
Note: See TracChangeset for help on using the changeset viewer.