Changeset 4801 in ntrip for trunk/BNC/src/bncmodel.cpp


Ignore:
Timestamp:
Nov 17, 2012, 11:18:11 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncmodel.cpp

    r4278 r4801  
    210210  Tracer tracer("bncModel::reset");
    211211
    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;
    214219  }
    215220  _params.clear();
     
    221226  _params.push_back(new bncParam(bncParam::RECCLK, ++nextPar, ""));
    222227  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);
    224231  }
    225232  if (_opt->useGalileo) {
Note: See TracChangeset for help on using the changeset viewer.