Skip to content
Snippets Groups Projects
Commit 7741d06f authored by Loic Hausammann's avatar Loic Hausammann
Browse files

GEAR: sphenix does not store div_v at the same place than gadget

parent 30a0eca4
Branches
Tags
1 merge request!1052Gear cosmological simulations
...@@ -298,8 +298,13 @@ __attribute__((always_inline)) INLINE static void star_formation_end_density( ...@@ -298,8 +298,13 @@ __attribute__((always_inline)) INLINE static void star_formation_end_density(
struct part* restrict p, struct xpart* restrict xp, struct part* restrict p, struct xpart* restrict xp,
const struct star_formation* cd, const struct cosmology* cosmo) { const struct star_formation* cd, const struct cosmology* cosmo) {
#ifdef SPHENIX_SPH
/* Copy the velocity divergence */
xp->sf_data.div_v = p->viscosity.div_v;
#else
/* Copy the velocity divergence */ /* Copy the velocity divergence */
xp->sf_data.div_v = p->density.div_v; xp->sf_data.div_v = p->density.div_v;
#endif
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment