Skip to content
Snippets Groups Projects
Select Git revision
  • 7bca4ea72de471ff545b23499a62a6917c68e543
  • master default protected
  • darwin/gear_chemistry_fluxes
  • zoom-mesh-considerations
  • format-pain
  • FS_VP_m2_allGrad
  • split-space-split
  • reyz/gear_preSN_feedback
  • stars_sidm_iact
  • karapiperis/plasma_beta_rms_in_tensile_instability_correction_taper_function
  • darwin/gear_preSN_fbk_merge
  • darwin/gear_mechanical_feedback
  • karapiperis/consistent_treatment_of_vsig_in_MHD
  • examples-GravityTests-HydroStatic-halo-issue
  • fof_props
  • FS_VP_m2
  • FS_m2
  • zoom_mpi_redux
  • mladen/rt_limit_star_timesteps
  • zoom-missing-rebuild-time
  • moving_mesh
  • 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

hydro.h

Blame
  • user avatar
    James Willis authored
    10a80a19
    History
    hydro.h 2.19 KiB
    /*******************************************************************************
     * This file is part of SWIFT.
     * Coypright (c) 2015 Matthieu Schaller (matthieu.schaller@durham.ac.uk)
     *
     * This program is free software: you can redistribute it and/or modify
     * it under the terms of the GNU Lesser General Public License as published
     * by the Free Software Foundation, either version 3 of the License, or
     * (at your option) any later version.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU Lesser General Public License
     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
     *
     ******************************************************************************/
    #ifndef SWIFT_HYDRO_H
    #define SWIFT_HYDRO_H
    
    /* Config parameters. */
    #include "../config.h"
    
    /* Local headers. */
    #include "hydro_properties.h"
    #include "kernel_hydro.h"
    
    /* Import the right functions */
    #if defined(MINIMAL_SPH)
    #include "./hydro/Minimal/hydro.h"
    #include "./hydro/Minimal/hydro_iact.h"
    #define SPH_IMPLEMENTATION "Minimal version of SPH (e.g. Price 2010)"
    #elif defined(GADGET2_SPH)
    #include "./hydro/Gadget2/hydro.h"
    #include "./hydro/Gadget2/hydro_iact.h"
    #define SPH_IMPLEMENTATION "Gadget-2 version of SPH (Springel 2005)"
    #elif defined(HOPKINS_PE_SPH)
    #include "./hydro/PressureEntropy/hydro.h"
    #include "./hydro/PressureEntropy/hydro_iact.h"
    #define SPH_IMPLEMENTATION "Pressure-Entropy SPH (Hopkins 2013)"
    #elif defined(DEFAULT_SPH)
    #include "./hydro/Default/hydro.h"
    #include "./hydro/Default/hydro_iact.h"
    #define SPH_IMPLEMENTATION "Default version of SPH"
    #elif defined(GIZMO_SPH)
    #include "./hydro/Gizmo/hydro.h"
    #include "./hydro/Gizmo/hydro_iact.h"
    #define SPH_IMPLEMENTATION "GIZMO (Hopkins 2015)"
    #elif defined(SHADOWFAX_SPH)
    #include "./hydro/Shadowswift/hydro.h"
    #include "./hydro/Shadowswift/hydro_iact.h"
    #define SPH_IMPLEMENTATION \
      "Shadowfax moving mesh (Vandenbroucke and De Rijcke 2016)"
    #else
    #error "Invalid choice of SPH variant"
    #endif
    
    #endif /* SWIFT_HYDRO_H */