Index: trunk/BNC/bncpppclient.cpp
===================================================================
--- trunk/BNC/bncpppclient.cpp	(revision 2248)
+++ trunk/BNC/bncpppclient.cpp	(revision 2249)
@@ -39,4 +39,5 @@
  * -----------------------------------------------------------------------*/
 
+#include <newmatio.h>
 #include <iomanip>
 
@@ -332,7 +333,25 @@
     ee->position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data());
 
+    //// beg test
+    ColumnVector xcTst(4);
+    ColumnVector vvTst(3);
+    bncTime ttTst(tt.gpsw(), floor(tt.gpssec()+0.5));
+    ee->position(ttTst.gpsw(), ttTst.gpssec(), xcTst.data(), vvTst.data());
+    cout.setf(ios::fixed);
+    cout << "A: " << ttTst.timestr() << " " << prn.toAscii().data() << " "
+         << xcTst.t();
+    //// end test
+
     if (CORR_REQUIRED) {
       if (_corr.contains(prn)) {
         t_corr* cc = _corr.value(prn);
+
+        //// beg test
+        applyCorr(cc, xcTst, vvTst);
+        cout << "B: " << ttTst.timestr() << " " 
+             << ee->IOD() << "  " <<  cc->iod << "  " << (tt - cc->tt) << " "
+             << prn.toAscii().data() << " " << xcTst.t();
+        //// beg test
+
         if (ee->IOD() == cc->iod && (tt - cc->tt) < MAXAGE) {
           corr = true;
