Changeset 4352


Ignore:
Timestamp:
06/30/10 13:20:25 (15 years ago)
Author:
Mathieu Morlighem
Message:

parameter size is not always requested

Location:
issm/trunk/src/c/objects/Params
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Params/DoubleMatParam.cpp

    r4248 r4352  
    163163
    164164        /*Assign output pointers:*/
    165         *pM=M;
    166         *pN=N;
     165        if(pM) *pM=M;
     166        if(pN) *pN=N;
    167167        *pdoublearray=output;
    168168}
  • issm/trunk/src/c/objects/Params/DoubleVecParam.cpp

    r4248 r4352  
    151151        int M;
    152152
    153 
    154153        M=this->M;
    155154        output=(double*)xmalloc(M*sizeof(double));
     
    157156
    158157        /*Assign output pointers:*/
    159         *pM=M;
     158        if(pM) *pM=M;
    160159        *pdoublearray=output;
    161160}
Note: See TracChangeset for help on using the changeset viewer.