Changeset 9645


Ignore:
Timestamp:
Feb 9, 2015, 3:06:19 PM (9 years ago)
Author:
steve
Message:

VC++ fitsmooth edge_key_t problem

Location:
trunk/anuga_core/anuga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/anuga/fit_interpolate/fitsmooth.c

    r9644 r9645  
    188188              {
    189189
    190 
    191 
    192190    int k;
    193 
    194 
    195 
    196191    int i,w;
     192    edge_key_t key;
     193    double x;
     194    double y;
     195    triangle * T;
     196    double * sigma
     197
     198
    197199    for(w=0;w<zdims;w++){
    198200        for(i=0;i<N;i++){
     
    201203    }
    202204
    203     edge_key_t key;
    204 
    205 
    206 
    207205
    208206    #pragma omp parallel for private(k,i,key,w)
     
    210208
    211209
    212         double x = point_coordinates[2*k];
    213         double y = 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);
    215213
    216214        if(T!=NULL){
    217             double * sigma = calculate_sigma(T,x,y);
     215            sigma = calculate_sigma(T,x,y);
    218216            int js[3];
    219217            for(i=0;i<3;i++){
  • trunk/anuga_core/anuga/utilities/quad_tree.c

    r9500 r9645  
    8383{
    8484
     85
     86        // FIXME SR: Should remove this malloc and just pass a pointer to array
    8587        double  * ret_sigma = malloc(3 * sizeof(double));
    8688        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.