Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
03a2b590
Commit
03a2b590
authored
Jul 01, 2016
by
Matthieu Schaller
Browse files
Added files for the FFT calculation
parent
c8eaa44f
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/Makefile.am
View file @
03a2b590
...
...
@@ -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 un
its.h intrinsics
.h
\
minmax.h kick.h timestep.h drift.h
\
kernel_long_gravity.h vector.h runner_doiact.h runner_doiact_grav.h
r
un
ner_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
\
...
...
src/runner.c
View file @
03a2b590
...
...
@@ -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
);
...
...
src/runner_doiact_fft.c
0 → 100644
View file @
03a2b590
/*******************************************************************************
* 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
)
{
}
src/runner_doiact_fft.h
0 → 100644
View file @
03a2b590
/*******************************************************************************
* 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 */
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment