Skip to content
Snippets Groups Projects
Commit bca1f35e authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Prevent the code from using the mass-weighted neighbour number definition in the Gizmo cases.

parent 0199e91b
No related branches found
No related tags found
1 merge request!926Alternative definition of the number of neighbours
...@@ -102,6 +102,12 @@ void hydro_props_init(struct hydro_props *p, ...@@ -102,6 +102,12 @@ void hydro_props_init(struct hydro_props *p,
p->use_mass_weighted_num_ngb = p->use_mass_weighted_num_ngb =
parser_get_opt_param_int(params, "SPH:use_mass_weighted_num_ngb", 0); parser_get_opt_param_int(params, "SPH:use_mass_weighted_num_ngb", 0);
if (p->use_mass_weighted_num_ngb) {
#if defined(GIZMO_MFV_SPH) || defined(GIZMO_MFM_SPH) || defined(SHADOWFAX_SPH)
error("Can't use alternative neighbour definition with this scheme!");
#endif
}
/* Time integration properties */ /* Time integration properties */
p->CFL_condition = parser_get_param_float(params, "SPH:CFL_condition"); p->CFL_condition = parser_get_param_float(params, "SPH:CFL_condition");
const float max_volume_change = parser_get_opt_param_float( const float max_volume_change = parser_get_opt_param_float(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment