discharge_max = MFVarGetFloat(_MDOutDischMaxID,   itemID, 5*discharge/3);