Changeset 4059 for issm/trunk/src/c/objects/Params/DoubleMatParam.cpp
- Timestamp:
- 06/21/10 07:30:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Params/DoubleMatParam.cpp
r3834 r4059 230 230 } 231 231 /*}}}*/ 232 /*FUNCTION DoubleMatParam::SetValue(double* doublearray,int M,int N);{{{1*/ 233 void DoubleMatParam::SetValue(double* doublearray,int in_M,int in_N){ 234 235 /*avoid leak: */ 236 xfree((void**)&this->value); 237 238 this->value=(double*)xmalloc(in_M*in_N*sizeof(double)); 239 memcpy(this->value,doublearray,in_M*in_N*sizeof(double)); 240 241 this->M=in_M; 242 this->N=in_N; 243 } 244 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.