runner_doiact_grav.h 2.14 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/*******************************************************************************
 * This file is part of SWIFT.
 * Copyright (c) 2013 Pedro Gonnet (pedro.gonnet@durham.ac.uk)
 *               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_GRAV_H
#define SWIFT_RUNNER_DOIACT_GRAV_H

23
#include "../config.h"
24

25 26
struct runner;
struct cell;
27

28
void runner_do_grav_down(struct runner *r, struct cell *c, int timer);
29

30 31 32
void runner_dopair_grav_pp(struct runner *r, struct cell *ci, struct cell *cj,
                           const int symmetric, const int allow_mpole);

33 34
void runner_doself_recursive_grav(struct runner *r, struct cell *c,
                                  int gettimer);
Matthieu Schaller's avatar
Matthieu Schaller committed
35

36 37
void runner_dopair_recursive_grav(struct runner *r, struct cell *ci,
                                  struct cell *cj, int gettimer);
Matthieu Schaller's avatar
Matthieu Schaller committed
38

39 40 41
void runner_dopair_grav_mm_progenies(struct runner *r, const long long flags,
                                     struct cell *restrict ci,
                                     struct cell *restrict cj);
42

43
void runner_do_grav_long_range(struct runner *r, struct cell *ci, int timer);
44

45
/* Internal functions (for unit tests and debugging) */
46

47
void runner_doself_grav_pp(struct runner *r, struct cell *c);
48

49 50
void runner_dopair_grav_pp(struct runner *r, struct cell *ci, struct cell *cj,
                           const int symmetric, const int allow_mpole);
51

52
#endif /* SWIFT_RUNNER_DOIACT_GRAV_H */