#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <mpi.h>
#include "allvars.h"
#include "proto.h"
Go to the source code of this file.
Functions | |
void | gravity_tree (void) |
void | set_softenings (void) |
int | grav_tree_compare_key (const void *a, const void *b) |
This file contains the code for the gravitational force computation by means of the tree algorithm. To this end, a tree force is computed for all active local particles, and particles are exported to other processors if needed, where they can receive additional force contributions. If the TreePM algorithm is enabled, the force computed will only be the short-range part.
Definition in file gravtree.c.
|
This function is used as a comparison kernel in a sort routine. It is used to group particles in the communication buffer that are going to be sent to the same CPU. Definition at line 511 of file gravtree.c. Referenced by compute_potential(), gravity_forcetest(), and gravity_tree(). |
|
|