Melissa eyed the output with caution, but it looked all right. The temperature went up in the morning and down in the evening, just like it ought. Plus, she had forecasts of temperature for all these other levels in the atmosphere. She didn't need them, but hey, they looked impressive. Apparently, the formulas the weather computer used for calculating the vertical mixing and the radiative heating of the ground were accurate, or at least reasonably close to reality.
Buoyed by this success, Melissa next decided to try to forecast the air pressure. Again the computer asked her for more information; in this case, the air pressure at the top of her air column, at one mile. How was she to know that? Melissa checked the computer screen again: one of the options was to have the weather computer compute the pressure at the top from the pressure at the bottom, using the hydrostatic equation and the temperatures she had already specified. The hydrostatic equation says:
The CHANGE OF PRESSURE with HEIGHT is equal to the weight of the intervening air, which at a given pressure level depends only on TEMPERATURE.
So she got a barometer, measured the surface pressure, gave the information to the computer, and it calculated a pressure at one miles: 837 mb.
Melissa did the same thing she did with the temperature: she told the computer to assume that the pressure at one mile stayed constant. So the computer went through its temperature forecast again, except that as it did so, it also calculated the air pressure at all levels using the hydrostatic equation.
Since the hydrostatic equation uses just the temperatures to calculate the pressure, it wasn't like the weather computer had to make a new forecast, or even two separate forecasts. It just did the temperature forecast, and used those temperatures to calculate pressure. Terminology: the equation used to calculate temperature, since it involves stepping forward in time, is called a "prognostic" equation, while the equation used to calculate pressure, which relates instantaneous values to each other, is called a "diagnostic" equation.
That was enough work for one day; Melissa finished her round of golf, ate half a pizza, and went to bed.
Despite the pizza, Melissa slept well, not knowing that the pressure forecast was actually much worse than the temperature forecast. Why would that be?