From b82553ea10e777efc3340de28501bccf49c06b9a Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Sat, 23 Oct 2021 19:23:20 +0200 Subject: [PATCH] Also add the new particle-carried variables to the other relevant schemes --- src/hydro/Gadget2/hydro_part.h | 3 +++ src/hydro/Minimal/hydro_part.h | 3 +++ src/stars/Basic/stars_part.h | 3 +++ src/stars/GEAR/stars_part.h | 3 +++ src/stars/None/stars_part.h | 3 +++ 5 files changed, 15 insertions(+) diff --git a/src/hydro/Gadget2/hydro_part.h b/src/hydro/Gadget2/hydro_part.h index 2d9c0fdbff..e0c29c8e42 100644 --- a/src/hydro/Gadget2/hydro_part.h +++ b/src/hydro/Gadget2/hydro_part.h @@ -181,6 +181,9 @@ struct part { /*! Time-step length */ timebin_t time_bin; + /*! Tree-depth at which size / 2 <= h * gamma < size */ + char depth_h; + /*! Time-step limiter information */ struct timestep_limiter_data limiter_data; diff --git a/src/hydro/Minimal/hydro_part.h b/src/hydro/Minimal/hydro_part.h index 30a7cbb19a..f05775c5d4 100644 --- a/src/hydro/Minimal/hydro_part.h +++ b/src/hydro/Minimal/hydro_part.h @@ -199,6 +199,9 @@ struct part { /*! Time-step length */ timebin_t time_bin; + /*! Tree-depth at which size / 2 <= h * gamma < size */ + char depth_h; + /*! Time-step limiter information */ struct timestep_limiter_data limiter_data; diff --git a/src/stars/Basic/stars_part.h b/src/stars/Basic/stars_part.h index b023d8205a..903f6c0751 100644 --- a/src/stars/Basic/stars_part.h +++ b/src/stars/Basic/stars_part.h @@ -81,6 +81,9 @@ struct spart { /*! Particle time bin */ timebin_t time_bin; + /*! Tree-depth at which size / 2 <= h * gamma < size */ + char depth_h; + /*! Star formation struct */ struct star_formation_spart_data sf_data; diff --git a/src/stars/GEAR/stars_part.h b/src/stars/GEAR/stars_part.h index cbca5a11c1..7fa25fcc05 100644 --- a/src/stars/GEAR/stars_part.h +++ b/src/stars/GEAR/stars_part.h @@ -107,6 +107,9 @@ struct spart { /*! Particle time bin */ timebin_t time_bin; + /*! Tree-depth at which size / 2 <= h * gamma < size */ + char depth_h; + #ifdef SWIFT_DEBUG_CHECKS /* Time of the last drift */ diff --git a/src/stars/None/stars_part.h b/src/stars/None/stars_part.h index cdc16ec57c..1163111820 100644 --- a/src/stars/None/stars_part.h +++ b/src/stars/None/stars_part.h @@ -58,6 +58,9 @@ struct spart { /*! Particle time bin */ timebin_t time_bin; + /*! Tree-depth at which size / 2 <= h * gamma < size */ + char depth_h; + /*! Splitting structure */ struct particle_splitting_data split_data; -- GitLab