diff --git a/src/Makefile.am b/src/Makefile.am index af9d64410f960eae332153ffd073b2a3211a0b15..ebdf9d81f8c830388f94ff98f30f99634be9fd44 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -42,12 +42,13 @@ AM_SOURCES = space.c runner.c queue.c task.c cell.c engine.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 \ kernel_hydro.c tools.c part.c partition.c clocks.c parser.c \ - physical_constants.c potentials.c hydro_properties.c + physical_constants.c potentials.c hydro_properties.c \ + runner_doiact_fft.c # Include files for distribution, not installation. nobase_noinst_HEADERS = approx_math.h atomic.h cycle.h error.h inline.h kernel_hydro.h kernel_gravity.h \ - kernel_long_gravity.h vector.h runner_doiact.h runner_doiact_grav.h units.h intrinsics.h \ - minmax.h kick.h timestep.h drift.h \ + kernel_long_gravity.h vector.h runner_doiact.h runner_doiact_grav.h runner_doiact_fft.h \ + units.h intrinsics.h minmax.h kick.h timestep.h drift.h \ gravity.h gravity_io.h \ gravity/Default/gravity.h gravity/Default/gravity_iact.h gravity/Default/gravity_io.h \ gravity/Default/gravity_debug.h gravity/Default/gravity_part.h \ diff --git a/src/runner.c b/src/runner.c index 1682916c534f429c21cf4500ec33b5e9b884d0f9..9bfa13ce8a9c059c5adc07ee6c03eaa446d73148 100644 --- a/src/runner.c +++ b/src/runner.c @@ -89,6 +89,7 @@ const char runner_flip[27] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, /* Import the gravity loop functions. */ #include "runner_doiact_grav.h" +#include "runner_doiact_fft.h" /** * @brief Calculate gravity acceleration from external potential @@ -1129,6 +1130,7 @@ void *runner_main(void *data) { case task_type_grav_gather_m: break; case task_type_grav_fft: + runner_do_grav_fft(r); break; case task_type_grav_external: runner_do_grav_external(r, t->ci, 1); diff --git a/src/runner_doiact_fft.c b/src/runner_doiact_fft.c new file mode 100644 index 0000000000000000000000000000000000000000..f7407caf00460a948b853075a4b2eef55a7d1d63 --- /dev/null +++ b/src/runner_doiact_fft.c @@ -0,0 +1,35 @@ +/******************************************************************************* + * This file is part of SWIFT. + * Copyright (c) 2016 Matthieu Schaller (matthieu.schaller@durham.ac.uk) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + ******************************************************************************/ + +/* Config parameters. */ +#include "../config.h" + +/* Some standard headers. */ +#include <pthread.h> + +/* This object's header. */ +#include "runner_doiact_fft.h" + +/* Local includes. */ +#include "runner.h" + +void runner_do_grav_fft(struct runner *r) { + + +} diff --git a/src/runner_doiact_fft.h b/src/runner_doiact_fft.h new file mode 100644 index 0000000000000000000000000000000000000000..263662383fb465dcf945e55494a569289b009ff9 --- /dev/null +++ b/src/runner_doiact_fft.h @@ -0,0 +1,26 @@ +/******************************************************************************* + * This file is part of SWIFT. + * Copyright (c) 2016 Matthieu Schaller (matthieu.schaller@durham.ac.uk) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + ******************************************************************************/ +#ifndef SWIFT_RUNNER_DOIACT_FFT_H +#define SWIFT_RUNNER_DOIACT_FFT_H + +struct runner; + +void runner_do_grav_fft(struct runner *r); + +#endif /* SWIFT_RUNNER_DOIACT_FFT_H */