Fixing the electrolyte flash algorithm (work in progress)...