The objective of the present work is to develop an automated numerical method for the analysis of thin masonry shells. The material model for masonry that we adopt is the so-called “Normal Rigid No-Tension” material. For such a material, the kinematical and the safe theorems of Limit Analysis are valid, and the present study focusses on the application of the second theorem to masonry vaults and domes. In particular, the method we propose is devoted to the determination of a class of purely compressive stress regimes, which are balanced with the load. The mere existence of such a class is a proof that the structure is safe, and members of this class may be used to assess the geometric degree of safety of the structure and to estimate bounds...