skhayrulin/x_engine

Add throwing an exception here

Closed this issue · 1 comments

If there were some problems during compiling the kernel source (we fall into the initialize_ocl in line 37), no ocl_solvers would be created, but execution would be continued. As a result, we would fall into make_partition and get division by zero in line 90 (in sph_model.hpp).

std::cout << ex.what() << std::endl;

Good catch I've fixed it in last commit