Magmatism in relation to diverse tectonic settings