primary variables are not initialized in the function StandardWell::computeCurrentWellRates()
When working on other issues, it looks like when we call the function StandardWell::computeCurrentWellRates(), the primary variables are not initialized yet and at least the bhp from the primary variables is used in the simulation.
not sure whether it is a bug or intentional. From the code, it looks like a bug. If it is intentional, we need to revise the code so that it is clear.
And the cmix_s shows the fraction value primary variables are also used so the code will think it is a oil production well with only oil in the wellbore since the fractions are specified for the gas and water.
this->connections_ are not initialized either. Not sure whether it is cause for the ongoing issue. Will come back to investigate.
since it is trying to initialize the well state, so hopefully, there is no chicken-egg problem involved here.