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
9c863d85
Commit
9c863d85
authored
6 years ago
by
Loic Hausammann
Browse files
Options
Downloads
Patches
Plain Diff
Remove cosmology in `cosmology_get_a_from_z`
parent
ba86355c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!560
Output time from a file
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cosmology.c
+1
-2
1 addition, 2 deletions
src/cosmology.c
src/cosmology.h
+1
-2
1 addition, 2 deletions
src/cosmology.h
with
2 additions
and
4 deletions
src/cosmology.c
+
1
−
2
View file @
9c863d85
...
...
@@ -669,10 +669,9 @@ double cosmology_get_delta_time(const struct cosmology *c,
/**
* @brief Compute the scale factor from the redshift.
*
* @brief c The current #cosmology.
* @brief redshift The redshift to compute.
*/
double
cosmology_get_a_from_z
(
const
struct
cosmology
*
c
,
double
redshift
)
{
double
cosmology_get_a_from_z
(
double
redshift
)
{
return
1
.
/
(
1
.
+
redshift
);
}
...
...
This diff is collapsed.
Click to expand it.
src/cosmology.h
+
1
−
2
View file @
9c863d85
...
...
@@ -183,8 +183,7 @@ double cosmology_get_therm_kick_factor(const struct cosmology *cosmo,
double
cosmology_get_delta_time
(
const
struct
cosmology
*
c
,
integertime_t
ti_start
,
integertime_t
ti_end
);
double
cosmology_get_a_from_z
(
const
struct
cosmology
*
c
,
double
redshift
);
double
cosmology_get_a_from_z
(
double
redshift
);
double
cosmology_get_scale_factor
(
const
struct
cosmology
*
cosmo
,
double
t
);
...
...
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