Model for continuous thermal metal to insulator transition