Computer simulation of one-dimensional spinodal decomposition