add safeguard that ensures hdf5 is included when radiation is used
improve code style as suggested by @ax3l
remove 3D vs 2D pragma, as suggested by @ax3l