-
Matthieu Schaller authored
Added a constant to represent the allowed delta between the desired (weighted) number of neighbours and the computed one. Was set to 1 in the code until now. Former-commit-id: d038be315b4691e6e455844a774622836b55e34e
Matthieu Schaller authoredAdded a constant to represent the allowed delta between the desired (weighted) number of neighbours and the computed one. Was set to 1 in the code until now. Former-commit-id: d038be315b4691e6e455844a774622836b55e34e
const.h 1.26 KiB
/*******************************************************************************
* This file is part of SWIFT.
* Coypright (c) 2012 Pedro Gonnet (pedro.gonnet@durham.ac.uk)
* 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/>.
*
******************************************************************************/
/* Hydrodynamical constants. */
#define const_gamma (5.0f/3.0f)
#define const_viscosity_alpha 0.8
/* Time integration constants. */
#define const_cfl 0.25f
/* Neighbour search constants. */
#define const_nwneigh 48.f
#define const_delta_nwneigh 1.f