Changeset 13216 for issm/trunk-jpl/src/c/modules/TriMeshx/TriMeshx.cpp
- Timestamp:
- 08/31/12 17:23:24 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/TriMeshx/TriMeshx.cpp
r12860 r13216 20 20 /*}}}*/ 21 21 22 void TriMeshx(Matrix ** pindex,Vector** px,Vector** py,Matrix** psegments,Vector** psegmentmarkerlist,DataSet* domain,DataSet* rifts,double area){22 void TriMeshx(Matrix<IssmDouble>** pindex,Vector<IssmDouble>** px,Vector<IssmDouble>** py,Matrix<IssmDouble>** psegments,Vector<IssmDouble>** psegmentmarkerlist,DataSet* domain,DataSet* rifts,double area){ 23 23 24 24 /*indexing: */ … … 27 27 /*output: */ 28 28 double* index=NULL; 29 Matrix * index_matrix=NULL;29 Matrix<IssmDouble>* index_matrix=NULL; 30 30 double* x=NULL; 31 31 double* y=NULL; 32 32 double* segments=NULL; 33 Matrix * segments_matrix=NULL;33 Matrix<IssmDouble>* segments_matrix=NULL; 34 34 double* segmentmarkerlist=NULL; 35 35 … … 192 192 193 193 /*Output : */ 194 index_matrix=new Matrix (index,out.numberoftriangles,3,1,SeqMatType);194 index_matrix=new Matrix<IssmDouble>(index,out.numberoftriangles,3,1,SeqMatType); 195 195 *pindex=index_matrix; 196 196 197 segments_matrix=new Matrix (segments,out.numberofsegments,3,1,SeqMatType);197 segments_matrix=new Matrix<IssmDouble>(segments,out.numberofsegments,3,1,SeqMatType); 198 198 *psegments=segments_matrix; 199 199 200 *px=new Vector (x,out.numberofpoints,SeqMatType);201 *py=new Vector (y,out.numberofpoints,SeqMatType);202 *psegmentmarkerlist=new Vector (segmentmarkerlist,out.numberofsegments,SeqMatType);200 *px=new Vector<IssmDouble>(x,out.numberofpoints,SeqMatType); 201 *py=new Vector<IssmDouble>(y,out.numberofpoints,SeqMatType); 202 *psegmentmarkerlist=new Vector<IssmDouble>(segmentmarkerlist,out.numberofsegments,SeqMatType); 203 203 }
Note:
See TracChangeset
for help on using the changeset viewer.