Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
SWIFTsim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
70
Issues
70
List
Boards
Labels
Milestones
Merge Requests
14
Merge Requests
14
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SWIFT
SWIFTsim
Commits
239df74f
Commit
239df74f
authored
Apr 23, 2018
by
Matthieu Schaller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define the cooling function data in the correct parallel i/o routine.
parent
81c05683
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/parallel_io.c
src/parallel_io.c
+1
-2
No files found.
src/parallel_io.c
View file @
239df74f
...
...
@@ -860,8 +860,6 @@ void prepare_file(struct engine* e, const char* baseName, long long N_total[6],
int
periodic
=
e
->
s
->
periodic
;
int
numFiles
=
1
;
const
struct
cooling_function_data
*
cooling
=
e
->
cooling_func
;
/* First time, we need to create the XMF file */
if
(
e
->
snapshotOutputCount
==
0
)
xmf_create_file
(
baseName
);
...
...
@@ -1084,6 +1082,7 @@ void write_output_parallel(struct engine* e, const char* baseName,
const
struct
gpart
*
gparts
=
e
->
s
->
gparts
;
struct
gpart
*
dmparts
=
NULL
;
const
struct
spart
*
sparts
=
e
->
s
->
sparts
;
const
struct
cooling_function_data
*
cooling
=
e
->
cooling_func
;
/* Number of unassociated gparts */
const
size_t
Ndm
=
Ntot
>
0
?
Ntot
-
(
Ngas
+
Nstars
)
:
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment