Commit 5cd91810 authored by Pierre Cazenave's avatar Pierre Cazenave

Fix bug in which grids with multiple boundaries were not being read properly,...

Fix bug in which grids with multiple boundaries were not being read properly, resulting in the incorrect node numbers being written to the spectide NetCDF file
parent 005795a3
......@@ -65,7 +65,7 @@ for ob=1:Mobj.nObs
nObcs = Mobj.nObcNodes(ob);
for j=1:nObcs
cnt = cnt + 1;
ObcNodes(cnt) = Mobj.obc_nodes(1,j); % set the open boundary nodes
ObcNodes(cnt) = Mobj.obc_nodes(ob,j); % set the open boundary nodes
Amp(cnt,:) = Mobj.amp_obc{ob}(:,j);
Phase(cnt,:) = Mobj.phase_obc{ob}(:,j);
......
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