Skip to content

Commit

Permalink
add delta to the filename:
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Oct 2, 2023
1 parent 1c6d1be commit 7809cad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sub_chandra/init_1d.H
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,8 @@ AMREX_INLINE void init_1d() {
Real dCoord = xzn_hse(1) - xzn_hse(0);
std::string dxstr = num_to_unitstring(dCoord);

std::string delta_str = num_to_unitstring(problem_rp::delta);

std::stringstream ss;
ss << std::setprecision(2) << std::fixed << mass_wd / C::M_solar;
std::string mass_wd_str = ss.str();
Expand All @@ -576,7 +578,8 @@ AMREX_INLINE void init_1d() {
ss2 << std::setprecision(3) << std::fixed << mass_he / C::M_solar;
std::string mass_he_str = ss2.str();

std::string outfile_base = "sub_chandra.M_WD-" + mass_wd_str + ".M_He-" + mass_he_str;
std::string outfile_base = "sub_chandra.M_WD-" + mass_wd_str + ".M_He-" + mass_he_str + ".delta" + delta_str;


std::string outfile = outfile_base + ".hse";

Expand Down

0 comments on commit 7809cad

Please sign in to comment.