Index: trunk/BNC/src/PPP_free/bncmodel.cpp
===================================================================
--- trunk/BNC/src/PPP_free/bncmodel.cpp	(revision 6062)
+++ trunk/BNC/src/PPP_free/bncmodel.cpp	(revision 6063)
@@ -783,5 +783,5 @@
     ColumnVector sz = -rSat / rSat.norm_Frobenius();
 
-    ColumnVector xSun = Sun(Mjd);
+    ColumnVector xSun = t_astro::Sun(Mjd);
     xSun /= xSun.norm_Frobenius();
 
@@ -1008,5 +1008,8 @@
     // First update using code observations, then phase observations
     // -------------------------------------------------------------      
-    for (int iPhase = 0; iPhase <= (_opt->usePhase ? 1 : 0); iPhase++) {
+    bool usePhase = _opt->ambLCs('G').size() || _opt->ambLCs('R').size() ||
+                    _opt->ambLCs('E').size();
+
+    for (int iPhase = 0; iPhase <= (usePhase ? 1 : 0); iPhase++) {
     
       // Status Prediction
@@ -1071,5 +1074,5 @@
         }
 
-        if (!_opt->usePhase || iPhase == 1) {
+        if (!usePhase || iPhase == 1) {
           if (_outlierGPS.size() > 0 || _outlierGlo.size() > 0) {
             _log += "Neglected PRNs: ";
