Changeset 2295


Ignore:
Timestamp:
09/23/09 15:17:38 (15 years ago)
Author:
Mathieu Morlighem
Message:

fixed mex file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/mex/InterpFromMeshToGrid/InterpFromMeshToGrid.cpp

    r2291 r2295  
    1414        double* y=NULL;
    1515        double* meshdata=NULL;
     16        int     meshdata_length;
    1617        double  cornereast;
    1718        double  cornernorth;
     
    3738        FetchData((void**)&x,&nods,NULL,X,"Matrix","Mat");
    3839        FetchData((void**)&y,NULL,NULL,Y,"Matrix","Mat");
    39         FetchData((void**)&meshdata,NULL,NULL,MESHDATA,"Matrix","Mat");
     40        FetchData((void**)&meshdata,&meshdata_length,NULL,MESHDATA,"Matrix","Mat");
    4041        FetchData((void**)&cornereast,NULL,NULL,CORNEREAST,"Scalar",NULL);
    4142        FetchData((void**)&cornernorth,NULL,NULL,CORNERNORTH,"Scalar",NULL);
     
    4748
    4849        /*Call core of computation: */
    49         InterpFromMeshToGridx(&x_m,&y_m,&griddata,index,x,y,nods,nel,meshdata,cornereast,cornernorth,xposting,yposting,nlines,ncols,default_value);
     50        InterpFromMeshToGridx(&x_m,&y_m,&griddata,index,x,y,nods,nel,meshdata,meshdata_length,cornereast,cornernorth,xposting,yposting,nlines,ncols,default_value);
    5051
    5152        /*Write results: */
    52         WriteData(XM,x_m,ncols+1,NULL,"Vector","Vec");
    53         WriteData(YM,y_m,nlines+1,NULL,"Vector","Vec");
     53        WriteData(XM,x_m,ncols+1,1,"Vector","Vec");
     54        WriteData(YM,y_m,nlines+1,1,"Vector","Vec");
    5455        WriteData(GRIDDATA,griddata,nlines,ncols,"Matrix","Mat");
    5556
Note: See TracChangeset for help on using the changeset viewer.