Moving the well_state initilaization out of the loop.

To make sure the well_state will only be initialized once to produce the
consistent result with the master branch.
A new function remains to be added to update the well_state during
timestepping.