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
fdae9b90
Commit
fdae9b90
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Added BHs to the on-the-fly interface of VR
parent
b9f7e280
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/velociraptor_interface.c
+8
-0
8 additions, 0 deletions
src/velociraptor_interface.c
with
8 additions
and
0 deletions
src/velociraptor_interface.c
+
8
−
0
View file @
fdae9b90
...
@@ -237,6 +237,7 @@ void velociraptor_convert_particles_mapper(void *map_data, int nr_gparts,
...
@@ -237,6 +237,7 @@ void velociraptor_convert_particles_mapper(void *map_data, int nr_gparts,
const
struct
part
*
parts
=
s
->
parts
;
const
struct
part
*
parts
=
s
->
parts
;
const
struct
xpart
*
xparts
=
s
->
xparts
;
const
struct
xpart
*
xparts
=
s
->
xparts
;
const
struct
spart
*
sparts
=
s
->
sparts
;
const
struct
spart
*
sparts
=
s
->
sparts
;
const
struct
bpart
*
bparts
=
s
->
bparts
;
/* Handle on the physics modules */
/* Handle on the physics modules */
const
struct
cosmology
*
cosmo
=
e
->
cosmology
;
const
struct
cosmology
*
cosmo
=
e
->
cosmology
;
...
@@ -314,6 +315,13 @@ void velociraptor_convert_particles_mapper(void *map_data, int nr_gparts,
...
@@ -314,6 +315,13 @@ void velociraptor_convert_particles_mapper(void *map_data, int nr_gparts,
swift_parts
[
i
].
T
=
0
.
f
;
swift_parts
[
i
].
T
=
0
.
f
;
break
;
break
;
case
swift_type_black_hole
:
swift_parts
[
i
].
id
=
bparts
[
-
gparts
[
i
].
id_or_neg_offset
].
id
;
swift_parts
[
i
].
u
=
0
.
f
;
swift_parts
[
i
].
T
=
0
.
f
;
break
;
case
swift_type_dark_matter
:
case
swift_type_dark_matter
:
swift_parts
[
i
].
id
=
gparts
[
i
].
id_or_neg_offset
;
swift_parts
[
i
].
id
=
gparts
[
i
].
id_or_neg_offset
;
...
...
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