Changeset 14239 for issm/trunk-jpl/src/c/Container/Observations.cpp
- Timestamp:
- 01/11/13 14:25:36 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Container/Observations.cpp
r14238 r14239 148 148 observation=dynamic_cast<Observation*>(this->GetObjectByOffset(indices[i])); 149 149 h2 = (observation->x-x_interp)*(observation->x-x_interp) + (observation->y-y_interp)*(observation->y-y_interp); 150 if( h2<hmin2){150 if(i==0){ 151 151 hmin2 = h2; 152 152 index = i; 153 } 154 else{ 155 if(h2<hmin2){ 156 hmin2 = h2; 157 index = i; 158 } 153 159 } 154 160 }
Note:
See TracChangeset
for help on using the changeset viewer.