Skip to content
Snippets Groups Projects

When two hydro particles are within a small fraction of their smoothing length...

Closed Matthieu Schaller requested to merge zero_distance_fix into master
2 files
+ 107
1
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 6
0
@@ -132,6 +132,12 @@ struct hydro_props {
struct diffusion_global_data diffusion;
};
/**
* @brief Ratio of particle distance to smoothing length below which
* a small delta is added to avoid division by 0 in the interation loops.
*/
static const float hydro_distance_to_h_min_ratio = 1e-4f;
void hydro_props_print(const struct hydro_props *p);
void hydro_props_init(struct hydro_props *p,
const struct phys_const *phys_const,
Loading