From 319202cfd0249344ff717a39669ba603d96f4c80 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Tue, 12 Nov 2019 15:58:19 +0000
Subject: [PATCH] Impose a maximal smoothing length of 500kpc in all the EAGLE
 examples.

---
 examples/EAGLE_ICs/EAGLE_12/eagle_12.yml     | 1 +
 examples/EAGLE_ICs/EAGLE_25/eagle_25.yml     | 1 +
 examples/EAGLE_ICs/EAGLE_50/eagle_50.yml     | 1 +
 examples/EAGLE_low_z/EAGLE_100/eagle_100.yml | 1 +
 examples/EAGLE_low_z/EAGLE_12/eagle_12.yml   | 1 +
 examples/EAGLE_low_z/EAGLE_25/eagle_25.yml   | 1 +
 examples/EAGLE_low_z/EAGLE_50/eagle_50.yml   | 1 +
 examples/EAGLE_low_z/EAGLE_6/eagle_6.yml     | 1 +
 8 files changed, 8 insertions(+)

diff --git a/examples/EAGLE_ICs/EAGLE_12/eagle_12.yml b/examples/EAGLE_ICs/EAGLE_12/eagle_12.yml
index a6964ea303..589dc0c011 100644
--- a/examples/EAGLE_ICs/EAGLE_12/eagle_12.yml
+++ b/examples/EAGLE_ICs/EAGLE_12/eagle_12.yml
@@ -49,6 +49,7 @@ Gravity:
 SPH:
   resolution_eta:        1.2348   # Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
   h_min_ratio:           0.1      # Minimal smoothing in units of softening.
+  h_max:                 0.5      # Maximal softening in co-moving internal units.
   CFL_condition:         0.1      # Courant-Friedrich-Levy condition for time integration.
   minimal_temperature:   100.0    # (internal units)
   initial_temperature:   268.7
diff --git a/examples/EAGLE_ICs/EAGLE_25/eagle_25.yml b/examples/EAGLE_ICs/EAGLE_25/eagle_25.yml
index 21bf89b94a..5d3198aacb 100644
--- a/examples/EAGLE_ICs/EAGLE_25/eagle_25.yml
+++ b/examples/EAGLE_ICs/EAGLE_25/eagle_25.yml
@@ -49,6 +49,7 @@ Gravity:
 SPH:
   resolution_eta:        1.2348   # Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
   h_min_ratio:           0.1      # Minimal smoothing in units of softening.
+  h_max:                 0.5      # Maximal softening in co-moving internal units.
   CFL_condition:         0.1      # Courant-Friedrich-Levy condition for time integration.
   minimal_temperature:   100.0    # (internal units)
   initial_temperature:   268.7
diff --git a/examples/EAGLE_ICs/EAGLE_50/eagle_50.yml b/examples/EAGLE_ICs/EAGLE_50/eagle_50.yml
index 7e935e4db6..c8a06c8488 100644
--- a/examples/EAGLE_ICs/EAGLE_50/eagle_50.yml
+++ b/examples/EAGLE_ICs/EAGLE_50/eagle_50.yml
@@ -49,6 +49,7 @@ Gravity:
 SPH:
   resolution_eta:        1.2348   # Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
   h_min_ratio:           0.1      # Minimal smoothing in units of softening.
+  h_max:                 0.5      # Maximal softening in co-moving internal units.
   CFL_condition:         0.1      # Courant-Friedrich-Levy condition for time integration.
   minimal_temperature:   100.0    # (internal units)
   initial_temperature:   268.7
diff --git a/examples/EAGLE_low_z/EAGLE_100/eagle_100.yml b/examples/EAGLE_low_z/EAGLE_100/eagle_100.yml
index 0cc97babbd..3a36bdc092 100644
--- a/examples/EAGLE_low_z/EAGLE_100/eagle_100.yml
+++ b/examples/EAGLE_low_z/EAGLE_100/eagle_100.yml
@@ -55,6 +55,7 @@ Gravity:
 SPH:
   resolution_eta:        1.2348   # Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
   h_min_ratio:           0.1      # Minimal smoothing in units of softening.
+  h_max:                 0.5      # Maximal softening in co-moving internal units.
   CFL_condition:         0.1      # Courant-Friedrich-Levy condition for time integration.
   minimal_temperature:   100      # (internal units)
   overwrite_birth_time:  1
diff --git a/examples/EAGLE_low_z/EAGLE_12/eagle_12.yml b/examples/EAGLE_low_z/EAGLE_12/eagle_12.yml
index c5757b6d70..f761050b9b 100644
--- a/examples/EAGLE_low_z/EAGLE_12/eagle_12.yml
+++ b/examples/EAGLE_low_z/EAGLE_12/eagle_12.yml
@@ -56,6 +56,7 @@ Gravity:
 SPH:
   resolution_eta:        1.2348   # Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
   h_min_ratio:           0.1      # Minimal smoothing in units of softening.
+  h_max:                 0.5      # Maximal softening in co-moving internal units.
   CFL_condition:         0.1      # Courant-Friedrich-Levy condition for time integration.
   minimal_temperature:   100      # (internal units)
 
diff --git a/examples/EAGLE_low_z/EAGLE_25/eagle_25.yml b/examples/EAGLE_low_z/EAGLE_25/eagle_25.yml
index 547b769878..789b56a996 100644
--- a/examples/EAGLE_low_z/EAGLE_25/eagle_25.yml
+++ b/examples/EAGLE_low_z/EAGLE_25/eagle_25.yml
@@ -64,6 +64,7 @@ Gravity:
 SPH:
   resolution_eta:        1.2348   # Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
   h_min_ratio:           0.1      # Minimal smoothing in units of softening.
+  h_max:                 0.5      # Maximal softening in co-moving internal units.
   CFL_condition:         0.1      # Courant-Friedrich-Levy condition for time integration.
   minimal_temperature:   100      # (internal units)
 
diff --git a/examples/EAGLE_low_z/EAGLE_50/eagle_50.yml b/examples/EAGLE_low_z/EAGLE_50/eagle_50.yml
index 1473010fb5..0a2d602de8 100644
--- a/examples/EAGLE_low_z/EAGLE_50/eagle_50.yml
+++ b/examples/EAGLE_low_z/EAGLE_50/eagle_50.yml
@@ -55,6 +55,7 @@ Gravity:
 SPH:
   resolution_eta:        1.2348   # Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
   h_min_ratio:           0.1      # Minimal smoothing in units of softening.
+  h_max:                 0.5      # Maximal softening in co-moving internal units.
   CFL_condition:         0.1      # Courant-Friedrich-Levy condition for time integration.
   minimal_temperature:   100      # (internal units)
 
diff --git a/examples/EAGLE_low_z/EAGLE_6/eagle_6.yml b/examples/EAGLE_low_z/EAGLE_6/eagle_6.yml
index e07ad47d0c..af030fac26 100644
--- a/examples/EAGLE_low_z/EAGLE_6/eagle_6.yml
+++ b/examples/EAGLE_low_z/EAGLE_6/eagle_6.yml
@@ -65,6 +65,7 @@ Gravity:
 SPH:
   resolution_eta:        1.2348   # Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
   h_min_ratio:           0.1      # Minimal smoothing in units of softening.
+  h_max:                 0.5      # Maximal softening in co-moving internal units.
   CFL_condition:         0.1      # Courant-Friedrich-Levy condition for time integration.
   minimal_temperature:   100      # (internal units)
 
-- 
GitLab