Skip to content
Snippets Groups Projects
Commit 069e80ed authored by James Willis's avatar James Willis
Browse files

Store the FOF linking length in the space and store the particle offset into...

Store the FOF linking length in the space and store the particle offset into the global pid array in the gpart.
parent ac6f9785
No related branches found
No related tags found
1 merge request!543Fof
...@@ -50,6 +50,8 @@ struct gpart { ...@@ -50,6 +50,8 @@ struct gpart {
/*! Type of the #gpart (DM, gas, star, ...) */ /*! Type of the #gpart (DM, gas, star, ...) */
enum part_type type; enum part_type type;
size_t offset;
#ifdef SWIFT_DEBUG_CHECKS #ifdef SWIFT_DEBUG_CHECKS
/* Numer of gparts this gpart interacted with */ /* Numer of gparts this gpart interacted with */
......
...@@ -155,6 +155,9 @@ struct space { ...@@ -155,6 +155,9 @@ struct space {
/*! The associated engine. */ /*! The associated engine. */
struct engine *e; struct engine *e;
/*! The FOF linking length squared. */
double l_x2;
#ifdef WITH_MPI #ifdef WITH_MPI
/*! Buffers for parts that we will receive from foreign cells. */ /*! Buffers for parts that we will receive from foreign cells. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment