Correlation between the microstructure of mortar and replicated masonry walls