A practical adaptive grid method for the Allen–Cahn equation