Skip to content

Commit

Permalink
Per issue #2425, in do_stat_output, added line to write the table to …
Browse files Browse the repository at this point in the history
…the file-stream object. Now getting output in the out.stat file. SL ci-skip-all
  • Loading branch information
Seth Linden committed Apr 17, 2023
1 parent d44e5f0 commit 4226b60
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions src/tools/tc_utils/tc_stat/tc_stat_job.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3168,7 +3168,6 @@ void TCStatJobRIRW::do_job(const StringArray &file_list,
close_dump_file();

// Process the RI/RW job output

if(StatOut)
do_stat_output(*StatOut);
else if(JobOut)
Expand All @@ -3177,14 +3176,9 @@ void TCStatJobRIRW::do_job(const StringArray &file_list,
do_output(cout);

// Close the stat file
close_stat_file();
if(StatOut)
close_stat_file();

// New changes
//if(StatOut) {
// do_stat_output(*StatOut);
// close_stat_file();
//}

return;
}

Expand Down Expand Up @@ -3797,9 +3791,8 @@ void TCStatJobRIRW::do_stat_output(ostream &out) {
// Will need other shc settings here

// from stat_analysis
//shc = it->second.hdr.get_shc(it->first, job.by_column,
//job.hdr_name, job.hdr_value, lt);

//shc = it->second.hdr.get_shc(it->first, job.by_column, job.hdr_name, job.hdr_value, lt);

// From 04/06/23
// Could set shc to blank string (na) for now?

Expand All @@ -3819,8 +3812,7 @@ void TCStatJobRIRW::do_stat_output(ostream &out) {
//
if(OutLineType.has(stat_ctc_str)) {
shc.set_alpha(bad_data_double);
write_ctc_cols(it->second.Info, stat_at,
stat_row++, n_header_columns);
write_ctc_cols(it->second.Info, stat_at, stat_row++, n_header_columns);
}

//
Expand All @@ -3845,11 +3837,13 @@ void TCStatJobRIRW::do_stat_output(ostream &out) {
//
// Write the data line
//
write_cts_cols(it->second.Info, 0, stat_at,
stat_row++, n_header_columns);
}
write_cts_cols(it->second.Info, 0, stat_at, stat_row++, n_header_columns);
}
} // end for it


// Write the table
out << stat_at << "\n" << flush;

return;
}

Expand Down

0 comments on commit 4226b60

Please sign in to comment.