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
4e3492b3
Commit
4e3492b3
authored
1 year ago
by
Yolan Uyttenhove
Browse files
Options
Downloads
Patches
Plain Diff
make debug check stricter
parent
a4be83fa
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.h
+6
-2
6 additions, 2 deletions
src/chemistry/EAGLE/chemistry.h
with
6 additions
and
2 deletions
src/chemistry/EAGLE/chemistry.h
+
6
−
2
View file @
4e3492b3
...
...
@@ -391,8 +391,12 @@ __attribute__((always_inline)) INLINE static void chemistry_kick_extra(
for
(
int
i
=
0
;
i
<
chemistry_element_count
;
i
++
)
{
sum
+=
p
->
chemistry_data
.
metal_mass_fraction
[
i
];
}
if
(
sum
>
1
.
f
)
error
(
"Sum of element-wise metal mass fractions grew larger than 1!"
);
sum
-=
p
->
chemistry_data
.
metal_mass_fraction
[
chemistry_element_H
];
sum
-=
p
->
chemistry_data
.
metal_mass_fraction
[
chemistry_element_He
];
if
(
sum
>
p
->
chemistry_data
.
metal_mass_fraction_total
)
error
(
"Sum of element-wise metal mass fractions grew larger than total "
"metal mass fraction!"
);
#endif
chemistry_reset_mass_fluxes
(
p
);
}
...
...
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