Commit 6b65f61b authored by Pierre Cazenave's avatar Pierre Cazenave

Change the shape of the input array of surface elevations, and as such, amend...

Change the shape of the input array of surface elevations, and as such, amend the check on the dimensions of that array against the time and boundary node arrays
parent e46dc397
......@@ -47,7 +47,7 @@ nObcs = numel(ObcNodes);
if(report); fprintf('Number of Open Boundary Nodes %d\n',nObcs); end;
[chk1,chk2] = size(SurfaceElevation);
if nTimes ~= chk1 || nObcs ~= chk2
if nObcs ~= chk1 || nTimes ~= chk2
fprintf('Surface elevation dimensions do not match time series and number of boundary nodes.\n')
fprintf('Surface elevation nodes and time sizes: (%d, %d)\n', chk1, chk2)
fprintf('Boundary nodes size: %d\n', nObcs)
......@@ -102,7 +102,6 @@ elevation_varid=netcdf.defVar(nc,'elevation','NC_FLOAT',[nobc_dimid, time_dimid]
netcdf.putAtt(nc,elevation_varid,'long_name','Open Boundary Elevation');
netcdf.putAtt(nc,elevation_varid,'units','meters');
% end definitions
netcdf.endDef(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