Ignore:
Timestamp:
06/21/10 07:30:17 (15 years ago)
Author:
Eric.Larour
Message:

Start diagnostic.m rewrite.
New SetValues routine in Param objects.

File:
1 edited

Legend:

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

    r3834 r4059  
    230230}
    231231/*}}}*/
     232/*FUNCTION DoubleMatParam::SetValue(double* doublearray,int M,int N);{{{1*/
     233void  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.