Commit 7a6ab3ae authored by Pierre Cazenave's avatar Pierre Cazenave

Add support for multiple open boundaries (in principle)

parent e4de723c
......@@ -97,7 +97,7 @@ netcdf.putVar(nc, nmfcell_varid, Mobj.read_obc_elements{1});
% MFDIST is calculated here as the diff of the sigma levels. This should
% work for uniform and gaussian etc. distributions so long as Mobj.siglev
% has the right values in it.
netcdf.putVar(nc, mfdist_varid, repmat(abs(diff(Mobj.siglev)), [numel(Mobj.read_obc_elements{1}), 1])');
netcdf.putVar(nc, mfdist_varid, repmat(abs(diff(Mobj.siglev)), [numel([Mobj.read_obc_elements{:}]), 1])');
netcdf.putVar(nc, dmfqdis_varid, [0, 0], [numel(Mobj.read_obc_elements{1}), numel(Mobj.mf_times)], data);
netcdf.close(nc);
......
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