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
6260b839
Commit
6260b839
authored
6 years ago
by
Josh Borrow
Browse files
Options
Downloads
Patches
Plain Diff
Updated documentation and function signature for kick_extra in PU
parent
45bfc03c
No related branches found
No related tags found
1 merge request
!611
Cosmology pressure energy
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/hydro/PressureEnergy/hydro.h
+6
-2
6 additions, 2 deletions
src/hydro/PressureEnergy/hydro.h
with
6 additions
and
2 deletions
src/hydro/PressureEnergy/hydro.h
+
6
−
2
View file @
6260b839
...
@@ -580,12 +580,16 @@ __attribute__((always_inline)) INLINE static void hydro_end_force(
...
@@ -580,12 +580,16 @@ __attribute__((always_inline)) INLINE static void hydro_end_force(
* @param p The particle to act upon.
* @param p The particle to act upon.
* @param xp The particle extended data to act upon.
* @param xp The particle extended data to act upon.
* @param dt_therm The time-step for this kick (for thermodynamic quantities).
* @param dt_therm The time-step for this kick (for thermodynamic quantities).
* @param dt_grav The time-step for this kick (for gravity quantities).
* @param dt_hydro The time-step for this kick (for hydro quantities).
* @param dt_kick_corr The time-step for this kick (for gravity corrections).
* @param cosmo The cosmological model.
* @param hydro_props The constants used in the scheme
*/
*/
__attribute__
((
always_inline
))
INLINE
static
void
hydro_kick_extra
(
__attribute__
((
always_inline
))
INLINE
static
void
hydro_kick_extra
(
struct
part
*
restrict
p
,
struct
xpart
*
restrict
xp
,
float
dt_therm
,
struct
part
*
restrict
p
,
struct
xpart
*
restrict
xp
,
float
dt_therm
,
float
dt_grav
,
float
dt_hydro
,
float
dt_kick_corr
,
float
dt_grav
,
float
dt_hydro
,
float
dt_kick_corr
,
const
struct
cosmology
*
cosmo
,
const
struct
cosmology
*
cosmo
,
const
struct
hydro_props
*
hydro_props
)
{
const
struct
hydro_props
*
restrict
hydro_properties
)
{
/* Do not decrease the energy by more than a factor of 2*/
/* Do not decrease the energy by more than a factor of 2*/
if
(
dt_therm
>
0
.
&&
p
->
u_dt
*
dt_therm
<
-
0
.
5
f
*
xp
->
u_full
)
{
if
(
dt_therm
>
0
.
&&
p
->
u_dt
*
dt_therm
<
-
0
.
5
f
*
xp
->
u_full
)
{
...
...
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