Skip to content

Commit

Permalink
Log time taken to write SFH outputs
Browse files Browse the repository at this point in the history
Signed-off-by: Rodrigo Tobar <[email protected]>
  • Loading branch information
rtobar committed Aug 17, 2023
1 parent db8b219 commit 35129a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/galaxy_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,8 @@ void HDF5GalaxyWriter::write_sf_histories (int snapshot, const std::vector<HaloP

if(exec_params.output_sf_histories){
if(std::find(exec_params.snapshots_sf_histories.begin(), exec_params.snapshots_sf_histories.end(), snapshot) != exec_params.snapshots_sf_histories.end()){

Timer sfh_writer_timer;
hdf5::Writer file_sfh(get_output_directory(snapshot) + "/star_formation_histories.hdf5");

//Create the vectors that will save the information of the galaxies
Expand Down Expand Up @@ -1307,6 +1309,7 @@ void HDF5GalaxyWriter::write_sf_histories (int snapshot, const std::vector<HaloP
comment = "Time interval covered between snapshots [Gyr]";
file_sfh.write_dataset("delta_t", delta_t, comment);

LOG(info) << "Galaxies SFH data written in " << sfh_writer_timer;
}

}
Expand Down

0 comments on commit 35129a9

Please sign in to comment.