-
Notifications
You must be signed in to change notification settings - Fork 0
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
add_t_cell_cutoff_function #41
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ezhilsabareesh8 Just a few comments, mostly about style. Otherwise code looks fine.
One last comment: there's actually no need to store the full do i = 1, ny_len / 2
do j = 1, (nxp_len - 1) / 2
if (dy(2 * i - 1, 2 * j) + dy(2 * i, 2 * j) < cutoff*1000.0) then !Input cutoff in Kilometers covert it to meters
this%depth(i, j) = MISSING_VALUE ! Set values below cutoff to zero or another value as needed
end if
end do
end do |
Co-authored-by: Micael Oliveira <[email protected]>
Co-authored-by: Micael Oliveira <[email protected]>
Co-authored-by: Micael Oliveira <[email protected]>
Co-authored-by: Micael Oliveira <[email protected]>
Thanks @micaeljtoliveira I have removed the intermediate array in this commit Updated in this commit 63bc14f |
Note that you also need to add the new case here: select case (name)
case ('gen_topo', 'deseas', 'min_max_depth', 'fill_fraction', 'fix_nonadvective', 'mask')
file_out = sget('output')
if (file_out == 'unset') then
write(error_unit,'(a)') 'ERROR: no output file specified'
error stop
end if
end select so that the code stops code if no output file was specified. |
@ezhilsabareesh8 Thanks for the changes! Just a couple more comments. We are almost there! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ezhilsabareesh8, looks good but I've made some suggestions to hopefully improve clarity.
Co-authored-by: Andrew Kiss <[email protected]>
Co-authored-by: Andrew Kiss <[email protected]>
54b88a9
to
3fcc49d
Compare
Also, would it be better to avoid unit conversion for
|
Co-authored-by: Andrew Kiss <[email protected]>
Co-authored-by: Andrew Kiss <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ezhilsabareesh8 for the latest changes! All good from my side, so I'll approve.
Thanks @micaeljtoliveira and @aekiss, all the comments have been addressed now and I checked the output, it looks fine. I will merge this PR if there's no further comments or suggestions. |
Thanks @ezhilsabareesh8, I've suggested some tweaks to the documentation. Otherwise it looks great. |
Co-authored-by: Andrew Kiss <[email protected]>
Co-authored-by: Andrew Kiss <[email protected]>
Co-authored-by: Andrew Kiss <[email protected]>
Co-authored-by: Andrew Kiss <[email protected]>
Co-authored-by: Andrew Kiss <[email protected]>
Co-authored-by: Andrew Kiss <[email protected]>
Co-authored-by: Andrew Kiss <[email protected]>
Thanks @aekiss, I have made the suggested changes. |
Thanks @ezhilsabareesh8, I'm happy for this to be merged |
Thanks @aekiss, Could you please approve this PR? |
This PR adds a subroutine to remove smaller T cells, particularly in regions near the tripole where smaller grid cells contribute to instability. These cells were previously removed in OM2 to enhance stability, and this change has now been incorporated into
domain-tools
in the current PR.