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
426f0566
Commit
426f0566
authored
5 years ago
by
Loic Hausammann
Browse files
Options
Downloads
Patches
Plain Diff
GEAR: fix cosmoligical factor
parent
49f31889
No related branches found
No related tags found
1 merge request
!1052
Gear cosmological simulations
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pressure_floor/GEAR/pressure_floor.h
+1
-1
1 addition, 1 deletion
src/pressure_floor/GEAR/pressure_floor.h
with
1 addition
and
1 deletion
src/pressure_floor/GEAR/pressure_floor.h
+
1
−
1
View file @
426f0566
...
@@ -98,7 +98,7 @@ pressure_floor_get_comoving_pressure(const struct part* p,
...
@@ -98,7 +98,7 @@ pressure_floor_get_comoving_pressure(const struct part* p,
const
float
pressure_comoving
,
const
float
pressure_comoving
,
const
struct
cosmology
*
cosmo
)
{
const
struct
cosmology
*
cosmo
)
{
const
float
a_coef
=
pow_three_gamma_minus_one
(
cosmo
->
a
)
*
cosmo
->
a_inv
;
const
float
a_coef
=
pow_three_gamma_minus_one
(
cosmo
->
a
);
const
float
rho
=
hydro_get_comoving_density
(
p
);
const
float
rho
=
hydro_get_comoving_density
(
p
);
/* Compute the pressure floor */
/* Compute the pressure floor */
...
...
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