Proceedings of the Royal Irish Academy: Stellar models with variable composition. 1. Models with a discontinuity of molecular weight.