Changeset 20026


Ignore:
Timestamp:
01/29/16 18:47:49 (9 years ago)
Author:
Eric.Larour
Message:

CHG: new pointer based get values routine.

Location:
issm/trunk-jpl/src/c/classes/Params
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Params/DoubleMatParam.cpp

    r19217 r20026  
    113113}
    114114/*}}}*/
     115
     116/*DoubleMatParam specific routines:*/
     117void  DoubleMatParam::GetParameterValueByPointer(IssmDouble** pIssmDoublearray,int* pM,int* pN){/*{{{*/
     118       
     119        /*Assign output pointers:*/
     120        if(pM) *pM=M;
     121        if(pN) *pN=N;
     122        *pIssmDoublearray=value;
     123}
     124/*}}}*/
  • issm/trunk-jpl/src/c/classes/Params/DoubleMatParam.h

    r19217 r20026  
    7272                void  SetValue(IssmDouble** array, int M, int* mdim_array, int* ndim_array){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold an array of matrices");}
    7373                /*}}}*/
     74                /*DoubleMatParam specific routines:{{{*/
     75                void  GetParameterValueByPointer(IssmDouble** pIssmDoublearray,int* pM,int* pN);
     76                /*}}}*/
    7477};
    7578#endif  /* _DOUBLEMATPARAM_H */
Note: See TracChangeset for help on using the changeset viewer.