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

GEAR: fix define

parent 98a77ce5
No related branches found
No related tags found
1 merge request!1052Gear cosmological simulations
...@@ -304,7 +304,7 @@ __attribute__((always_inline)) INLINE static void star_formation_end_density( ...@@ -304,7 +304,7 @@ __attribute__((always_inline)) INLINE static void star_formation_end_density(
/* Copy the velocity divergence */ /* Copy the velocity divergence */
xp->sf_data.div_v = p->viscosity.div_v; xp->sf_data.div_v = p->viscosity.div_v;
/* SPHENIX is already including the Hubble flow */ /* SPHENIX is already including the Hubble flow */
#elif GADGET_SPH #elif GADGET2_SPH
/* 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;
xp->sf_data.div_v += hydro_dimension * cosmo->H; xp->sf_data.div_v += hydro_dimension * cosmo->H;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment