Changeset 2587
- Timestamp:
- 11/02/09 14:33:24 (15 years ago)
- Location:
- issm/trunk/src/c/shared/Exp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/shared/Exp/IsInPoly.cpp
r291 r2587 8 8 #include "../shared.h" 9 9 10 #ifdef HAVE_CONFIG_H 11 #include "config.h" 12 #else 13 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!" 14 #endif 10 15 11 16 12 int IsInPoly(Vec in,double* xc,double* yc,int numgrids,double* x,double* y,int nods, int edgevalue){ 17 18 19 int IsInPoly(Vec in,double* xc,double* yc,int numgrids,double* x,double* y,int i0,int i1, int edgevalue){ 13 20 14 21 int i; … … 17 24 18 25 /*Go through all grids of the mesh:*/ 19 for (i= MPI_Lowerrow(nods);i<MPI_Upperrow(nods);i++){26 for (i=i0;i<i1;i++){ 20 27 21 28 //Get current value of value[i] -> do not change it if != 0 -
issm/trunk/src/c/shared/Exp/exp.h
r1 r2587 9 9 #include "../../toolkits/toolkits.h" 10 10 11 int IsInPoly(Vec in,double* xc,double* yc,int numgrids,double* x,double* y,int nods, int edgevalue);11 int IsInPoly(Vec in,double* xc,double* yc,int numgrids,double* x,double* y,int i0,int i1, int edgevalue); 12 12 int IsInPolySerial(double* in,double* xc,double* yc,int numgrids,double* x,double* y,int nods, int edgevalue); 13 13 int IsOutsidePoly(Vec out,double* xc,double* yc,int numgrids,double* x,double* y,int nods,int edgevalue);
Note:
See TracChangeset
for help on using the changeset viewer.