Opened 6 years ago
Closed 6 years ago
#841 closed bug (Fixed)
Corrected bug in contact.m
| Reported by: | arango | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | Release ROMS/TOMS 3.9 |
| Component: | Matlab | Version: | 3.9 |
| Keywords: | Cc: |
Description
The local function refine_coordinates in contact.m has the wrong interpolant:
%--------------------------------------------------------------------------
% Interpolate other grid variables.
%--------------------------------------------------------------------------
if (spherical)
if (~isempty(G(dg).x_rho) && ~isempty(G(dg).y_rho))
FCr.Values = G(dg).angle(:); R.angle = FCr(XrF, YrF);
FCr.Values = G(dg).f(:); R.f = FCr(XrF, YrF);
FCr.Values = G(dg).h(:); R.h = FCr(XrF, YrF);
elseif (~isempty(G(dg).lon_rho) && ~isempty(G(dg).lat_rho))
FSr.Values = G(dg).angle(:); R.angle = FSr(XrF, YrF);
FSr.Values = G(dg).f(:); R.f = FSr(XrF, YrF);
FSr.Values = G(dg).h(:); R.h = FSr(XrF, YrF);
end
else
FCr.Values = G(dg).angle(:); R.angle = FCr(XrF, YrF);
FCr.Values = G(dg).f(:); R.f = FCr(XrF, YrF);
FCr.Values = G(dg).h(:); R.h = FCr(XrF, YrF);
end
We needed to use FSr functional for the middle conditional. Many thanks to Daijiro Kobashi for reporting this bug.
Note:
See TracTickets
for help on using tickets.
