Changeset 9645
- Timestamp:
- Feb 9, 2015, 3:06:19 PM (9 years ago)
- Location:
- trunk/anuga_core/anuga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/anuga/fit_interpolate/fitsmooth.c
r9644 r9645 188 188 { 189 189 190 191 192 190 int k; 193 194 195 196 191 int i,w; 192 edge_key_t key; 193 double x; 194 double y; 195 triangle * T; 196 double * sigma 197 198 197 199 for(w=0;w<zdims;w++){ 198 200 for(i=0;i<N;i++){ … … 201 203 } 202 204 203 edge_key_t key;204 205 206 207 205 208 206 #pragma omp parallel for private(k,i,key,w) … … 210 208 211 209 212 doublex = point_coordinates[2*k];213 doubley = point_coordinates[2*k+1];214 triangle *T = search(quadtree,x,y);210 x = point_coordinates[2*k]; 211 y = point_coordinates[2*k+1]; 212 T = search(quadtree,x,y); 215 213 216 214 if(T!=NULL){ 217 double *sigma = calculate_sigma(T,x,y);215 sigma = calculate_sigma(T,x,y); 218 216 int js[3]; 219 217 for(i=0;i<3;i++){ -
trunk/anuga_core/anuga/utilities/quad_tree.c
r9500 r9645 83 83 { 84 84 85 86 // FIXME SR: Should remove this malloc and just pass a pointer to array 85 87 double * ret_sigma = malloc(3 * sizeof(double)); 86 88 ret_sigma[0] = dot_points(x - T->x2, y - T->y2, T->nx1, T->ny1)/
Note: See TracChangeset
for help on using the changeset viewer.