Changeset 16439


Ignore:
Timestamp:
10/16/13 22:34:10 (11 years ago)
Author:
Eric.Larour
Message:

CHG: there is a reason why I did that cast. If there is a leak, let's fix the leak, not break the AD nightlys by removing
the cast.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/gauss/GaussSeg.cpp

    r16436 r16439  
    2020        /*Get gauss points*/
    2121        this->numgauss = order;
    22         GaussLegendreLinear(&coords1,&weights,order);
     22        GaussLegendreLinear(&pcoords1,&pweights,order);
     23       
     24        this->coords1=xNew<IssmDouble>(numgauss);
     25        this->weights=xNew<IssmDouble>(numgauss);
     26
     27        /*cast : */
     28        for(int i=0;i<numgauss;i++){
     29                this->coords1[i]=pcoords1[i];
     30                this->weights[i]=pweights[i];
     31        }
     32
     33        /*Free ressources: */
     34        xDelete<IssmDouble>(pcoords1);
     35        xDelete<IssmDouble>(pweights);
    2336
    2437        /*Initialize static fields as undefinite*/
Note: See TracChangeset for help on using the changeset viewer.