A Localized Variable Switching Method for Mass-Variable Based Reservoir Simulators