Skip to content

Commit

Permalink
fixed gaussian weights
Browse files Browse the repository at this point in the history
  • Loading branch information
martalmeida committed Jan 18, 2021
1 parent 7c00ef3 commit 6173835
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions nmf3d_mat/hvf_baroclinic.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
x = sind(LAT);
elseif isequal(latType,'gaussian')
[x,w] = lgwt(dlat,-1,1);
x=x(end:-1:1);
end

disp('Part I');
Expand Down
2 changes: 1 addition & 1 deletion nmf3d_mat/lgwt.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

% changed nov 2020:
% note that w is always symmetric, no need to change
x=x(end:-1:1);
%x=x(end:-1:1);

% Compute the weights
w=(b-a)./((1-y.^2).*Lp.^2)*(N2/N1)^2;

0 comments on commit 6173835

Please sign in to comment.