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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
239df74f
Commit
239df74f
authored
Apr 23, 2018
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Define the cooling function data in the correct parallel i/o routine.
parent
81c05683
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/parallel_io.c
+1
-2
1 addition, 2 deletions
src/parallel_io.c
with
1 addition
and
2 deletions
src/parallel_io.c
+
1
−
2
View file @
239df74f
...
@@ -860,8 +860,6 @@ void prepare_file(struct engine* e, const char* baseName, long long N_total[6],
...
@@ -860,8 +860,6 @@ void prepare_file(struct engine* e, const char* baseName, long long N_total[6],
int
periodic
=
e
->
s
->
periodic
;
int
periodic
=
e
->
s
->
periodic
;
int
numFiles
=
1
;
int
numFiles
=
1
;
const
struct
cooling_function_data
*
cooling
=
e
->
cooling_func
;
/* First time, we need to create the XMF file */
/* First time, we need to create the XMF file */
if
(
e
->
snapshotOutputCount
==
0
)
xmf_create_file
(
baseName
);
if
(
e
->
snapshotOutputCount
==
0
)
xmf_create_file
(
baseName
);
...
@@ -1084,6 +1082,7 @@ void write_output_parallel(struct engine* e, const char* baseName,
...
@@ -1084,6 +1082,7 @@ void write_output_parallel(struct engine* e, const char* baseName,
const
struct
gpart
*
gparts
=
e
->
s
->
gparts
;
const
struct
gpart
*
gparts
=
e
->
s
->
gparts
;
struct
gpart
*
dmparts
=
NULL
;
struct
gpart
*
dmparts
=
NULL
;
const
struct
spart
*
sparts
=
e
->
s
->
sparts
;
const
struct
spart
*
sparts
=
e
->
s
->
sparts
;
const
struct
cooling_function_data
*
cooling
=
e
->
cooling_func
;
/* Number of unassociated gparts */
/* Number of unassociated gparts */
const
size_t
Ndm
=
Ntot
>
0
?
Ntot
-
(
Ngas
+
Nstars
)
:
0
;
const
size_t
Ndm
=
Ntot
>
0
?
Ntot
-
(
Ngas
+
Nstars
)
:
0
;
...
...
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
sign in
to comment