Commit f53ba862 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Update the documentation of the gravity P-P master function and sub-functions.

parent f3e310b5
......@@ -142,8 +142,8 @@ static INLINE void gravity_cache_init(struct gravity_cache *c,
* more expensive P2P.
*
* @param max_active_bin The largest active bin in the current time-step.
* @param dim The size of the simulation volume along each dimension.
* @param periodic Are we using periodic BCs ?
* @param dim The size of the simulation volume along each dimension.
* @param c The #gravity_cache to fill.
* @param gparts The #gpart array to read from.
* @param gcount The number of particles to read.
......@@ -156,7 +156,7 @@ static INLINE void gravity_cache_init(struct gravity_cache *c,
* @param grav_props The global gravity properties.
*/
__attribute__((always_inline)) INLINE static void gravity_cache_populate(
const timebin_t max_active_bin, const float dim[3], const int periodic,
const timebin_t max_active_bin, const int periodic, const float dim[3],
struct gravity_cache *c, const struct gpart *restrict gparts,
const int gcount, const int gcount_padded, const double shift[3],
const float CoM[3], const float r_max2, const struct cell *cell,
......@@ -288,7 +288,9 @@ gravity_cache_populate_no_mpole(const timebin_t max_active_bin,
}
/**
* @brief Write the output cache values back to the #gpart.
* @brief Write the output cache values back to the active #gpart.
*
* This function obviously omits the padded values in the cache.
*
* @param c The #gravity_cache to read from.
* @param gparts The #gpart array to write to.
......
......@@ -26,7 +26,7 @@
#include "inline.h"
#include "minmax.h"
#define GADGET2_SOFTENING_CORRECTION
//#define GADGET2_SOFTENING_CORRECTION
#ifdef GADGET2_SOFTENING_CORRECTION
/*! Conversion factor between Plummer softening and internal softening */
......
This diff is collapsed.
......@@ -54,10 +54,11 @@ const char* timers_names[timer_count] = {
"dopair_density",
"dopair_gradient",
"dopair_force",
"dopair_grav_branch",
"dopair_grav_mm",
"dopair_grav_pm",
"dopair_grav_pp",
"dopair_grav_pm_full",
"dopair_grav_pm_trunc",
"dopair_grav_pp_full",
"dopair_grav_pp_trunc",
"dograv_external",
"dograv_down",
"dograv_mesh",
......
......@@ -55,10 +55,11 @@ enum {
timer_dopair_density,
timer_dopair_gradient,
timer_dopair_force,
timer_dopair_grav_branch,
timer_dopair_grav_mm,
timer_dopair_grav_pm,
timer_dopair_grav_pp,
timer_dopair_grav_pm_full,
timer_dopair_grav_pm_trunc,
timer_dopair_grav_pp_full,
timer_dopair_grav_pp_trunc,
timer_dograv_external,
timer_dograv_down,
timer_dograv_mesh,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment