-
Notifications
You must be signed in to change notification settings - Fork 18
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
A potential bug in the 'u_baro' calculation of FALWA v.1.2.0 #108
Comments
I can reproduce the problem with I think the loop in hn2016_falwa/falwa/f90_modules/compute_flux_dirinv.f90 Lines 190 to 193 in e47f685
needs to be adapted to the value of hn2016_falwa/falwa/f90_modules/compute_flux_dirinv.f90 Lines 181 to 188 in e47f685
and replace everything with if (is_nhem) then
do j = jstart,jend
ubaro(:,j) = ubaro(:,j)+uu(:,j+nd-1,k)*exp(-zk/h)*dc
urefbaro(j) = urefbaro(j)+uref(j-jb,k)*exp(-zk/h)*dc
enddo
else
do j = jstart,jend
ubaro(:,j) = ubaro(:,j)+uu(:,j,k)*exp(-zk/h)*dc
urefbaro(j) = urefbaro(j)+uref(j,k)*exp(-zk/h)*dc
enddo
endif @csyhuang, do you think this works with the indices? It seems to resolve the issue in my test notebook, but I'm worried about an off-by-one error... |
@sandrolubis Thanks for reporting the bug! |
Hi all, after updating to FALWA v1.2.0, I spotted a potential bug in u_baro calculation where the output mirrors - i.e., SH = NH. I checked the 'interpolated_u' data; they are correct. Only 'u_baro' shows this issue. See the attached plot.
The text was updated successfully, but these errors were encountered: