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

MPP Update #1655

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

MPP Update #1655

wants to merge 10 commits into from

Conversation

abrooks1085
Copy link
Contributor

Description
Updates mpp_gather and mpp_scatter routines to use the native collective modes MPI_SCATTER and MPI_GATHER

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note
any relevant details for your test configuration (e.g. compiler, OS). Include
enough information so someone can reproduce your tests.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

! need this check in case MPI-rank 0 is a member of the pelist
call mpp_max(root_pe_test, pelist)
if (root_pe_test.lt.0) call mpp_error(FATAL, &
if ( ANY(pelist(:).eq.mpp_pe()) ) then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this if-check needed here. We should've kicked out any pe's not in the pelist with the check at line 67.

@@ -870,7 +879,7 @@ end function rarray_to_char
integer :: SD_UNIT, total_calls
integer :: j,k,ct, msg_cnt
character(len=2) :: u
character(len=FMS_FILE_LEN) :: filename
character(len=20) :: filename
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to continue using FMS_FILE_LEN here?

@@ -1228,7 +1237,7 @@ end function rarray_to_char
integer, dimension(2) :: lines_and_length
logical :: file_exist
character(len=len(peset(current_peset_num)%name)) :: pelist_name
character(len=FMS_PATH_LEN) :: filename
character(len=128) :: filename
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to continue using FMS_FILE_LEN here?

if ( len_trim(str_tmp) == LENGTH) then
write(UNIT=text, FMT='(I5)') LENGTH
if ( len_trim(str_tmp) == LENGTH ) then
write(UNIT=text, FMT='(I5)') length
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that Fortran does not enforce alphanumeric case, but we should leave this as LENGTH

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

Successfully merging this pull request may close these issues.

2 participants