Origin of modality of volcanism