Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
19490f8e
Commit
19490f8e
authored
Aug 15, 2019
by
Loic Hausammann
Browse files
GEAR: update pressure_floor/none API
parent
c78ba29b
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
19490f8e
...
...
@@ -61,6 +61,7 @@
#include
"hydro_properties.h"
#include
"memswap.h"
#include
"minmax.h"
#include
"pressure_floor.h"
#include
"scheduler.h"
#include
"space.h"
#include
"space_getsid.h"
...
...
src/pressure_floor/GEAR/pressure_floor.h
View file @
19490f8e
...
...
@@ -84,6 +84,7 @@ __attribute__((always_inline)) static INLINE float pressure_floor_get_physical_p
*
* @param p The #part.
* @param pressure_comoving The comoving pressure without any pressure floor.
* @param cosmo The #cosmology model.
*
* @return The physical or comoving pressure with the floor.
*/
...
...
src/pressure_floor/none/pressure_floor.h
View file @
19490f8e
...
...
@@ -44,13 +44,12 @@ struct pressure_floor_properties {};
*
* @param p The #part.
* @param rho The physical or comoving density.
* @param
pressure The physical pressure without any pressure floor
.
* @param
cosmo The #cosmology model
.
*
* @return The physical pressure with the floor.
*/
static
INLINE
float
pressure_floor_get_physical_pressure
(
const
struct
part
*
p
,
const
float
rho
,
const
float
pressure
)
{
static
INLINE
float
pressure_floor_get_physical_pressure
(
const
struct
part
*
p
,
const
float
rho
,
const
struct
cosmology
*
cosmo
)
{
return
pressure
;
}
...
...
@@ -61,13 +60,12 @@ static INLINE float pressure_floor_get_physical_pressure(const struct part* p,
*
* @param p The #part.
* @param rho The physical or comoving density.
* @param
pressure
The como
ving pressure without any pressure floor
.
* @param
cosmo
The
#
co
s
mo
logy model
.
*
* @return The comoving pressure with the floor.
*/
static
INLINE
float
pressure_floor_get_comoving_pressure
(
const
struct
part
*
p
,
const
float
rho
,
const
float
pressure
)
{
static
INLINE
float
pressure_floor_get_comoving_pressure
(
const
struct
part
*
p
,
const
float
rho
,
const
struct
cosmology
*
cosmo
)
{
return
pressure
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment