Hi Inwoo,
It returns the depth-averaged value of initial temperature,
if ~isnan(md.initialization.temperature),md.initialization.temperature=DepthAverage(md,md.initialization.temperature);
end;
But the temperature boundary conditions (spctemperature) are just projected to a 2d mesh by
md.thermal.spctemperature=project2d(md,md.thermal.spctemperature,md.mesh.numberoflayers);
You can also calculate the depth-averaged value of any variable of interest yourself using the same DepthAverage()
function.
Check out the model.m file in your /trunk/bin/ directory, where function md = collapse(md) is declared (in case you already haven't). You can see the details of what collapse function does.
hope this somewhat helps,
Soroush