Commit 53f5f02a authored by James Willis's avatar James Willis
Browse files

Pad properties with sensible values to prevent floating point exceptions.

parent 59b197ae
...@@ -702,6 +702,7 @@ __attribute__((always_inline)) INLINE void runner_doself2_force_vec( ...@@ -702,6 +702,7 @@ __attribute__((always_inline)) INLINE void runner_doself2_force_vec(
cell_cache->h[i] = 1.f; cell_cache->h[i] = 1.f;
cell_cache->rho[i] = 1.f; cell_cache->rho[i] = 1.f;
cell_cache->grad_h[i] = 1.f; cell_cache->grad_h[i] = 1.f;
cell_cache->pOrho2[i] = 1.f;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment