A finite-volume module for cloud-resolving simulations of global atmospheric flows