Index: trunk/BNC/src/PPP/pppClient.cpp
===================================================================
--- trunk/BNC/src/PPP/pppClient.cpp	(revision 10014)
+++ trunk/BNC/src/PPP/pppClient.cpp	(revision 10015)
@@ -670,16 +670,4 @@
         }
       }
-
-      if (_opt->_refSatRequired) {
-        if (handleRefSatellites(_obsRover) != success) {
-          return finish(failure,6);
-        }
-        if (_obsPool->refSatChanged()) {
-          LOG << "t_pppFilter: refSatChanged()" << endl;
-          epochReProcessing = true;
-          continue;
-        }
-      }
-
       // use observations only if satellite code biases are available
       // ------------------------------------------------------------
@@ -688,4 +676,15 @@
            OPT->_obsModelType == OPT->DCMphaseBias)) {
         useObsWithCodeBiasesOnly(_obsRover);
+      }
+
+      if (_opt->_refSatRequired) {
+        if (handleRefSatellites(_obsRover) != success) {
+          return finish(failure,6);
+        }
+        if (_obsPool->refSatChanged()) {
+          LOG << "t_pppFilter: refSatChanged()" << endl;
+          epochReProcessing = true;
+          continue;
+        }
       }
 
Index: trunk/BNC/src/PPP/pppFilter.cpp
===================================================================
--- trunk/BNC/src/PPP/pppFilter.cpp	(revision 10014)
+++ trunk/BNC/src/PPP/pppFilter.cpp	(revision 10015)
@@ -64,6 +64,7 @@
   _epoTime = epoch->epoTime();
 
-  if (!_firstEpoTime.valid() || !_lastEpoTimeOK.valid()
-      || (maxSolGap > 0.0 && _epoTime - _lastEpoTimeOK > maxSolGap)) {
+  if (!_firstEpoTime.valid() ||
+      !_lastEpoTimeOK.valid()||
+      (maxSolGap > 0.0 && _epoTime - _lastEpoTimeOK > maxSolGap)) {
     _firstEpoTime = _epoTime;
   }
@@ -72,4 +73,5 @@
 
   const QMap<char, t_pppRefSat*> &refSatMap = epoch->refSatMap();
+
   const QList<char> &usedSystems = _parlist.usedSystems();
   //--
@@ -78,4 +80,10 @@
     return failure;
   }
+  #ifdef BNC_DEBUG_PPP
+  if (OPT->_obsModelType == OPT->DCMcodeBias ||
+      OPT->_obsModelType == OPT->DCMphaseBias) {
+    _parlist.printParams(_epoTime);
+  }
+#endif
 
   // Status Vector, Variance-Covariance Matrix
@@ -102,5 +110,5 @@
   bool preProcessing = false;
   if (OPT->_obsModelType == OPT->DCMcodeBias ||
-  OPT->_obsModelType == OPT->DCMphaseBias) {
+      OPT->_obsModelType == OPT->DCMphaseBias) {
     preProcessing = true;
     for (int iSys = 0; iSys < usedSystems.size(); iSys++) {
@@ -162,6 +170,6 @@
     LOG << epoTimeStr << " SATNUM " << sys << ' ' << right << setw(2) << num
         << endl;
-    if (processSystem(OPT->LCs(sys), obsVector, _refPrn, epoch->pseudoObsIono(),
-        preProcessing) != success) {
+    if (processSystem(OPT->LCs(sys), obsVector, _refPrn,
+        epoch->pseudoObsIono(), preProcessing) != success) {
       LOG << "processSystem !=  success (fin-processing)" << endl;
       if (OPT->_obsModelType == OPT->DCMcodeBias ||
@@ -689,5 +697,5 @@
   _epoTime = epoch->epoTime();
   LOG.setf(ios::fixed);
-  LOG << string(_epoTime) << " DATUM TRANSFORMATION " << endl;
+  LOG << string(_epoTime) << "\nDATUM TRANSFORMATION " << endl;
 
   vector<t_pppSatObs*> &allObs = epoch->obsVector();
@@ -714,4 +722,7 @@
     return failure;
   }
+#ifdef BNC_DEBUG_PPP
+  _parlist.printParams(_epoTime);
+#endif
 
   const QList<char> &usedSystems = _parlist.usedSystems();
@@ -788,6 +799,6 @@
 
 #ifdef BNC_DEBUG_PPP
-  LOG << "xFltOld:\n" << xFltOld << endl;
-  LOG << "xFlt   :\n" << _xFlt   << endl;
+  //LOG << "xFltOld:\n" << xFltOld << endl;
+  //LOG << "xFlt   :\n" << _xFlt   << endl;
 #endif
 
Index: trunk/BNC/src/PPP/pppFilter.h
===================================================================
--- trunk/BNC/src/PPP/pppFilter.h	(revision 10014)
+++ trunk/BNC/src/PPP/pppFilter.h	(revision 10015)
@@ -38,5 +38,5 @@
   void rememberState(int num) {
 #ifdef BNC_DEBUG_PPP
-    LOG << "Remember parameters from epoch before: _parlist_sav = _parlist ("<<  num << ")\n";
+    LOG << "Remember parameters from last epoch  : _parlist_sav = _parlist ("<<  num << ")\n";
 #endif
     _QFlt_sav    = _QFlt;
@@ -142,9 +142,9 @@
       }
 
-      if (AA.Ncols() > _numPar) {
-        LOG << "t_pppFilter::prepareAA: AA.Ncols() > _numPar: " << AA.Ncols() << " > " << _numPar << std::endl;
+      if (AA.Ncols() != _numPar) {
+        LOG << "t_pppFilter::prepareAA: AA.Ncols() != _numPar: " << AA.Ncols() << " != " << _numPar << "\n RETURN FAILURE" <<  std::endl;
         return failure;
       }
-      Prep->SubMatrix(_firstRow, _lastRow, 1, _numPar) << AA;
+      Prep->SubMatrix(_firstRow, _lastRow, 1, _numPar) = AA;
       return success;
     }
