Changeset 4801 in ntrip for trunk/BNC/src/bncmodel.cpp
- Timestamp:
- Nov 17, 2012, 11:18:11 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncmodel.cpp
r4278 r4801 210 210 Tracer tracer("bncModel::reset"); 211 211 212 for (int iPar = 1; iPar <= _params.size(); iPar++) { 213 delete _params[iPar-1]; 212 double lastTrp = 0.0; 213 for (int ii = 0; ii < _params.size(); ii++) { 214 bncParam* pp = _params[ii]; 215 if (pp->type == bncParam::TROPO) { 216 lastTrp = pp->xx; 217 } 218 delete pp; 214 219 } 215 220 _params.clear(); … … 221 226 _params.push_back(new bncParam(bncParam::RECCLK, ++nextPar, "")); 222 227 if (_opt->estTropo) { 223 _params.push_back(new bncParam(bncParam::TROPO, ++nextPar, "")); 228 bncParam* pp = new bncParam(bncParam::TROPO, ++nextPar, ""); 229 pp->xx = lastTrp; 230 _params.push_back(pp); 224 231 } 225 232 if (_opt->useGalileo) {
Note:
See TracChangeset
for help on using the changeset viewer.