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
d76a00ab
Commit
d76a00ab
authored
7 years ago
by
James Willis
Browse files
Options
Downloads
Patches
Plain Diff
Store the number of hydro and gravity particles as a size_t.
parent
8e1c982d
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!578
Swift velociraptor
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/velociraptor_interface.c
+2
-2
2 additions, 2 deletions
src/velociraptor_interface.c
src/velociraptor_interface.h
+1
-1
1 addition, 1 deletion
src/velociraptor_interface.h
with
3 additions
and
3 deletions
src/velociraptor_interface.c
+
2
−
2
View file @
d76a00ab
...
...
@@ -151,8 +151,8 @@ void velociraptor_invoke(struct engine *e) {
struct
space
*
s
=
e
->
s
;
struct
gpart
*
gparts
=
s
->
gparts
;
const
in
t
nr_gparts
=
s
->
nr_gparts
;
const
in
t
nr_hydro_parts
=
s
->
nr_parts
;
const
size_
t
nr_gparts
=
s
->
nr_gparts
;
const
size_
t
nr_hydro_parts
=
s
->
nr_parts
;
const
int
nr_cells
=
s
->
nr_cells
;
int
*
cell_node_ids
;
...
...
This diff is collapsed.
Click to expand it.
src/velociraptor_interface.h
+
1
−
1
View file @
d76a00ab
...
...
@@ -69,7 +69,7 @@ struct siminfo {
/* VELOCIraptor interface. */
int
InitVelociraptor
(
char
*
config_name
,
char
*
output_name
,
struct
cosmoinfo
cosmo_info
,
struct
unitinfo
unit_info
,
struct
siminfo
sim_info
);
int
InvokeVelociraptor
(
const
in
t
num_gravity_parts
,
const
in
t
num_hydro_parts
,
struct
gpart
*
gravity_parts
,
const
int
*
cell_node_ids
,
char
*
output_name
);
int
InvokeVelociraptor
(
const
size_
t
num_gravity_parts
,
const
size_
t
num_hydro_parts
,
struct
gpart
*
gravity_parts
,
const
int
*
cell_node_ids
,
char
*
output_name
);
/* VELOCIraptor wrapper functions. */
void
velociraptor_init
(
struct
engine
*
e
);
...
...
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