-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix a bug for Nx Ny in swath grid #2840
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.
I will approve, but you might want to look at how domain decomposition is done in MAPL3 for this problem:
MAPL/geom_mgr/latlon/LatLonDecomposition_smod.F90
Lines 29 to 36 in 44dfddf
associate (aspect_ratio => real(dims(1))/dims(2)) | |
nx_start = max(1, floor(sqrt(petCount * aspect_ratio))) | |
do nx = nx_start, 1, -1 | |
if (mod(petcount, nx) == 0) then ! found a decomposition | |
exit | |
end if | |
end do | |
end associate |
Thanks. I have added a note to indicate using the same algorithm from above. I am checking if this modification works for 124416 cores. |
I am able to run MAPL C720 with ncore=3456, not specifying NX and NY for swath.
|
Types of change(s)
Checklist
make tests
)Description
In swath grid, e.g.,
im_world 135
jm_world 7851
when Ncore=3456
the default gives Nx ~ sqrt(2Ncore), Ny= Ncore /Nx
such that floor ( im_world / Nx ) = 1
function generate_new_decomp
tries to correct it, but violate Nx * Ny = Ncore.Printout below:
Related Issue