Skip to content
Snippets Groups Projects
Select Git revision
  • 571d2b948b4c0fd677377823bc8cc997c29504f8
  • master default protected
  • zoom-mesh-considerations
  • improve-snap-to-ic
  • darwin/sink_tasks_refactored
  • karapiperis/Bcomoving_as_a2_Bphysical
  • FS_VP_m2_allGrad
  • fstasys/VEP_Fm2
  • zoom_merge protected
  • split-space-split
  • reyz/gear_preSN_feedback
  • reyz/debug
  • darwin/gear_preSN_fbk_merge
  • darwin/gear_chemistry_fluxes
  • gas-splitting
  • stars_sidm_iact
  • karapiperis/plasma_beta_rms_in_tensile_instability_correction_taper_function
  • darwin/gear_mechanical_feedback
  • karapiperis/consistent_treatment_of_vsig_in_MHD
  • examples-GravityTests-HydroStatic-halo-issue
  • fof_props
  • v2025.10 protected
  • v2025.04 protected
  • v2025.01 protected
  • v1.0.0 protected
  • v0.9.0 protected
  • v0.8.5 protected
  • v0.8.4 protected
  • v0.8.3 protected
  • v0.8.2 protected
  • v0.8.1 protected
  • v0.8.0 protected
  • v0.7.0 protected
  • v0.6.0 protected
  • v0.5.0 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0-pre protected
  • v0.1 protected
  • v0.0 protected
41 results

swiftsim

user avatar
Matthieu Schaller authored
Added smoothing length correction limiter to Gizmo hydro_predict_extra.

For some reason, the smoothing length prediction in GIZMO sometimes goes completely wrong, causing the code to crash in space_regrid, see #271. To overcome this, I have added a limit on the increase in smoothing length during the prediction step for GIZMO. This appears to solve the issue @jwillis was having with the EAGLE_12 test (I am currently testing it on one of my machines, and it's still running after 6000 steps).

I'm not sure it is worth looking into the cause of the bad smoothing length predictions. The smoothing length update is computed based on a mixture of SPH and GIZMO variables, so this is bound to go wrong sometimes. Maybe there are smarter ways to do this.

See merge request !318
571d2b94
History
 Welcome to the cosmological hydrodynamical code
    ______       _________________
   / ___/ |     / /  _/ ___/_  __/
   \__ \| | /| / // // /_   / /   
  ___/ /| |/ |/ // // __/  / /    
 /____/ |__/|__/___/_/    /_/     
 SPH With Inter-dependent Fine-grained Tasking

 Website: www.swiftsim.com
 Twitter: @SwiftSimulation

See INSTALL.swift for install instructions.

Usage: swift [OPTION]... PARAMFILE
       swift_mpi [OPTION]... PARAMFILE

Valid options are:
  -a          Pin runners using processor affinity.
  -c          Run with cosmological time integration.
  -C          Run with cooling.
  -d          Dry run. Read the parameter file, allocate memory but does not read 
              the particles from ICs and exit before the start of time integration.
              Allows user to check validy of parameter and IC files as well as memory limits.
  -D          Always drift all particles even the ones far from active particles. This emulates
  	      Gadget-[23] and GIZMO's default behaviours.
  -e          Enable floating-point exceptions (debugging mode).
  -f    {int} Overwrite the CPU frequency (Hz) to be used for time measurements.
  -g          Run with an external gravitational potential.
  -G          Run with self-gravity.
  -n    {int} Execute a fixed number of time steps. When unset use the time_end parameter to stop. 
  -s          Run with hydrodynamics.
  -S          Run with stars.
  -t    {int} The number of threads to use on each MPI rank. Defaults to 1 if not specified.
  -v     [12] Increase the level of verbosity
  	      1: MPI-rank 0 writes
	      2: All MPI-ranks write
  -y    {int} Time-step frequency at which task graphs are dumped.
  -h          Print this help message and exit.

See the file examples/parameter_example.yml for an example of parameter file.