Skip to content

Commit 6900223

Browse files
authored
Merge pull request GeoscienceAustralia#276 from GeoscienceAustralia/dr-refactor-printing
Refactor printing
2 parents c13db66 + 408ff6c commit 6900223

File tree

57 files changed

+12398
-10736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+12398
-10736
lines changed

dynadjust/dynadjust/dnaadjust/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ add_library (${PROJECT_NAME} SHARED
3131
measurement_processor.cpp
3232
dnaadjust-stage.cpp
3333
dnaadjust.cpp
34+
dnaadjust_printer.cpp
3435
${CMAKE_SOURCE_DIR}/dynadjust.rc)
3536

3637
target_link_libraries (${PROJECT_NAME} ${DNA_LIBRARIES})

dynadjust/dynadjust/dnaadjust/dnaadjust-multi.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void dna_adjust::AdjustPhasedMultiThread()
125125
// Print the iteration # to adj file.
126126
// protected write to adj file (not needed here since write to
127127
// adj file at this stage is via single thread
128-
PrintIteration(incrementIteration());
128+
printer_->PrintIteration(incrementIteration());
129129
///////////////////////////////////
130130

131131
concurrentAdjustments.reset_adjustment_runs();
@@ -244,9 +244,9 @@ void dna_adjust::AdjustPhasedMultiThread()
244244
adjustStatus_ = ADJUST_MAX_ITERATIONS_EXCEEDED;
245245

246246
// Print status
247-
PrintAdjustmentStatus();
247+
printer_->PrintAdjustmentStatus();
248248
// Compute and print time taken to run adjustment
249-
PrintAdjustmentTime(tot_time, total_time);
249+
printer_->PrintAdjustmentTime(tot_time, total_time);
250250
}
251251

252252

0 commit comments

Comments
 (0)