Changeset 9178 in ntrip for trunk/BNC


Ignore:
Timestamp:
Oct 22, 2020, 1:30:09 PM (3 years ago)
Author:
stuerze
Message:

small bug fixed

Location:
trunk/BNC/src
Files:
2 edited

Legend:

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

    r8902 r9178  
    1818#include <iomanip>
    1919#include <sstream>
     20#include <iostream>
    2021#include <math.h>
    2122
  • trunk/BNC/src/orbComp/sp3Comp.cpp

    r9175 r9178  
    8484  }
    8585  if (!_log) {
    86     cerr << "ERROR: SP3Comp requires logfile specification" << endl;
     86    *_log << "ERROR: SP3Comp requires logfile specification" << endl;
    8787    goto exit;
    8888  }
     
    298298    map<t_prn, ColumnVector>& xyz  = epoch->_xyz;
    299299    map<t_prn, ColumnVector>& xyz2 = epoch2->_xyz;
     300    QList<t_prn> satEraseList;
    300301    for (map<t_prn, ColumnVector>::const_iterator it = dr.begin(); it != dr.end(); it++) {
    301302      const t_prn&  prn = it->first;
     
    311312      }
    312313      else {
    313         epoch->_dc.erase(prn);
    314         epoch->_dr.erase(prn);
    315       }
     314        satEraseList << it->first;
     315      }
     316    }
     317    for (QList<t_prn>::const_iterator it = satEraseList.begin(); it != satEraseList.end(); it++) {
     318      epoch->_dc.erase(*it);
     319      epoch->_dr.erase(*it);
    316320    }
    317321  }
Note: See TracChangeset for help on using the changeset viewer.