From 1e60dff0660dd28d7dae85b9ab3521e63edffcd8 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Mon, 17 Dec 2018 13:54:07 +0100 Subject: [PATCH] Change the other Sedov examples to also use the limiter and a longer maximal time-step size. --- examples/SedovBlast_2D/run.sh | 2 +- examples/SedovBlast_2D/sedov.yml | 2 +- examples/SedovBlast_3D/run.sh | 2 +- examples/SedovBlast_3D/sedov.yml | 2 +- src/engine_maketasks.c | 2 -- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/SedovBlast_2D/run.sh b/examples/SedovBlast_2D/run.sh index b481d45552..e2136f8f5e 100755 --- a/examples/SedovBlast_2D/run.sh +++ b/examples/SedovBlast_2D/run.sh @@ -13,7 +13,7 @@ then fi # Run SWIFT -../swift --hydro --threads=1 sedov.yml 2>&1 | tee output.log +../swift --hydro --limiter --threads=1 sedov.yml 2>&1 | tee output.log # Plot the solution python plotSolution.py 5 diff --git a/examples/SedovBlast_2D/sedov.yml b/examples/SedovBlast_2D/sedov.yml index 84177ece31..b4252581d6 100644 --- a/examples/SedovBlast_2D/sedov.yml +++ b/examples/SedovBlast_2D/sedov.yml @@ -11,7 +11,7 @@ TimeIntegration: time_begin: 0. # The starting time of the simulation (in internal units). time_end: 5e-2 # The end time of the simulation (in internal units). dt_min: 1e-7 # The minimal time-step size of the simulation (in internal units). - dt_max: 1e-4 # The maximal time-step size of the simulation (in internal units). + dt_max: 1e-2 # The maximal time-step size of the simulation (in internal units). # Parameters governing the snapshots Snapshots: diff --git a/examples/SedovBlast_3D/run.sh b/examples/SedovBlast_3D/run.sh index 88aec36a7b..7f0788cc82 100755 --- a/examples/SedovBlast_3D/run.sh +++ b/examples/SedovBlast_3D/run.sh @@ -13,7 +13,7 @@ then fi # Run SWIFT -../swift --hydro --threads=4 sedov.yml 2>&1 | tee output.log +../swift --hydro --limiter --threads=4 sedov.yml 2>&1 | tee output.log # Plot the solution python plotSolution.py 5 diff --git a/examples/SedovBlast_3D/sedov.yml b/examples/SedovBlast_3D/sedov.yml index 6cf5b02427..19e8c72538 100644 --- a/examples/SedovBlast_3D/sedov.yml +++ b/examples/SedovBlast_3D/sedov.yml @@ -11,7 +11,7 @@ TimeIntegration: time_begin: 0. # The starting time of the simulation (in internal units). time_end: 5e-2 # The end time of the simulation (in internal units). dt_min: 1e-7 # The minimal time-step size of the simulation (in internal units). - dt_max: 1e-4 # The maximal time-step size of the simulation (in internal units). + dt_max: 1e-2 # The maximal time-step size of the simulation (in internal units). # Parameters governing the snapshots Snapshots: diff --git a/src/engine_maketasks.c b/src/engine_maketasks.c index 1c9ae1caf4..181059a7b4 100644 --- a/src/engine_maketasks.c +++ b/src/engine_maketasks.c @@ -538,8 +538,6 @@ void engine_make_hierarchical_tasks_common(struct engine *e, struct cell *c) { /* Make sure it is not run before kick2 */ scheduler_addunlock(s, c->timestep, c->timestep_limiter); scheduler_addunlock(s, c->timestep_limiter, c->kick1); - } else { - scheduler_addunlock(s, c->kick2, c->timestep); } #if defined(WITH_LOGGER) -- GitLab