Text this: A local terrain smoothing approach for stabilizing microscale and high-resolution mesoscale simulations