Ensemble Kalman filter for automatic history matching of geologic facies