fixing inflow profiles, T is a problem parameter now