Changeset 17327


Ignore:
Timestamp:
02/20/14 19:58:45 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixing number of observations in case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/kriging/Observations.cpp

    r16989 r17327  
    202202
    203203        /*If radius is not provided or is 0, return all observations*/
    204         if(radius==0.) radius=this->quadtree->root->length;
     204        if(radius==0.) radius=this->quadtree->root->length*2.;
    205205
    206206        /*Compute radius square*/
     
    466466        _assert_(pprediction);
    467467
    468         /*If radius is not provided or is 0, return all observations*/
    469         if(radius==0) radius=this->quadtree->root->length;
    470 
    471468        /*Get list of observations for current point*/
    472469        this->ObservationList(&x,&y,&obs,&n_obs,x_interp,y_interp,radius,maxdata);
     
    505502                                Green[i*n_obs+j] = Green[j*n_obs+i];
    506503                        }
     504                        /*Zero diagonal (should be done already, but just in case)*/
     505                        Green[i*n_obs+i] = 0.;
    507506                }
    508507
Note: See TracChangeset for help on using the changeset viewer.