Changeset 18027


Ignore:
Timestamp:
05/20/14 10:01:42 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed AD compile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/cores/controlvalidation_core.cpp

    r18010 r18027  
    3434
    3535        /*Allocate Gradient and current vector*/
    36         G = xNew<double>(n);
    37         X = xNew<double>(n);
     36        G = xNew<IssmDouble>(n);
     37        X = xNew<IssmDouble>(n);
    3838
    3939        /*out of solution_type, figure out solution core and adjoint function pointer*/
     
    5555        IssmDouble incr = -0.2;
    5656        IssmDouble exp1 = -8.;
    57         int        num  = int((exp1-exp0)/incr);
     57        int        num  = reCast<int>((exp1-exp0)/incr);
    5858
    5959        /*Allocate output*/
     
    9292        /*Clean up and return*/
    9393        xDelete<IssmDouble>(G);
     94        xDelete<IssmDouble>(X);
     95        xDelete<IssmDouble>(X0);
    9496}
Note: See TracChangeset for help on using the changeset viewer.