Changeset 14250
- Timestamp:
- 01/15/13 11:40:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Container/Observations.cpp
r14241 r14250 150 150 if(i==0){ 151 151 hmin2 = h2; 152 index = i ;152 index = indices[i]; 153 153 } 154 154 else{ 155 155 if(h2<hmin2){ 156 156 hmin2 = h2; 157 index = i ;157 index = indices[i]; 158 158 } 159 159 } … … 161 161 162 162 /*Assign output pointer*/ 163 if(!nobs){ 163 if(index>=0){ 164 observation=dynamic_cast<Observation*>(this->GetObjectByOffset(index)); 165 *px=observation->x; 166 *py=observation->y; 167 *pobs=observation->value; 168 } 169 else{ 170 164 171 *px=UNDEF; 165 172 *py=UNDEF; 166 173 *pobs=UNDEF; 167 }168 else{169 observation=dynamic_cast<Observation*>(this->GetObjectByOffset(indices[index]));170 *px=observation->x;171 *py=observation->y;172 *pobs=observation->value;173 174 } 174 175 xDelete<int>(indices);
Note:
See TracChangeset
for help on using the changeset viewer.