Changeset 21314
- Timestamp:
- 10/26/16 11:01:48 (8 years ago)
- Location:
- issm/trunk-jpl/src/c/modules/ExpToLevelSetx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/ExpToLevelSetx/ExpToLevelSetx.cpp
r19010 r21314 17 17 /*output: */ 18 18 double* distance; 19 distance = xNewZeroInit<double>(nods); 19 distance = xNew<double>(nods); 20 for(int i=0;i<nods;i++) distance[i]=1e50; 20 21 21 22 /*initialize thread parameters: */ … … 23 24 gate.contours = contours; 24 25 gate.nods = nods; 25 gate.distance 26 gate.distance = distance; 26 27 gate.x = x; 27 28 gate.y = y; -
issm/trunk-jpl/src/c/modules/ExpToLevelSetx/ExpToLevelSetxt.cpp
r19010 r21314 58 58 59 59 /*Figure out distance from (x0,y0) to contour: */ 60 mind= INFINITY;60 mind=1e+50; 61 61 for (j=0;j<contournods-1;j++){ 62 62 x1=contourx[j]; y1=contoury[j]; … … 64 64 mind=min(mind,minimum_distance(x1,y1,x2,y2,x0,y0)); 65 65 } 66 dist[i]=min d;66 dist[i]=min(dist[i],mind); 67 67 } 68 68
Note:
See TracChangeset
for help on using the changeset viewer.