chooseICavg function

Get index of appropriate initial condition average profile