Changeset 16398


Ignore:
Timestamp:
10/11/13 14:50:47 (11 years ago)
Author:
Eric.Larour
Message:

CHG: fixed issues with casting

File:
1 edited

Legend:

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

    r16376 r16398  
    1515GaussSeg::GaussSeg(int order){
    1616
     17        IssmPDouble* pcoords1=NULL;
     18        IssmPDouble* pweights=NULL;
     19
    1720        /*Get gauss points*/
    1821        this->numgauss = order;
    19         GaussLegendreLinear(&this->coords1,&this->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        }
    2032
    2133        /*Initialize static fields as undefinite*/
Note: See TracChangeset for help on using the changeset viewer.