Forward model carbonate growth and alteration to better understand the evolution of reefs and carbonate platforms.