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
f2e3df02
Commit
f2e3df02
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Don't forget to initialise the counters....
parent
14a052e6
No related branches found
No related tags found
2 merge requests
!136
Master
,
!94
Integer timeline
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/engine.c
+2
-0
2 additions, 0 deletions
src/engine.c
src/hydro.h
+1
-1
1 addition, 1 deletion
src/hydro.h
with
3 additions
and
1 deletion
src/engine.c
+
2
−
0
View file @
f2e3df02
...
@@ -1424,6 +1424,7 @@ int engine_marktasks(struct engine *e) {
...
@@ -1424,6 +1424,7 @@ int engine_marktasks(struct engine *e) {
/* Kick? */
/* Kick? */
else
if
(
t
->
type
==
task_type_kick
)
{
else
if
(
t
->
type
==
task_type_kick
)
{
t
->
skip
=
(
t
->
ci
->
ti_end_min
>
ti_end
);
t
->
skip
=
(
t
->
ci
->
ti_end_min
>
ti_end
);
t
->
ci
->
updated
=
0
;
}
}
/* Drift? */
/* Drift? */
...
@@ -2238,6 +2239,7 @@ void engine_init(struct engine *e, struct space *s, float dt, int nr_threads,
...
@@ -2238,6 +2239,7 @@ void engine_init(struct engine *e, struct space *s, float dt, int nr_threads,
e
->
dt_min
=
dt_min
;
e
->
dt_min
=
dt_min
;
e
->
dt_max
=
dt_max
;
e
->
dt_max
=
dt_max
;
e
->
file_stats
=
NULL
;
e
->
file_stats
=
NULL
;
e
->
wallclock_time
=
0
.
f
;
engine_rank
=
nodeID
;
engine_rank
=
nodeID
;
/* Make the space link back to the engine. */
/* Make the space link back to the engine. */
...
...
This diff is collapsed.
Click to expand it.
src/hydro.h
+
1
−
1
View file @
f2e3df02
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#if defined(MINIMAL_SPH)
#if defined(MINIMAL_SPH)
#include
"./hydro/Minimal/hydro_iact.h"
#include
"./hydro/Minimal/hydro_iact.h"
#include
"./hydro/Minimal/hydro.h"
#include
"./hydro/Minimal/hydro.h"
#define SPH_IMPLEMENTATION "Minimal version of SPH (Price 2010)"
#define SPH_IMPLEMENTATION "Minimal version of SPH (
e.g.
Price 2010)"
#elif defined(GADGET2_SPH)
#elif defined(GADGET2_SPH)
#include
"./hydro/Gadget2/hydro_iact.h"
#include
"./hydro/Gadget2/hydro_iact.h"
#include
"./hydro/Gadget2/hydro.h"
#include
"./hydro/Gadget2/hydro.h"
...
...
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