Skip to content

Commit

Permalink
Merge branch 'hendrik_smash_covariant' into Jetscape_smash_IC
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrik1704 committed Mar 7, 2024
2 parents d3ae23a + bcb48b5 commit 8d6bb51
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 114 deletions.
4 changes: 2 additions & 2 deletions src/grid_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1106,14 +1106,14 @@ void Cell_info::compute_angular_momentum(


//! This function checks the total energy and total net baryon, electric charge and strangeness number
//! at a give proper time
//! at a given proper time
void Cell_info::check_conservation_law(Fields &arena, Fields &arena_prev,
const double tau) {
std::string filename = "global_conservation_laws.dat";
ofstream output_file;
if (std::abs(tau - DATA.tau0) < 1e-10) {
output_file.open(filename.c_str(), std::ofstream::out);
output_file << "# tau(fm) E(GeV) Px(GeV) Py(GeV) Pz(GeV) N_B "
output_file << "# tau(fm) E(GeV) Px(GeV) Py(GeV) Pz(GeV) N_B N_Q N_S"
<< std::endl;
} else {
output_file.open(filename.c_str(),
Expand Down
Loading

0 comments on commit 8d6bb51

Please sign in to comment.