Minor bug fix with put_att (inq_dimid instead of inq_varid).