adding static_assert to check the number of boundary conditions
adding more informative message to an exception
fixing concurrent_1d