Geology and geothermal activity