Adaptive moving mesh algorithm based on local reaction rate