Magma be stored in magma chambers or trans-crustal crystal-rich mush zones. During their storage in the crust, magma compositions may be modified by fractional crystallization, contamination with crustal melts, magma mixing, and degassing. Following their ascent through the crust, magmas may feed a volcano or solidify underground to form an intrusion (e.g., an igneous dike or a sill). While the study of magma has historically relied on observing magma in the form of lava flows, magma has been encountered in situ three times during geothermal drilling projects—twice in Iceland (see Magma usage for energy production), and once in Hawaii. Most magmatic
Magma (the extrusive equivalents of gabbro, diorite and granite, respectively). During a volcanic eruption the magma that leaves the underground is called lava. Lava cools and solidifies relatively quickly compared to underground bodies of magma. This fast cooling does not allow crystals to grow large, and a part of the melt does not crystallize at all, becoming glass. Rocks largely composed of volcanic glass include obsidian, scoria and pumice. Before and during volcanic eruptions, volatiles such as CO and HO partially leave the melt through a process known as exsolution. Magma with low water content becomes increasingly viscous. If massive exsolution