diff --git a/src/hydro_properties.c b/src/hydro_properties.c index a21530528ce0934e3c78c8481d1bba7c41399b9a..db4c60eb045662193efd552573a9e17666951c81 100644 --- a/src/hydro_properties.c +++ b/src/hydro_properties.c @@ -102,6 +102,12 @@ void hydro_props_init(struct hydro_props *p, p->use_mass_weighted_num_ngb = 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 */ p->CFL_condition = parser_get_param_float(params, "SPH:CFL_condition"); const float max_volume_change = parser_get_opt_param_float(