Skip to content

Commit 5382fcc

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 531c9bc commit 5382fcc

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

src/problems/OneZonePhotoionization/testOneZonePhotoionization.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ template <> struct RadSystem_Traits<PhotoionizationStreamingProblem> {
6262
static constexpr double c_hat_over_c = chat / c;
6363
static constexpr double Erad_floor = 0.0;
6464
static constexpr int beta_order = 0;
65-
static constexpr amrex::GpuArray<double, NumChemBands + 1> ChemBands()
66-
{
67-
return ChemBandsHeader_;
68-
}
65+
static constexpr amrex::GpuArray<double, NumChemBands + 1> ChemBands() { return ChemBandsHeader_; }
6966
};
7067

7168
template <> struct SimulationData<PhotoionizationStreamingProblem> {
@@ -409,9 +406,8 @@ auto problem_main() -> int
409406
matplotlibcpp::ylabel("number density (cm^-3)");
410407
matplotlibcpp::legend();
411408
matplotlibcpp::tight_layout();
412-
const std::string species_plot_filename = (energy_switch == 0)
413-
? "./photoionization_species_no_energy.pdf"
414-
: "./photoionization_species_with_energy.pdf";
409+
const std::string species_plot_filename =
410+
(energy_switch == 0) ? "./photoionization_species_no_energy.pdf" : "./photoionization_species_with_energy.pdf";
415411
matplotlibcpp::save(species_plot_filename);
416412

417413
if (energy_switch == 1) {

src/problems/StromgrenSphere/testStromgrenSphere.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ template <> struct RadSystem_Traits<StromgrenSphere> {
6262
static constexpr double c_hat_over_c = c_hat / C::c_light;
6363
static constexpr double Erad_floor = 1e-99;
6464
static constexpr int beta_order = 0;
65-
static constexpr amrex::GpuArray<double, NumChemBands + 1> ChemBands()
66-
{
67-
return ChemBandsHeader_;
68-
}
65+
static constexpr amrex::GpuArray<double, NumChemBands + 1> ChemBands() { return ChemBandsHeader_; }
6966
};
7067

7168
template <>

0 commit comments

Comments
 (0)