Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspected incorrect fix "For very fine grids" in generate_grid.m #4

Open
dpzimmer opened this issue Nov 4, 2019 · 0 comments
Open

Comments

@dpzimmer
Copy link

dpzimmer commented Nov 4, 2019

Hi folks,

Regarding the following code in generate_grid.m

% [lon_prev,~] = min(abs(lon_base-x(k,j)));
% For very fine grids
[lon_prev,tmp] = min(abs(lon_base-x(k,j)));
if ( round(lon_prev) == 0 )
lon_prev = tmp-1;
end;
%

I believe that the following code is what is required:

[~,lon_prev] = min(abs(lon_base-x(k,j)));

and similarly for latitude further down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant