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
3c182b46
Commit
3c182b46
authored
6 years ago
by
James Willis
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused header file. Added comments to VELOCIraptor variables.
parent
252c3d4f
No related branches found
No related tags found
1 merge request
!578
Swift velociraptor
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/velociraptor_interface.c
+0
-1
0 additions, 1 deletion
src/velociraptor_interface.c
src/velociraptor_interface.h
+39
-2
39 additions, 2 deletions
src/velociraptor_interface.h
with
39 additions
and
3 deletions
src/velociraptor_interface.c
+
0
−
1
View file @
3c182b46
...
...
@@ -22,7 +22,6 @@
/* Some standard headers. */
#include
<errno.h>
#include
<libgen.h>
#include
<unistd.h>
/* This object's header. */
...
...
This diff is collapsed.
Click to expand it.
src/velociraptor_interface.h
+
39
−
2
View file @
3c182b46
...
...
@@ -29,12 +29,49 @@
/* Structure for passing cosmological information to VELOCIraptor. */
struct
cosmoinfo
{
double
atime
,
littleh
,
Omega_m
,
Omega_b
,
Omega_Lambda
,
Omega_cdm
,
w_de
;
/*! Current expansion factor of the Universe. (cosmology.a) */
double
atime
;
/*! Reduced Hubble constant (H0 / (100km/s/Mpc) (cosmology.h) */
double
littleh
;
/*! Matter density parameter (cosmology.Omega_m) */
double
Omega_m
;
/*! Baryon density parameter (cosmology.Omega_b) */
double
Omega_b
;
/*! Radiation constant density parameter (cosmology.Omega_lambda) */
double
Omega_Lambda
;
/*! Dark matter density parameter (cosmology.Omega_m - cosmology.Omega_b) */
double
Omega_cdm
;
/*! Dark-energy equation of state at the current time (cosmology.w)*/
double
w_de
;
};
/* Structure for passing unit information to VELOCIraptor. */
struct
unitinfo
{
double
lengthtokpc
,
velocitytokms
,
masstosolarmass
,
energyperunitmass
,
gravity
,
hubbleunit
;
/* Length conversion factor to kpc. */
double
lengthtokpc
;
/* Velocity conversion factor to km/s. */
double
velocitytokms
;
/* Mass conversion factor to solar masses. */
double
masstosolarmass
;
/* Potential conversion factor. */
double
energyperunitmass
;
/*! Newton's gravitationl constant (phys_const.const_newton_G)*/
double
gravity
;
/*! Hubble constant at the current redshift (cosmology.H) */
double
hubbleunit
;
};
/* Structure to hold the location of a top-level cell. */
...
...
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