Index: trunk/BNC/src/PPP/pppClient.cpp
===================================================================
--- trunk/BNC/src/PPP/pppClient.cpp	(revision 10194)
+++ trunk/BNC/src/PPP/pppClient.cpp	(revision 10195)
@@ -343,7 +343,7 @@
   t_lc::type tLC = t_lc::dummy;
   double offGlo = 0.0;
-  double MAXRES = 0.0;
+  const double MAXRES = 150.0;
+
   if (OPT->useSystem('R')) {
-
     while (obsVector.size() > 0) {
       offGlo = 0.0;
@@ -357,5 +357,4 @@
           if (tLC == t_lc::dummy) {
             tLC = satObs->isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1;
-            MAXRES = satObs->maxRes(tLC);
           }
           if (satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= OPT->_minEle)) {
@@ -371,5 +370,4 @@
         }
       }
-
       if (nObs > 0) {
         offGlo = offGlo / nObs;
@@ -378,5 +376,4 @@
         offGlo = 0.0;
       }
-
       if (fabs(maxRes) > MAXRES) {
         LOG << "t_pppClient::cmpOffGlo outlier " << maxResPrn.toString() << " " << maxRes << endl;
@@ -398,8 +395,7 @@
   t_lc::type tLC  = t_lc::dummy;
   double offGal = 0.0;
-  double MAXRES = 0.0;
+  const double MAXRES = 150.0;
 
   if (OPT->useSystem('E')) {
-
     while (obsVector.size() > 0) {
       offGal = 0.0;
@@ -413,5 +409,4 @@
           if (tLC == t_lc::dummy) {
             tLC = satObs->isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1;
-            MAXRES = satObs->maxRes(tLC);
           }
           if (satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= OPT->_minEle)) {
@@ -427,5 +422,4 @@
         }
       }
-
       if (nObs > 0) {
         offGal = offGal / nObs;
@@ -434,5 +428,4 @@
         offGal = 0.0;
       }
-
       if (fabs(maxRes) > MAXRES) {
         LOG << "t_pppClient::cmpOffGal outlier " << maxResPrn.toString() << " " << maxRes << endl;
@@ -455,5 +448,5 @@
   t_lc::type tLC = t_lc::dummy;
   double offBds = 0.0;
-  double MAXRES = 0.0;
+  const double MAXRES = 150.0;
 
   if (_opt->useSystem('C')) {
@@ -469,5 +462,4 @@
           if (tLC == t_lc::dummy) {
             tLC = satObs->isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1;
-            MAXRES = satObs->maxRes(tLC);
           }
           if (satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= _opt->_minEle)) {
@@ -483,5 +475,4 @@
         }
       }
-
       if (nObs > 0) {
         offBds = offBds / nObs;
@@ -490,5 +481,4 @@
         offBds = 0.0;
       }
-
       if (fabs(maxRes) > MAXRES) {
         LOG << "t_pppClient::cmpOffBds outlier " << maxResPrn.toString() << " " << maxRes << endl;
