Here I show the code I wrote for a two layer convective model of average yearly planetary temperature. I had already written a program for the single layer model without convection. I will first show the two layer program, and run it for high and low values so one can see the difference, then, I will present the model for it and then follow up with the model for the single atmospheric layer and its run results.
Ian Beardsley
March 1, 2015