Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
d80df591
Commit
d80df591
authored
1 year ago
by
Yolan Uyttenhove
Browse files
Options
Downloads
Patches
Plain Diff
Move comment to docstring
parent
55cff7d7
No related branches found
No related tags found
2 merge requests
!1825
Chemistry API changes for metal fluxes
,
!1749
Draft: Merge the moving mesh hydro scheme in master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/chemistry/EAGLE/chemistry_additions.h
+4
-3
4 additions, 3 deletions
src/chemistry/EAGLE/chemistry_additions.h
with
4 additions
and
3 deletions
src/chemistry/EAGLE/chemistry_additions.h
+
4
−
3
View file @
d80df591
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment