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
3f31b361
Commit
3f31b361
authored
6 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
split off engine_maketasks and all associated functions to a separate file.
parent
e7f3137a
No related branches found
No related tags found
1 merge request
!657
Engine cleanup
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/Makefile.am
+1
-1
1 addition, 1 deletion
src/Makefile.am
src/engine.c
+103
-2140
103 additions, 2140 deletions
src/engine.c
src/engine.h
+4
-2
4 additions, 2 deletions
src/engine.h
src/engine_maketasks.c
+2101
-0
2101 additions, 0 deletions
src/engine_maketasks.c
with
2209 additions
and
2143 deletions
src/Makefile.am
+
1
−
1
View file @
3f31b361
...
@@ -52,7 +52,7 @@ include_HEADERS = space.h runner.h queue.h task.h lock.h cell.h part.h const.h \
...
@@ -52,7 +52,7 @@ include_HEADERS = space.h runner.h queue.h task.h lock.h cell.h part.h const.h \
logger_io.h
logger_io.h
# Common source files
# Common source files
AM_SOURCES
=
space.c runner.c queue.c task.c cell.c engine.c
\
AM_SOURCES
=
space.c runner.c queue.c task.c cell.c engine.c
engine_maketasks.c
\
serial_io.c timers.c debug.c scheduler.c proxy.c parallel_io.c
\
serial_io.c timers.c debug.c scheduler.c proxy.c parallel_io.c
\
units.c common_io.c single_io.c multipole.c version.c map.c
\
units.c common_io.c single_io.c multipole.c version.c map.c
\
kernel_hydro.c tools.c part.c partition.c clocks.c parser.c
\
kernel_hydro.c tools.c part.c partition.c clocks.c parser.c
\
...
...
This diff is collapsed.
Click to expand it.
src/engine.c
+
103
−
2140
View file @
3f31b361
This diff is collapsed.
Click to expand it.
src/engine.h
+
4
−
2
View file @
3f31b361
...
@@ -391,7 +391,7 @@ struct engine {
...
@@ -391,7 +391,7 @@ struct engine {
int
restart_max_tasks
;
int
restart_max_tasks
;
};
};
/* Function prototypes. */
/* Function prototypes
, engine.c
. */
void
engine_addlink
(
struct
engine
*
e
,
struct
link
**
l
,
struct
task
*
t
);
void
engine_addlink
(
struct
engine
*
e
,
struct
link
**
l
,
struct
task
*
t
);
void
engine_barrier
(
struct
engine
*
e
);
void
engine_barrier
(
struct
engine
*
e
);
void
engine_compute_next_snapshot_time
(
struct
engine
*
e
);
void
engine_compute_next_snapshot_time
(
struct
engine
*
e
);
...
@@ -427,7 +427,6 @@ void engine_prepare(struct engine *e);
...
@@ -427,7 +427,6 @@ void engine_prepare(struct engine *e);
void
engine_init_particles
(
struct
engine
*
e
,
int
flag_entropy_ICs
,
void
engine_init_particles
(
struct
engine
*
e
,
int
flag_entropy_ICs
,
int
clean_h_values
);
int
clean_h_values
);
void
engine_step
(
struct
engine
*
e
);
void
engine_step
(
struct
engine
*
e
);
void
engine_maketasks
(
struct
engine
*
e
);
void
engine_split
(
struct
engine
*
e
,
struct
partition
*
initial_partition
);
void
engine_split
(
struct
engine
*
e
,
struct
partition
*
initial_partition
);
void
engine_exchange_strays
(
struct
engine
*
e
,
const
size_t
offset_parts
,
void
engine_exchange_strays
(
struct
engine
*
e
,
const
size_t
offset_parts
,
const
int
*
ind_part
,
size_t
*
Npart
,
const
int
*
ind_part
,
size_t
*
Npart
,
...
@@ -446,6 +445,9 @@ void engine_unpin(void);
...
@@ -446,6 +445,9 @@ void engine_unpin(void);
void
engine_clean
(
struct
engine
*
e
);
void
engine_clean
(
struct
engine
*
e
);
int
engine_estimate_nr_tasks
(
struct
engine
*
e
);
int
engine_estimate_nr_tasks
(
struct
engine
*
e
);
/* Function prototypes, engine_marktasks.c. */
void
engine_maketasks
(
struct
engine
*
e
);
#ifdef HAVE_SETAFFINITY
#ifdef HAVE_SETAFFINITY
cpu_set_t
*
engine_entry_affinity
(
void
);
cpu_set_t
*
engine_entry_affinity
(
void
);
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
src/engine_maketasks.c
0 → 100644
+
2101
−
0
View file @
3f31b361
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