Ignore:
Timestamp:
Sep 17, 2014 6:05:50 AM (6 years ago)
Author:
bradbell
Message:

capacity_order.hpp: add room for cache to taylor_ array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cache/cppad/local/capacity_order.hpp

    r3301 r3337  
    175175        }
    176176        CPPAD_ASSERT_UNKNOWN(r==num_direction_taylor_ || num_order_taylor_<=1);
     177
     178        // number of variables including cache
     179        size_t num_var_plus_cache = num_var_tape_ + play_.num_cache_rec();
    177180       
    178181        // Allocate new taylor with requested number of orders and directions 
    179         size_t new_len   = ( (c-1)*r + 1 ) * num_var_tape_;
     182        size_t new_len   = ( (c-1)*r + 1 ) * num_var_plus_cache;
    180183        pod_vector<Base> new_taylor;
    181184        new_taylor.extend(new_len);
Note: See TracChangeset for help on using the changeset viewer.