Skip to content
Snippets Groups Projects
Commit d80df591 authored by Yolan Uyttenhove's avatar Yolan Uyttenhove
Browse files

Move comment to docstring

parent 55cff7d7
No related branches found
No related tags found
2 merge requests!1825Chemistry API changes for metal fluxes,!1749Draft: Merge the moving mesh hydro scheme in master
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
* @brief update metal mass fluxes between two interacting particles during * @brief update metal mass fluxes between two interacting particles during
* hydro_iact_(non)sym(...) calls. * hydro_iact_(non)sym(...) calls.
* *
* Metals are advected. I.e. a particle loses metals according to its own
* metal mass fractions and gains mass according to the neighboring particle's
* mass fractions.
*
* @param pi first interacting particle * @param pi first interacting particle
* @param pj second interacting particle * @param pj second interacting particle
* @param mass_flux the mass flux between these two particles. * @param mass_flux the mass flux between these two particles.
...@@ -35,9 +39,6 @@ __attribute__((always_inline)) INLINE static void runner_iact_chemistry_fluxes( ...@@ -35,9 +39,6 @@ __attribute__((always_inline)) INLINE static void runner_iact_chemistry_fluxes(
struct part *restrict pi, struct part *restrict pj, float mass_flux, struct part *restrict pi, struct part *restrict pj, float mass_flux,
float flux_dt, int mode) { float flux_dt, int mode) {
#ifdef HYDRO_DOES_MASS_FLUX #ifdef HYDRO_DOES_MASS_FLUX
/* Metals are advected. I.e. a particle loses metals according to its own
* metal mass fractions and gains mass according to the neighboring particle's
* mass fractions. */
const float mass_flux_integrated = mass_flux * flux_dt; const float mass_flux_integrated = mass_flux * flux_dt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment