A phase diagram for compartment fires