Changeset 15335
- Timestamp:
- 06/26/13 07:22:28 (12 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/datastructures/Object.h
r15067 r15335 15 15 public: 16 16 17 virtual ~Object() 17 virtual ~Object(){}; 18 18 virtual void Echo()=0; 19 19 virtual void DeepEcho()=0; -
issm/trunk-jpl/src/c/modules/ContourToMeshx/ContourToMeshx.cpp
r14968 r15335 10 10 #include "./ContourToMeshx.h" 11 11 12 int ContourToMeshx(double** pin_nod,double** pin_elem, double* index, double* x, double* y, DataSet* contours,char* interptype,int nel,int nods, int edgevalue) {12 int ContourToMeshx(double** pin_nod,double** pin_elem, double* index, double* x, double* y,Contours* contours,char* interptype,int nel,int nods, int edgevalue) { 13 13 14 14 /*Contour:*/ -
issm/trunk-jpl/src/c/modules/ContourToMeshx/ContourToMeshx.h
r15000 r15335 12 12 typedef struct{ 13 13 14 DataSet*contours;15 int nods;16 int edgevalue;17 double *in_nod;18 double *x;19 double *y;14 Contours *contours; 15 int nods; 16 int edgevalue; 17 double *in_nod; 18 double *x; 19 double *y; 20 20 21 21 } ContourToMeshxThreadStruct; 22 22 23 23 /* local prototypes: */ 24 int ContourToMeshx(double** pin_nods,double** pin_elem, double* index, double* x, double* y, DataSet* contours,char* interptype,int nel,int nods, int edgevalue);24 int ContourToMeshx(double** pin_nods,double** pin_elem, double* index, double* x, double* y,Contours* contours,char* interptype,int nel,int nods, int edgevalue); 25 25 26 26 void* ContourToMeshxt(void* vContourToMeshxThreadStruct); -
issm/trunk-jpl/src/c/modules/ContourToMeshx/ContourToMeshxt.cpp
r14965 r15335 26 26 27 27 /*Contour:*/ 28 DataSet* contours=NULL;28 Contours* contours=NULL; 29 29 30 30 /*parameters: */ -
issm/trunk-jpl/src/c/modules/ContourToNodesx/ContourToNodesx.cpp
r14968 r15335 32 32 } 33 33 34 int ContourToNodesx(IssmPDouble** pflags,double* x, double* y, int nods, DataSet* contours, int edgevalue){34 int ContourToNodesx(IssmPDouble** pflags,double* x, double* y, int nods, Contours* contours, int edgevalue){ 35 35 36 36 /*Contour:*/ -
issm/trunk-jpl/src/c/modules/ContourToNodesx/ContourToNodesx.h
r15000 r15335 11 11 /* local prototypes: */ 12 12 int ContourToNodesx(IssmPDouble** pflags,double* x, double* y, int nods, Contour<IssmPDouble>** contours,int numcontours,int edgevalue); 13 int ContourToNodesx(IssmPDouble** pflags,double* x, double* y, int nods, DataSet* contours, int edgevalue);13 int ContourToNodesx(IssmPDouble** pflags,double* x, double* y, int nods, Contours* contours, int edgevalue); 14 14 15 15 #endif /* _CONTOURTONODESX_H */ -
issm/trunk-jpl/src/c/modules/EdgeDetectionx/EdgeDetectionx.cpp
r14999 r15335 9 9 /*}}}*/ 10 10 11 void EdgeDetectionx( DataSet* contours, bool* image, int M, int N){11 void EdgeDetectionx(Contours* contours, bool* image, int M, int N){ 12 12 13 13 /*intermediary: */ -
issm/trunk-jpl/src/c/modules/EdgeDetectionx/EdgeDetectionx.h
r15000 r15335 10 10 11 11 /* local prototypes: */ 12 void EdgeDetectionx( DataSet* contours, bool* image, int M, int N);12 void EdgeDetectionx(Contours* contours, bool* image, int M, int N); 13 13 14 14 #endif /* _EDGEDETECTIONX_H */ -
issm/trunk-jpl/src/c/modules/TriMeshx/TriMeshx.cpp
r14999 r15335 19 19 /*}}}*/ 20 20 21 void TriMeshx(int** pindex,IssmPDouble** px,IssmPDouble** py,int** psegments,int** psegmentmarkerlist,int* pnels,int* pnods, int* pnsegs, DataSet* domain,DataSet* rifts,double area){21 void TriMeshx(int** pindex,IssmPDouble** px,IssmPDouble** py,int** psegments,int** psegmentmarkerlist,int* pnels,int* pnods, int* pnsegs,Contours* domain,Contours* rifts,double area){ 22 22 23 23 #if !defined(_HAVE_TRIANGLE_) -
issm/trunk-jpl/src/c/modules/TriMeshx/TriMeshx.h
r15000 r15335 10 10 11 11 /* local prototypes: */ 12 void TriMeshx(int** pindex,IssmPDouble** px,IssmPDouble** py,int** psegments,int** psegmentmarkerlist,int* pnels,int* pnods, int* pnseg, DataSet* domain,DataSet* rifts,double area);12 void TriMeshx(int** pindex,IssmPDouble** px,IssmPDouble** py,int** psegments,int** psegmentmarkerlist,int* pnels,int* pnods, int* pnseg,Contours* domain,Contours* rifts,double area); 13 13 #endif /* _TRIMESHX_H */ -
issm/trunk-jpl/src/wrappers/ContourToMesh/ContourToMesh.cpp
r15106 r15335 30 30 31 31 /* required input: */ 32 int edgevalue;33 int nel,nods;34 double *index = NULL;35 double *x = NULL;36 double *y = NULL;37 char *interptype = NULL;38 DataSet*contours = NULL;32 int edgevalue; 33 int nel,nods; 34 double *index = NULL; 35 double *x = NULL; 36 double *y = NULL; 37 char *interptype = NULL; 38 Contours *contours = NULL; 39 39 40 40 /* output: */ -
issm/trunk-jpl/src/wrappers/ContourToNodes/ContourToNodes.cpp
r15329 r15335 18 18 19 19 /* input: */ 20 int edgevalue,nods;21 double *x = NULL;22 double *y = NULL;23 char *contourname = NULL;24 DataSet*contours = NULL;20 int edgevalue,nods; 21 double *x = NULL; 22 double *y = NULL; 23 char *contourname = NULL; 24 Contours *contours = NULL; 25 25 26 26 /* output: */ … … 49 49 xDelete<double>(y); 50 50 xDelete<char>(contourname); 51 //delete contours;51 delete contours; 52 52 53 53 /*end module: */ -
issm/trunk-jpl/src/wrappers/EdgeDetection/EdgeDetection.cpp
r15106 r15335 25 25 26 26 /* output: */ 27 DataSet* contours=NULL;27 Contours* contours=NULL; 28 28 29 29 /*Boot module: */ … … 37 37 38 38 /*Initialize output: */ 39 contours=new DataSet();39 contours=new Contours(); 40 40 41 41 /* Run core computations: */ -
issm/trunk-jpl/src/wrappers/ExpSimplify/ExpSimplify.cpp
r15106 r15335 183 183 if(newnods>=minimumvertices){ 184 184 _printf_(" Final number of vertices in contour #"<<counter+1<<": "<<newnods << "\n"); 185 newcontour = xNew<Contour<double> >(1);185 newcontour = new Contour<double>(); 186 186 newcontour->nods = newnods; 187 187 newcontour->x = xNew<double>(newnods); -
issm/trunk-jpl/src/wrappers/InterpFromMesh2d/InterpFromMesh2d.cpp
r15106 r15335 101 101 for(i=0;i<numcontours;i++){ 102 102 //allocate 103 contouri= xNew<Contour<double> >(1);103 contouri=new Contour<double>(); 104 104 //retrieve dimension of this contour. 105 105 contouri->nods=(int)mxGetScalar(mxGetField(matlabstructure,i,"nods")); -
issm/trunk-jpl/src/wrappers/MeshProfileIntersection/MeshProfileIntersection.cpp
r15106 r15335 36 36 /* required input: */ 37 37 //mesh 38 double * double_index=NULL;39 int * index=NULL;38 double *double_index = NULL; 39 int *index = NULL; 40 40 int nel; 41 double * x=NULL;42 double * y=NULL;41 double *x = NULL; 42 double *y = NULL; 43 43 int nods; 44 44 int dummy; 45 45 46 46 //contours 47 DataSet*domain = NULL;47 Contours *domain = NULL; 48 48 Contour<double> **contours=NULL; 49 49 int numcontours; -
issm/trunk-jpl/src/wrappers/TriMesh/TriMesh.cpp
r15106 r15335 17 17 18 18 /*intermediary: */ 19 double area;20 DataSet*domain = NULL;21 DataSet*rifts = NULL;19 double area; 20 Contours *domain = NULL; 21 Contours *rifts = NULL; 22 22 23 23 /* output: */ -
issm/trunk-jpl/src/wrappers/matlab/io/FetchMatlabData.cpp
r15269 r15335 634 634 } 635 635 /*}}}*/ 636 /*FUNCTION FetchData( DataSet** pcontours,const mxArray* dataref){{{*/637 void FetchData( DataSet** pcontours,const mxArray* dataref){638 639 int 636 /*FUNCTION FetchData(Contours** pcontours,const mxArray* dataref){{{*/ 637 void FetchData(Contours** pcontours,const mxArray* dataref){ 638 639 int numcontours,index,test1,test2; 640 640 char *contourname = NULL; 641 Contours 641 Contours *contours = NULL; 642 642 Contour<double> *contouri = NULL; 643 643 … … 653 653 for(int i=0;i<numcontours;i++){ 654 654 655 contouri= xNew<Contour<double> >(1);655 contouri=new Contour<double>(); 656 656 657 657 index = mxGetFieldNumber(dataref,"nods"); -
issm/trunk-jpl/src/wrappers/matlab/io/WriteMatlabData.cpp
r15269 r15335 360 360 } 361 361 /*}}}*/ 362 /*FUNCTION WriteData(mxArray** pdataref, DataSet* contours){{{*/363 void WriteData(mxArray** pdataref, DataSet* contours){362 /*FUNCTION WriteData(mxArray** pdataref,Contours* contours){{{*/ 363 void WriteData(mxArray** pdataref,Contours* contours){ 364 364 365 365 /*Intermediary*/ -
issm/trunk-jpl/src/wrappers/matlab/io/matlabio.h
r15269 r15335 32 32 void WriteData(mxArray** pdataref,BamgMesh* bamgmesh); 33 33 void WriteData(mxArray** pdataref,RiftStruct* riftstruct); 34 void WriteData(mxArray** pdataref, DataSet* contours);34 void WriteData(mxArray** pdataref,Contours* contours); 35 35 36 36 void FetchData(double** pmatrix,int* pM,int *pN,const mxArray* dataref); … … 54 54 void FetchData(BamgOpts** bamgopts,const mxArray* dataref); 55 55 void FetchData(Options** poptions,int istart, int nrhs,const mxArray** pdataref); 56 void FetchData( DataSet** pcontours,const mxArray* dataref);56 void FetchData(Contours** pcontours,const mxArray* dataref); 57 57 58 58 Option* OptionParse(char* name, const mxArray* prhs[]); -
issm/trunk-jpl/src/wrappers/python/io/FetchPythonData.cpp
r15105 r15335 739 739 } 740 740 /*}}}*/ 741 /*FUNCTION FetchData( DataSet** pcontours,PyObject* py_list){{{*/742 void FetchData( DataSet** pcontours,PyObject* py_list){741 /*FUNCTION FetchData(Contours** pcontours,PyObject* py_list){{{*/ 742 void FetchData(Contours** pcontours,PyObject* py_list){ 743 743 744 744 int numcontours,test1,test2; 745 745 char *contourname = NULL; 746 DataSet*contours = NULL;746 Contours *contours = NULL; 747 747 Contour<double> *contouri = NULL; 748 748 PyObject *py_dicti = NULL; … … 755 755 else if(PyList_Check(py_list)){ 756 756 757 contours=new DataSet(0);757 contours=new Contours(); 758 758 numcontours=(int)PyList_Size(py_list); 759 759 760 760 for(int i=0;i<numcontours;i++){ 761 761 762 contouri= xNew<Contour<double> >(1);762 contouri=new Contour<double>(); 763 763 py_dicti=PyList_GetItem(py_list,(Py_ssize_t)i); 764 764 -
issm/trunk-jpl/src/wrappers/python/io/pythonio.h
r15165 r15335 45 45 void FetchData(BamgOpts** bamgopts,PyObject* py_dict); 46 46 void FetchData(Options** poptions,int istart, int nrhs,PyObject* py_tuple); 47 void FetchData( DataSet** pcontours,PyObject* py_list);47 void FetchData(Contours** pcontours,PyObject* py_list); 48 48 49 49 int CheckNumPythonArguments(PyObject* inputs,int NRHS, void (*function)( void ));
Note:
See TracChangeset
for help on using the changeset viewer.