Skip to content
Snippets Groups Projects
Commit 3f31b361 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

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!657Engine cleanup
...@@ -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.
...@@ -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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment