@@ -272,7 +272,7 @@ void dna_adjust::PrepareAdjustment(const project_settings& projectSettings)
272272 InitialiseAdjustment ();
273273
274274 // Load network files
275- LoadNetworkFiles ();
275+ LoadNetworkFiles ();
276276
277277 // Load type b uncertainties, method handler, and the station map
278278 InitialiseTypeBUncertainties ();
@@ -2083,7 +2083,9 @@ void dna_adjust::AddConstraintStationstoNormalsForward(const UINT32& block)
20832083 FormConstraintStationVarianceMatrix (_it_const, var_cart);
20842084
20852085 if (projectSettings_.g .verbose > 6 )
2086- debug_file << " parameter station " << bstBinaryRecords_.at ((*_it_const)).stationName << std::scientific << std::setprecision (16 ) << var_cart << std::endl;
2086+ debug_file << " Parameter station " << bstBinaryRecords_.at ((*_it_const)).stationName
2087+ << " (" << bstBinaryRecords_.at ((*_it_const)).stationConst << " ) "
2088+ << std::scientific << std::setprecision (16 ) << var_cart << std::endl;
20872089
20882090 // Add the variance to the normals
20892091 stn = v_blockStationsMap_.at (block)[(*_it_const)] * 3 ;
@@ -2200,12 +2202,17 @@ void dna_adjust::AddConstraintStationstoNormalsSimultaneous(const UINT32& block)
22002202 FormConstraintStationVarianceMatrix (_it_const, var_cart);
22012203
22022204 if (projectSettings_.g .verbose > 6 )
2203- debug_file << " parameter station " << bstBinaryRecords_.at ((*_it_const)).stationName << std::scientific << std::setprecision (16 ) << var_cart << std::endl;
2205+ debug_file << " Parameter station " << bstBinaryRecords_.at ((*_it_const)).stationName
2206+ << " (" << bstBinaryRecords_.at ((*_it_const)).stationConst << " ) "
2207+ << std::scientific << std::setprecision (16 ) << var_cart << std::endl;
22042208
22052209 // Add the variance to the normals
22062210 stn = v_blockStationsMap_.at (block)[(*_it_const)] * 3 ;
22072211 v_normals_.at (block).blockadd (stn, stn, var_cart, 0 , 0 , 3 , 3 );
22082212 }
2213+
2214+ if (projectSettings_.g .verbose > 6 )
2215+ debug_file << " Constrained normals " << std::scientific << std::setprecision (16 ) << v_normals_.at (block) << std::endl;
22092216}
22102217
22112218
@@ -5310,7 +5317,7 @@ void dna_adjust::LoadVarianceMatrix_G(it_vmsr_t _it_msr, matrix_2d* var_cart)
53105317 }
53115318
53125319 if (projectSettings_.g .verbose > 5 )
5313- debug_file << std::endl << " Inv V.dxyz " << std::fixed << std::setprecision (16 ) << std::setw (26 ) << var_cart;
5320+ debug_file << std::endl << " Inv V.dxyz " << std::fixed << std::setprecision (16 ) << std::setw (26 ) << * var_cart;
53145321
53155322}
53165323
@@ -5451,7 +5458,7 @@ void dna_adjust::LoadVarianceMatrix_X(it_vmsr_t _it_msr, matrix_2d* var_cart)
54515458 }
54525459
54535460 if (projectSettings_.g .verbose > 5 )
5454- debug_file << std::endl << " Inv V.dxyz " << std::fixed << std::setprecision (16 ) << std::setw (26 ) << var_cart;
5461+ debug_file << std::endl << " Inv V.dxyz " << std::fixed << std::setprecision (16 ) << std::setw (26 ) << * var_cart;
54555462
54565463}
54575464
@@ -5679,7 +5686,7 @@ void dna_adjust::LoadVarianceMatrix_Y(it_vmsr_t _it_msr, matrix_2d* var_cart, co
56795686 }
56805687
56815688 if (projectSettings_.g .verbose > 5 )
5682- debug_file << std::endl << " Inv V.dxyz " << std::fixed << std::setprecision (16 ) << std::setw (26 ) << var_cart;
5689+ debug_file << std::endl << " Inv V.dxyz " << std::fixed << std::setprecision (16 ) << std::setw (26 ) << * var_cart;
56835690
56845691}
56855692
@@ -6343,6 +6350,8 @@ void dna_adjust::UpdateDesignMeasMatrices_GX(pit_vmsr_t _it_msr, UINT32& design_
63436350 AddMsrtoMeasMinusComp (_it_msr, design_row,
63446351 (estimatedStations->get (stn2+2 , 0 ) - estimatedStations->get (stn1+2 , 0 )),
63456352 measMinusComp, false );
6353+ if (projectSettings_.g .verbose > 5 )
6354+ debug_file << std::endl;
63466355
63476356 if (buildnewMatrices || projectSettings_.a .stage )
63486357 {
@@ -7431,6 +7440,8 @@ void dna_adjust::UpdateDesignNormalMeasMatrices_Y(pit_vmsr_t _it_msr, UINT32& de
74317440 AddMsrtoMeasMinusComp (_it_msr, design_row,
74327441 estimatedStations->get (stn1+2 , 0 ),
74337442 measMinusComp, false );
7443+ if (projectSettings_.g .verbose > 5 )
7444+ debug_file << std::endl;
74347445
74357446 if (buildnewMatrices || projectSettings_.a .stage )
74367447 // Add Z elements to design matrix
@@ -7650,7 +7661,7 @@ void dna_adjust::Solve(bool COMPUTE_INVERSE, const UINT32& block)
76507661 if (projectSettings_.a .adjust_mode != SimultaneousMode)
76517662 debug_file << (forward_ ? " (Forward)" : " (Reverse)" );
76527663 debug_file << std::endl;
7653- debug_file << " Precisions" << std::fixed << std::setprecision (16 ) << v_normals_.at (block) << std::endl;
7664+ debug_file << " Precisions " << std::fixed << std::setprecision (16 ) << v_normals_.at (block) << std::endl;
76547665 }
76557666
76567667 // compute weighted "measured minus computed"
@@ -7696,13 +7707,13 @@ void dna_adjust::Solve(bool COMPUTE_INVERSE, const UINT32& block)
76967707 if (projectSettings_.a .adjust_mode != SimultaneousMode)
76977708 debug_file << (forward_ ? " (Forward)" : " (Reverse)" );
76987709 debug_file << std::endl;
7699- debug_file << " Weighted measurements" << std::fixed << std::setprecision (16 ) << At_Vinv_m << std::endl;
7710+ debug_file << " Weighted measurements " << std::fixed << std::setprecision (16 ) << At_Vinv_m << std::endl;
77007711
77017712 debug_file << " Block " << block + 1 ;
77027713 if (projectSettings_.a .adjust_mode != SimultaneousMode)
77037714 debug_file << (forward_ ? " (Forward)" : " (Reverse)" );
77047715 debug_file << std::endl;
7705- debug_file << " Corrections" << std::fixed << std::setprecision (16 ) << v_corrections_.at (block) << std::endl;
7716+ debug_file << " Corrections " << std::fixed << std::setprecision (16 ) << v_corrections_.at (block) << std::endl;
77067717 debug_file.flush ();
77077718
77087719 if (projectSettings_.a .multi_thread )
@@ -13376,11 +13387,9 @@ void dna_adjust::ReduceYLLHMeasurementsforPrinting(vmsr_t& y_msr, matrix_2d& mpo
1337613387 switch (print_mode)
1337713388 {
1337813389 case computedMsrs:
13379- x = _it_y_msr->term1 ;
13380- _it_y_msr++;
13381- y = _it_y_msr->term1 ;
13382- _it_y_msr++;
13383- z = _it_y_msr->term1 ;
13390+ latitude = stn1_it->currentLatitude ;
13391+ longitude = stn1_it->currentLongitude ;
13392+ height = stn1_it->currentHeight ;
1338413393 break ;
1338513394 case adjustedMsrs:
1338613395 default :
@@ -13389,20 +13398,18 @@ void dna_adjust::ReduceYLLHMeasurementsforPrinting(vmsr_t& y_msr, matrix_2d& mpo
1338913398 y = _it_y_msr->measAdj ;
1339013399 _it_y_msr++;
1339113400 z = _it_y_msr->measAdj ;
13401+
13402+ // Convert to geographic
13403+ CartToGeo<double >(x, y, z, &latitude, &longitude, &height, datum_.GetEllipsoidRef ());
13404+ _it_y_msr -= 2 ;
1339213405 break ;
1339313406 }
13394-
13395- // Convert to geographic
13396- CartToGeo<double >(x, y, z,
13397- &latitude, &longitude, &height,
13398- datum_.GetEllipsoidRef ());
1339913407
1340013408 // Reduce ellipsoidal height to orthometric height
13401- if (fabs (stn1_it->geoidSep ) > PRECISION_1E4)
13402- height -= stn1_it->geoidSep ;
13409+ if (fabs (stn1_it->geoidSep ) > PRECISION_1E4)
13410+ height -= stn1_it->geoidSep ;
1340313411
13404- // Assign computed values
13405- _it_y_msr -= 2 ;
13412+ // Assign computed values
1340613413 _it_y_msr->measAdj = latitude;
1340713414 _it_y_msr->measCorr = latitude - _it_y_msr->preAdjMeas ;
1340813415 mpositions.put (covr, 0 , latitude);
0 commit comments