Skip to content

Commit 2180696

Browse files
committed
tidy
1 parent 94dac35 commit 2180696

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

src/problems/DiskGalaxy/testDiskGalaxy.cpp

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,6 @@ template <> void QuokkaSimulation<AgoraGalaxy>::setInitialConditionsOnGrid(quokk
262262
}
263263
amrex::Real const Emag = 0.5 * ((Bx * Bx) + (By * By));
264264

265-
// compute density profile
266-
auto rho_exact = [rho_0, R_d, z_d](double x, double y, double z) {
267-
double const R = std::sqrt(std::pow(x, 2) + std::pow(y, 2));
268-
return rho_0 * std::exp(-R / R_d) * std::exp(-std::abs(z) / z_d);
269-
};
270-
271265
auto vcirc_exact = [R_table_min, R_table_max, R_table, vcirc_inner, vcirc_outer, vcirc_table, len_table](const amrex::Real R) {
272266
double vcirc = NAN;
273267
if (R > R_table_min && R < R_table_max) {
@@ -605,8 +599,8 @@ template <> void QuokkaSimulation<AgoraGalaxy>::ComputeDerivedVar(int lev, std::
605599
if (dname == "radius_sph") {
606600
const int ncomp = ncomp_cc_in;
607601
auto const geom_data = geom[lev].data();
608-
auto const prob_lo = geom_data.ProbLo();
609-
auto const dx = geom_data.CellSize();
602+
const auto *const prob_lo = geom_data.ProbLo();
603+
const auto *const dx = geom_data.CellSize();
610604
for (amrex::MFIter iter(mf); iter.isValid(); ++iter) {
611605
const amrex::Box &indexRange = iter.validbox();
612606
auto const &output = mf.array(iter);
@@ -642,8 +636,8 @@ template <> void QuokkaSimulation<AgoraGalaxy>::ComputeDerivedVar(int lev, std::
642636
if (dname == "radial_velocity") {
643637
const int ncomp = ncomp_cc_in;
644638
auto const geom_data = geom[lev].data();
645-
auto const prob_lo = geom_data.ProbLo();
646-
auto const dx = geom_data.CellSize();
639+
const auto *const prob_lo = geom_data.ProbLo();
640+
const auto *const dx = geom_data.CellSize();
647641
for (amrex::MFIter iter(mf); iter.isValid(); ++iter) {
648642
const amrex::Box &indexRange = iter.validbox();
649643
auto const &output = mf.array(iter);
@@ -666,8 +660,8 @@ template <> void QuokkaSimulation<AgoraGalaxy>::ComputeDerivedVar(int lev, std::
666660
if (dname == "circular_velocity") {
667661
const int ncomp = ncomp_cc_in;
668662
auto const geom_data = geom[lev].data();
669-
auto const prob_lo = geom_data.ProbLo();
670-
auto const dx = geom_data.CellSize();
663+
const auto *const prob_lo = geom_data.ProbLo();
664+
const auto *const dx = geom_data.CellSize();
671665
for (amrex::MFIter iter(mf); iter.isValid(); ++iter) {
672666
const amrex::Box &indexRange = iter.validbox();
673667
auto const &output = mf.array(iter);

0 commit comments

Comments
 (0)