diff --git a/src/mhd/VPotential/mhd.h b/src/mhd/VPotential/mhd.h index 8a2d41f51c1750cc3aeb16b0de0412e67bc2cf3f..d26d7d29ea434ae04c64abe3b6c7758eaae357ef 100644 --- a/src/mhd/VPotential/mhd.h +++ b/src/mhd/VPotential/mhd.h @@ -121,8 +121,8 @@ __attribute__((always_inline)) INLINE static float mhd_compute_timestep( const struct hydro_props *hydro_properties, const struct cosmology *cosmo, const float mu_0) { - //const float afac_divB = pow(cosmo->a, -mhd_comoving_factor - 0.5f); - const float afac_divB = pow(cosmo->a, -mhd_comoving_factor*0.5f - 0.5f); + const float afac_divB = pow(cosmo->a, -mhd_comoving_factor - 0.5f); + //const float afac_divB = pow(cosmo->a, -mhd_comoving_factor*0.5f - 0.5f); const float afac_resistive = cosmo->a * cosmo->a; /* Dt from 1/DivOperator(Alfven speed) */ @@ -278,7 +278,7 @@ __attribute__((always_inline)) INLINE static float hydro_get_dGau_dt( p->mhd_data.BPred[2] * p->mhd_data.BPred[2]); const float v_sig = sqrt(b2/mu0); const float afac1 = pow(c->a, 3.f * mhd_comoving_factor); - const float afac2 = pow(c->a, 2.f * mhd_comoving_factor); + const float afac2 = pow(c->a, 2.f * mhd_comoving_factor + 1.f); return (-p->mhd_data.divA * v_sig * v_sig * 0.1 * afac1 - 2.0f * v_sig * Gauge / p->h * afac2 - @@ -600,7 +600,6 @@ __attribute__((always_inline)) INLINE static void mhd_convert_quantities( __attribute__((always_inline)) INLINE static void mhd_first_init_part( struct part *restrict p, struct xpart *restrict xp, const struct mhd_global_data *mhd_data, const double Lsize) { - //xp->mhd_data.Gau_full = 0.0f; p->mhd_data.divB = 0.0f; mhd_reset_acceleration(p); diff --git a/src/mhd/VPotential/mhd_struct.h b/src/mhd/VPotential/mhd_struct.h index a7f83333037c7911f4ed6f5cd38ef9de9801dbe3..b36c39355530f9a9439898c4709dea437748aee4 100644 --- a/src/mhd/VPotential/mhd_struct.h +++ b/src/mhd/VPotential/mhd_struct.h @@ -47,8 +47,6 @@ struct mhd_part_data { */ struct mhd_xpart_data { - /* Full step Gauge */ - float Gau_full; /* Full step VPotential */ float APot_full[3]; };