Commit 364afb97 authored by James Willis's avatar James Willis
Browse files

Pad properties with sensible values to prevent floating point exceptions.

parent 53f5f02a
......@@ -703,6 +703,8 @@ __attribute__((always_inline)) INLINE void runner_doself2_force_vec(
cell_cache->rho[i] = 1.f;
cell_cache->grad_h[i] = 1.f;
cell_cache->pOrho2[i] = 1.f;
cell_cache->balsara[i] = 1.f;
cell_cache->soundspeed[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