52 |
*exp(-(3*zc(k)/Ho)^2); |
*exp(-(3*zc(k)/Ho)^2); |
53 |
end |
end |
54 |
T(:,end,:)=0; |
T(:,end,:)=0; |
55 |
fid=fopen('theta.bin','w',ieee); fwrite(fid,T,prec); fclose(fid); |
%- add 10 more levels: |
56 |
|
t25=zeros(nx,ny,nz+10); t25(:,:,[1:nz]=T; |
57 |
|
fid=fopen('theta.bin','w',ieee); fwrite(fid,t25,prec); fclose(fid); |
58 |
|
|
59 |
% Salt (passive tracer) |
% Salt (passive tracer) |
60 |
for k=1:nz, |
for k=1:nz, |
64 |
S(:,:,k)=exp(-(2*Y/Ly).^2); % Exponential with y |
S(:,:,k)=exp(-(2*Y/Ly).^2); % Exponential with y |
65 |
end |
end |
66 |
S(:,end,:)=0; |
S(:,end,:)=0; |
67 |
fid=fopen('salt.bin','w',ieee); fwrite(fid,S,prec); fclose(fid); |
%- add 10 more levels: |
68 |
|
s25=zeros(nx,ny,nz+10); s25(:,:,[1:nz]=S; |
69 |
|
fid=fopen('salt.bin','w',ieee); fwrite(fid,s25,prec); fclose(fid); |