Commit 79a41030 authored by Pierre Cazenave's avatar Pierre Cazenave

Initialise to zero to get the correct vertical distribution.

parent 9e01d009
......@@ -26,7 +26,7 @@ function dist = sigma_tanh(nlev,dl,du)
% Revision history
% 2013-04-23 Added help on the function and reformatted the code.
dist = nan(1, nlev);
dist = zeros(1, nlev);
for k = 1:nlev
x1 = dl+du;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment