The relationships between pooling of magmatic intrusions within continental crust, partial to complete melting of the surrounding country rock, and the generation of magmas with differing compositions.