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
d3f1b59b
Commit
d3f1b59b
authored
4 years ago
by
Loic Hausammann
Committed by
Matthieu Schaller
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CSDS cosmo
parent
68cb3d8d
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1382
CSDS cosmo
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
csds
+1
-1
1 addition, 1 deletion
csds
src/csds_io.c
+13
-0
13 additions, 0 deletions
src/csds_io.c
with
14 additions
and
1 deletion
csds
@
30524e2c
Compare
62c0b356
...
30524e2c
Subproject commit
62c0b35675e88a76615154dcbdf0122755be7e5
6
Subproject commit
30524e2c425e276289218025e4afc68425a6517
6
This diff is collapsed.
Click to expand it.
src/csds_io.c
+
13
−
0
View file @
d3f1b59b
...
...
@@ -102,6 +102,19 @@ void csds_write_description(struct csds_writer* log, struct engine* e) {
fprintf
(
f
,
" NumberGParts: %li
\n
"
,
e
->
s
->
nr_gparts
);
fprintf
(
f
,
"
\n
"
);
/* Write the cosmology */
fprintf
(
f
,
"Cosmology:
\n
"
);
fprintf
(
f
,
" Omega_cdm: %g
\n
"
,
e
->
cosmology
->
Omega_cdm
);
fprintf
(
f
,
" Omega_lambda: %g
\n
"
,
e
->
cosmology
->
Omega_lambda
);
fprintf
(
f
,
" Omega_b: %g
\n
"
,
e
->
cosmology
->
Omega_b
);
fprintf
(
f
,
" Omega_r: %g
\n
"
,
e
->
cosmology
->
Omega_r
);
fprintf
(
f
,
" Omega_k: %g
\n
"
,
e
->
cosmology
->
Omega_k
);
fprintf
(
f
,
" Omega_nu_0: %g
\n
"
,
e
->
cosmology
->
Omega_nu_0
);
fprintf
(
f
,
" w_0: %g
\n
"
,
e
->
cosmology
->
w_0
);
fprintf
(
f
,
" w_a: %g
\n
"
,
e
->
cosmology
->
w_a
);
fprintf
(
f
,
" Hubble0: %g
\n
"
,
e
->
cosmology
->
H0
);
fprintf
(
f
,
"
\n
"
);
/* Write unit system */
const
struct
unit_system
*
us
=
e
->
internal_units
;
fprintf
(
f
,
"InternalUnitSystem:
\n
"
);
...
...
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