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

Ordering of processors when creating intracommunicator #8

Open
russfiedler opened this issue Jun 13, 2018 · 0 comments
Open

Ordering of processors when creating intracommunicator #8

russfiedler opened this issue Jun 13, 2018 · 0 comments

Comments

@russfiedler
Copy link

In mod_oasis_method.F90 when we attempt to make an intracommunicator from an intercommunicator we have the call

CALL mpi_intercomm_merge(tmp_intercomm,.FALSE., new_comm, ierr)

This means that the the ordering of the PEs in unspecified as high=.FALSE. for both components.
I suggest basing the order on a lexical comparison of cdnam (remote component supplied as an argument to the routine) and compnm (the local component, known through mod_oasis_data)

Something like

CALL mpi_intercomm_merge(tmp_intercomm,trim(compnm) > trim(cdnam), new_comm, ierr)

This should put ATM before ICE before OCN and will be unique. Thoughts?

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

No branches or pull requests

1 participant