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
bebc280f
Commit
bebc280f
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Removed the unusued function hydro_reion_heating()
parent
536d370e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/hydro/PressureEnergy/hydro.h
+0
-18
0 additions, 18 deletions
src/hydro/PressureEnergy/hydro.h
with
0 additions
and
18 deletions
src/hydro/PressureEnergy/hydro.h
+
0
−
18
View file @
bebc280f
...
@@ -910,22 +910,4 @@ hydro_set_init_internal_energy(struct part *p, float u_init) {
...
@@ -910,22 +910,4 @@ hydro_set_init_internal_energy(struct part *p, float u_init) {
__attribute__
((
always_inline
))
INLINE
static
void
hydro_remove_part
(
__attribute__
((
always_inline
))
INLINE
static
void
hydro_remove_part
(
const
struct
part
*
p
,
const
struct
xpart
*
xp
)
{}
const
struct
part
*
p
,
const
struct
xpart
*
xp
)
{}
/**
* @brief Inputs extra heat to a particle at redshift of reionization
*
* We assume a constant density.
* @param p The particle of interest
* @param xp The extended particle data
* @param cosmo Cosmology data structure
* @param extra_heat The extra internal energy given to the particle.
*/
__attribute__
((
always_inline
))
INLINE
static
void
hydro_reion_heating
(
struct
part
*
p
,
struct
xpart
*
xp
,
const
struct
cosmology
*
cosmo
,
float
extra_heat
)
{
const
float
old_u
=
xp
->
u_full
*
cosmo
->
a_factor_internal_energy
;
const
float
new_u
=
old_u
+
extra_heat
;
xp
->
u_full
=
new_u
/
cosmo
->
a_factor_internal_energy
;
}
#endif
/* SWIFT_PRESSURE_ENERGY_HYDRO_H */
#endif
/* SWIFT_PRESSURE_ENERGY_HYDRO_H */
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