From abc14adc1944286ed6a496fb3dd16804b4567cf7 Mon Sep 17 00:00:00 2001 From: Ben Wibking Date: Thu, 10 Oct 2024 16:05:04 -0400 Subject: [PATCH] fix typo in b field init --- inputs/precipitator_mhd_lowres.in | 2 +- src/pgen/precipitator.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inputs/precipitator_mhd_lowres.in b/inputs/precipitator_mhd_lowres.in index 023d3a8c..250eeeac 100644 --- a/inputs/precipitator_mhd_lowres.in +++ b/inputs/precipitator_mhd_lowres.in @@ -11,7 +11,7 @@ dt = 50.0 # time increment between outputs file_type = hdf5 # HDF5 data dump variables = prim, drho_over_rho, dP_over_P, dK_over_K, dT_over_T, entropy, temperature, tcool_over_tff, dv_x, dv_y, dv_z -dt = 500.0 # Time increment between outputs +dt = 50.0 # Time increment between outputs id = prim # Name to append to output diff --git a/src/pgen/precipitator.cpp b/src/pgen/precipitator.cpp index 1bbc20d2..6deab6ed 100644 --- a/src/pgen/precipitator.cpp +++ b/src/pgen/precipitator.cpp @@ -1078,7 +1078,7 @@ void ProblemGenerator(MeshBlock *pmb, parthenon::ParameterInput *pin) { u_dev(IM2, k, j, i) = 0.0; u_dev(IM3, k, j, i) = 0.0; u_dev(IEN, k, j, i) = P / gm1; - u_dev(IB1, k, j, k) = Bx; + u_dev(IB1, k, j, i) = Bx; u_dev(IB2, k, j, i) = By; u_dev(IB3, k, j, i) = Bz; });