Last change
on this file since 20498 was 20498, checked in by Mathieu Morlighem, 9 years ago |
CHG: done with Archive/19101-20495
|
File size:
1.3 KB
|
Rev | Line | |
---|
[20498] | 1 | Index: ../trunk-jpl/src/c/classes/Params/DoubleMatParam.h
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/c/classes/Params/DoubleMatParam.h (revision 20025)
|
---|
| 4 | +++ ../trunk-jpl/src/c/classes/Params/DoubleMatParam.h (revision 20026)
|
---|
| 5 | @@ -71,5 +71,8 @@
|
---|
| 6 | void SetValue(FILE* fid){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold a FILE");}
|
---|
| 7 | void SetValue(IssmDouble** array, int M, int* mdim_array, int* ndim_array){_error_("Param "<< EnumToStringx(enum_type) << " cannot hold an array of matrices");}
|
---|
| 8 | /*}}}*/
|
---|
| 9 | + /*DoubleMatParam specific routines:{{{*/
|
---|
| 10 | + void GetParameterValueByPointer(IssmDouble** pIssmDoublearray,int* pM,int* pN);
|
---|
| 11 | + /*}}}*/
|
---|
| 12 | };
|
---|
| 13 | #endif /* _DOUBLEMATPARAM_H */
|
---|
| 14 | Index: ../trunk-jpl/src/c/classes/Params/DoubleMatParam.cpp
|
---|
| 15 | ===================================================================
|
---|
| 16 | --- ../trunk-jpl/src/c/classes/Params/DoubleMatParam.cpp (revision 20025)
|
---|
| 17 | +++ ../trunk-jpl/src/c/classes/Params/DoubleMatParam.cpp (revision 20026)
|
---|
| 18 | @@ -112,3 +112,13 @@
|
---|
| 19 | this->N=in_N;
|
---|
| 20 | }
|
---|
| 21 | /*}}}*/
|
---|
| 22 | +
|
---|
| 23 | +/*DoubleMatParam specific routines:*/
|
---|
| 24 | +void DoubleMatParam::GetParameterValueByPointer(IssmDouble** pIssmDoublearray,int* pM,int* pN){/*{{{*/
|
---|
| 25 | +
|
---|
| 26 | + /*Assign output pointers:*/
|
---|
| 27 | + if(pM) *pM=M;
|
---|
| 28 | + if(pN) *pN=N;
|
---|
| 29 | + *pIssmDoublearray=value;
|
---|
| 30 | +}
|
---|
| 31 | +/*}}}*/
|
---|
Note:
See
TracBrowser
for help on using the repository browser.