Small modification on writing variable to hdf5 for BTE-RTA