COSMOLOGICAL APPLICATIONS OF A NUMERICAL CODE FOR THE SOLUTION OF THE KOMPANEETS EQUATION