Skip to content

Commit

Permalink
fix arg order
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Mar 4, 2024
1 parent f35a2fa commit 1ff3999
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inputs/precipitator_lowres.in
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ perturb_exponent = 1 # P(k) ~ k^{-2}
sigma_v = 0.0001 # kpc Myr^{-1}
k_peak = 2
num_modes = 12
xy_modes_only = true
vertical_driving_only = true
sol_weight = 1.0
rseed = 42
t_corr = 500.0 # Myr
4 changes: 2 additions & 2 deletions src/pgen/precipitator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,8 @@ void ProblemInitPackageData(ParameterInput *pin, parthenon::StateDescriptor *pkg

// when only v_z is desired, ensure that always k_z == 0
const bool xy_modes_only = vertical_driving_only;
auto k_vec_v = utils::few_modes_ft::MakeRandomModes(num_modes_v, k_peak_v,
xy_modes_only, rseed_v);
auto k_vec_v = utils::few_modes_ft::MakeRandomModes(num_modes_v, k_peak_v, rseed_v,
vertical_driving_only);

auto few_modes_ft = FewModesFT(pin, hydro_pkg, "precipitator_perturb_v", num_modes_v,
k_vec_v, k_peak_v, sol_weight_v, t_corr, rseed_v);
Expand Down

0 comments on commit 1ff3999

Please sign in to comment.