FIx write_output functions to work with single/double prec according to macro USE_FLOAT32 set in control.hpp
@3bm
@dg6