From 69554e172506d4cb747314847cb8b96d13b9d753 Mon Sep 17 00:00:00 2001 From: Ryan Brady Date: Tue, 7 May 2024 18:03:24 -0400 Subject: [PATCH] add WD-He interface temp to output file name (#68) --- .github/workflows/sub_chandra.yml | 2 +- sub_chandra/init_1d.H | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sub_chandra.yml b/.github/workflows/sub_chandra.yml index 578df7a..744fe90 100644 --- a/.github/workflows/sub_chandra.yml +++ b/.github/workflows/sub_chandra.yml @@ -50,7 +50,7 @@ jobs: - name: Compare to stored output run: | cd sub_chandra - diff sub_chandra.M_WD-1.10.M_He-0.050.delta50.00km.hse.CO.N14.dx10.00km ci-benchmarks/sub_chandra.M_WD-1.10.M_He-0.050.delta50.00km.hse.CO.N14.dx10.00km + diff sub_chandra.M_WD-1.10.M_He-0.050.delta50.00km.temp_base-1.75e+08.hse.CO.N14.dx10.00km ci-benchmarks/sub_chandra.M_WD-1.10.M_He-0.050.delta50.00km.hse.CO.N14.dx10.00km diff --git a/sub_chandra/init_1d.H b/sub_chandra/init_1d.H index c8bf3e7..f876d84 100644 --- a/sub_chandra/init_1d.H +++ b/sub_chandra/init_1d.H @@ -588,7 +588,11 @@ 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 = problem_rp::prefix + ".M_WD-" + mass_wd_str + ".M_He-" + mass_he_str + ".delta" + delta_str; + std::stringstream ss3; + ss3 << problem_rp::temp_base; + std::string temp_base_str = ss3.str(); + + std::string outfile_base = problem_rp::prefix + ".M_WD-" + mass_wd_str + ".M_He-" + mass_he_str + ".delta" + delta_str + ".temp_base-" + temp_base_str; std::string outfile = outfile_base + ".hse";