Changeset 19991


Ignore:
Timestamp:
01/22/16 19:26:01 (9 years ago)
Author:
glperez
Message:

CHG: another cast needed for AD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r19990 r19991  
    36413641                                G_elastic = (love_k[nl-1]-love_h[nl-1])/2.0/sin(alpha/2.0);
    36423642                                if(legendre_precompute){
    3643                                         for(int n=0;n<nl;n++) G_elastic += deltalove[n]*legendre_coefficients[(int)((M-1)*(cosalpha+1.0)/2.0)*nl+n];
     3643                                        for(int n=0;n<nl;n++) G_elastic += deltalove[n]*legendre_coefficients[reCast<int,IssmDouble>((M-1)*(cosalpha+1.0)/2.0)*nl+n];
    36443644                                }
    36453645                                else{
Note: See TracChangeset for help on using the changeset viewer.