Changeset 4972


Ignore:
Timestamp:
08/04/10 12:00:10 (15 years ago)
Author:
Eric.Larour
Message:

Bugs in Marshall and SetMatlabField.

File:
1 edited

Legend:

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

    r4958 r4972  
    147147        memcpy(marshalled_dataset,&M,sizeof(M));marshalled_dataset+=sizeof(M);
    148148        if(M){
    149                 memcpy(marshalled_dataset,mdim_array,M*sizeof(double));marshalled_dataset+=M*sizeof(int);
    150                 memcpy(marshalled_dataset,ndim_array,M*sizeof(double));marshalled_dataset+=M*sizeof(int);
     149                memcpy(marshalled_dataset,mdim_array,M*sizeof(int));marshalled_dataset+=M*sizeof(int);
     150                memcpy(marshalled_dataset,ndim_array,M*sizeof(int));marshalled_dataset+=M*sizeof(int);
    151151                for(i=0;i<M;i++){
    152152                        double* matrix=this->array[i];
     
    332332       
    333333                pfield2=mxCreateDoubleMatrix(0,0,mxREAL);
    334                 mxSetM(pfield2,m);
    335                 mxSetN(pfield2,n);
     334                mxSetM(pfield2,n);
     335                mxSetN(pfield2,m);
    336336                mxSetPr(pfield2,outmatrix);
    337337
Note: See TracChangeset for help on using the changeset viewer.