From bdd963377582b4d3d17d32a13e5b0363ea5c115b Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Fri, 17 Jan 2020 21:54:20 +0100 Subject: [PATCH] Removed the unused constant 'const_max_u_change'. --- src/const.h | 3 --- src/hydro/AnarchyPU/hydro_io.h | 4 ---- src/hydro/Default/hydro_io.h | 4 ---- src/hydro/Minimal/hydro_io.h | 4 ---- src/hydro/Planetary/hydro_io.h | 4 ---- src/hydro/PressureEnergy/hydro_io.h | 4 ---- src/hydro/PressureEnergyMorrisMonaghanAV/hydro_io.h | 4 ---- src/hydro/PressureEntropy/hydro_io.h | 4 ---- src/hydro/SPHENIX/hydro_io.h | 4 ---- 9 files changed, 35 deletions(-) diff --git a/src/const.h b/src/const.h index 4040922b6f..b1e7e777e5 100644 --- a/src/const.h +++ b/src/const.h @@ -20,9 +20,6 @@ #ifndef SWIFT_CONST_H #define SWIFT_CONST_H -/* Time integration constants. */ -#define const_max_u_change 0.1f - /* I/O Constant; this determines the relative tolerance between the value of * redshift read from the snapshot, and the value from the parameter file. This * current value asserts that they must match within 0.1%. */ diff --git a/src/hydro/AnarchyPU/hydro_io.h b/src/hydro/AnarchyPU/hydro_io.h index 25fa28fc26..2d02b350ca 100644 --- a/src/hydro/AnarchyPU/hydro_io.h +++ b/src/hydro/AnarchyPU/hydro_io.h @@ -229,10 +229,6 @@ INLINE static void hydro_write_flavour(hid_t h_grpsph) { "Simple treatment as in Price (2008)"); io_write_attribute_s(h_grpsph, "Viscosity Model", "Simplified version of Cullen & Denhen (2011)"); - - /* Time integration properties */ - io_write_attribute_f(h_grpsph, "Maximal Delta u change over dt", - const_max_u_change); } /** diff --git a/src/hydro/Default/hydro_io.h b/src/hydro/Default/hydro_io.h index 7a51b8cd50..849903d46b 100644 --- a/src/hydro/Default/hydro_io.h +++ b/src/hydro/Default/hydro_io.h @@ -229,10 +229,6 @@ INLINE static void hydro_write_flavour(hid_t h_grpsph) { "Simple treatment as in Price (2017)"); io_write_attribute_s(h_grpsph, "Viscosity Model", "Simplified version of Cullen & Denhen (2011)"); - - /* Time integration properties */ - io_write_attribute_f(h_grpsph, "Maximal Delta u change over dt", - const_max_u_change); } /** diff --git a/src/hydro/Minimal/hydro_io.h b/src/hydro/Minimal/hydro_io.h index aa5b17acaf..9239de218e 100644 --- a/src/hydro/Minimal/hydro_io.h +++ b/src/hydro/Minimal/hydro_io.h @@ -211,10 +211,6 @@ INLINE static void hydro_write_flavour(hid_t h_grpsph) { io_write_attribute_s(h_grpsph, "Thermal Conductivity Model", "No treatment"); io_write_attribute_s(h_grpsph, "Viscosity Model", "Minimal treatment as in Monaghan (1992)"); - - /* Time integration properties */ - io_write_attribute_f(h_grpsph, "Maximal Delta u change over dt", - const_max_u_change); } /** diff --git a/src/hydro/Planetary/hydro_io.h b/src/hydro/Planetary/hydro_io.h index b0599ceba9..bf939ffa2c 100644 --- a/src/hydro/Planetary/hydro_io.h +++ b/src/hydro/Planetary/hydro_io.h @@ -214,10 +214,6 @@ INLINE static void hydro_write_flavour(hid_t h_grpsph) { h_grpsph, "Viscosity Model", "as in Springel (2005), i.e. Monaghan (1992) with Balsara (1995) switch"); #endif - - /* Time integration properties */ - io_write_attribute_f(h_grpsph, "Maximal Delta u change over dt", - const_max_u_change); } /** diff --git a/src/hydro/PressureEnergy/hydro_io.h b/src/hydro/PressureEnergy/hydro_io.h index 98ae52e273..2be85e79b6 100644 --- a/src/hydro/PressureEnergy/hydro_io.h +++ b/src/hydro/PressureEnergy/hydro_io.h @@ -210,10 +210,6 @@ INLINE static void hydro_write_flavour(hid_t h_grpsph) { io_write_attribute_s(h_grpsph, "Thermal Conductivity Model", "No treatment"); io_write_attribute_s(h_grpsph, "Viscosity Model", "Minimal treatment as in Monaghan (1992)"); - - /* Time integration properties */ - io_write_attribute_f(h_grpsph, "Maximal Delta u change over dt", - const_max_u_change); } /** diff --git a/src/hydro/PressureEnergyMorrisMonaghanAV/hydro_io.h b/src/hydro/PressureEnergyMorrisMonaghanAV/hydro_io.h index e77bf21f19..69385e5609 100644 --- a/src/hydro/PressureEnergyMorrisMonaghanAV/hydro_io.h +++ b/src/hydro/PressureEnergyMorrisMonaghanAV/hydro_io.h @@ -215,10 +215,6 @@ INLINE static void hydro_write_flavour(hid_t h_grpsph) { io_write_attribute_s(h_grpsph, "Thermal Conductivity Model", "No treatment"); io_write_attribute_s(h_grpsph, "Viscosity Model", "Variable viscosity as in Morris and Monaghan (1997)"); - - /* Time integration properties */ - io_write_attribute_f(h_grpsph, "Maximal Delta u change over dt", - const_max_u_change); } /** diff --git a/src/hydro/PressureEntropy/hydro_io.h b/src/hydro/PressureEntropy/hydro_io.h index d7168f3955..d3c800e03f 100644 --- a/src/hydro/PressureEntropy/hydro_io.h +++ b/src/hydro/PressureEntropy/hydro_io.h @@ -217,10 +217,6 @@ INLINE static void hydro_write_flavour(hid_t h_grpsph) { io_write_attribute_s( h_grpsph, "Viscosity Model", "as in Springel (2005), i.e. Monaghan (1992) with Balsara (1995) switch"); - - /* Time integration properties */ - io_write_attribute_f(h_grpsph, "Maximal Delta u change over dt", - const_max_u_change); } /** diff --git a/src/hydro/SPHENIX/hydro_io.h b/src/hydro/SPHENIX/hydro_io.h index ca333d4ed6..1b2d31a0ff 100644 --- a/src/hydro/SPHENIX/hydro_io.h +++ b/src/hydro/SPHENIX/hydro_io.h @@ -222,10 +222,6 @@ INLINE static void hydro_write_flavour(hid_t h_grpsph) { "Simple treatment as in Price (2008)"); io_write_attribute_s(h_grpsph, "Viscosity Model", "Simplified version of Cullen & Denhen (2011)"); - - /* Time integration properties */ - io_write_attribute_f(h_grpsph, "Maximal Delta u change over dt", - const_max_u_change); } /** -- GitLab