Due to a shift in policy, from 0900 GMT on Wednesday 14th July 2021, we will be disabling ssh access to the server for external users. External users who wish to continue to access code repositories on the server will need to switch to using https. This can be accomplished in the following way: 1) On the repo on gitlab, use the clone dialogue and select ‘Clone with HTTPS’ to get the address of the repo; 2) From within the checkout of your repo run: $ git remote set-url origin HTTPS_ADDRESS. Here, replace HTTPS_ADDRESS with the address you have just copied from GitLab. Pulls and pushes will now require you to enter a username and password rather than using a ssh key. If you would prefer not to enter a password each time, you might consider caching your login credentials.

Commit 84447a81 authored by Ricardo Torres's avatar Ricardo Torres 💬

made debug function (not available at run time but can be copy and paste to...

made debug function (not available at run time but can be copy and paste to matlab console) a bit easier to copy and paste!
parent 65dbffc0
......@@ -232,7 +232,26 @@ function debug_mode()
% Test with made up data. This isn't actually used at all, but it's handy
% to leave around for debugging things.
% Hmin=50;
conf.nlev = 25; % vertical levels (layers + 1)
conf.H0 = 30; % threshold depth for the transition (metres)
conf.DU = 3; % upper water boundary thickness
conf.DL = 3; % lower water boundary thickness
conf.KU = 3; % layer number in the water column of DU (maximum of 5 m thickness)
conf.KL = 3; % layer number in the water column of DL (maximum of 5m thickness)
Mobj = hybrid_coordinate(conf, Mobj);
nlev = conf.nlev;
H0 = conf.H0;
DU = conf.DU;
DL = conf.DL;
KU = conf.KU;
KL = conf.KL;
ZKU = repmat(DU./KU, 1, KU);
ZKL = repmat(DL./KL, 1, KL);
Hmin=24;
Hmax=Hmin + 200;
y = 0:0.1:100;
B = 70;
......@@ -245,6 +264,8 @@ for xx=1:length(H)
Z2(xx, :) = sigma_gen(nlev, DL, DU, KL, KU, ZKL, ZKU, H(xx), Hmin);
end
plot(y,Z2 .* repmat(H', 1, nlev))
clf
plot(y,Z2 .* repmat(H', 1, nlev));hold on
plot(y,ones(size(y)).*-Hmin)
fprintf('Calculated minimum depth: %.2f\n', Hmin)
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