Skip to content
Snippets Groups Projects
Commit 4ad9d40e authored by JBorrow's avatar JBorrow
Browse files

Fixed incorrect variable name in PressureEnergyMorrisMonaghanAV

parent f3394689
Branches
Tags
1 merge request!926Alternative definition of the number of neighbours
......@@ -427,7 +427,7 @@ hydro_set_drifted_physical_internal_energy(struct part *p,
/* Update variables. */
p->force.soundspeed = soundspeed;
p->viscosity.v_sig = max(p->viscosity.v_sig, 2.f * soundspeed);
p->force.v_sig = max(p->force.v_sig, 2.f * soundspeed);
}
/**
......@@ -792,7 +792,7 @@ __attribute__((always_inline)) INLINE static void hydro_predict_extra(
gas_soundspeed_from_pressure(p->rho, p->pressure_bar);
p->force.soundspeed = soundspeed;
p->viscosity.v_sig = max(p->viscosity.v_sig, 2.f * soundspeed);
p->force.v_sig = max(p->force.v_sig, 2.f * soundspeed);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment