Skip to content
This repository was archived by the owner on Nov 18, 2026. It is now read-only.

Adding the 1D adjoint halo communications - #25

Merged
liujake merged 4 commits into
release-stablefrom
feature/getvalues
Apr 5, 2022
Merged

liujake merged 4 commits into
release-stablefrom
feature/getvalues

Conversation

@byoung-joo

Copy link
Copy Markdown
Collaborator

DESCRIPTION OF CHANGES:
In this PR, a 1D adjoint halo exchange subroutine is added. This is a companion PR of https://github.com/JCSDA-internal/mpas-jedi/pull/708, which is a part of "getvalues" refactoring.

LIST OF MODIFIED FILES:
M src/framework/mpas_dmpar.F

TESTS CONDUCTED:
Tested on Cheyenne.

@byoung-joo
byoung-joo requested review from jjguerrette and metdyn April 5, 2022 19:01

@metdyn metdyn left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Already testes in 120-km 3denvar cycle run

@liujake

liujake commented Apr 5, 2022

Copy link
Copy Markdown

@byoung-joo You perhaps should document the code with something more than 'author Doug Jacobsen'. e.g., adopted some other code for this purpose?

@byoung-joo

Copy link
Copy Markdown
Collaborator Author

The code document was copied from the original routine mpas_dmpar_exch_halo_field1d_real.

I can modify as follows.

!> \brief MPAS dmpar halo exchange adjoint 1D real field
!> \author Doug Jacobsen
!> \date   03/26/13
!> \details
!>  This routine handles the adjoint of halo exchange communication of an input field across all processors.
!>  It accumulates the values of owned point with the values of halos.

Should we include \author and \date, too ?

@liujake

liujake commented Apr 5, 2022

Copy link
Copy Markdown

I mean this is your code even though it is based on mpas_dmpar_exch_halo_field1d_real. So author should not be the original author. How about below:

\brief MPAS dmpar halo exchange adjoint 1D real field
!> \author BJ Jung
!> \date   04/2022
!> \details
!>  This routine handles the adjoint of halo exchange communication of an input field across all processors.
!>  It accumulates the values of owned point with the values of halos. It is based on mpas_dmpar_exch_halo_field1d_real.

@byoung-joo

Copy link
Copy Markdown
Collaborator Author

Oh I see. I will modify the comment lines as suggested.

	modified:   mpas_dmpar.F
@byoung-joo

Copy link
Copy Markdown
Collaborator Author

I also updated the document for mpas_dmpar_exch_halo_adj_field2d_real, which was written before.

Note that I can not merge this PR. It says "Merging is blocked The base branch restricts merging to authorized users".
So please merge this PR when https://github.com/JCSDA-internal/mpas-jedi/pull/708 is merged.

@liujake

liujake commented Apr 5, 2022

Copy link
Copy Markdown

I am merging this one.

@liujake
liujake merged commit d80ddd6 into release-stable Apr 5, 2022
@liujake
liujake deleted the feature/getvalues branch April 5, 2022 22:06
climbfuji pushed a commit that referenced this pull request Aug 26, 2022
DESCRIPTION OF CHANGES:
In this PR, a 1D adjoint halo exchange subroutine is added. This is a companion PR of JCSDA-internal/mpas-jedi#708, which is a part of "getvalues" refactoring.

LIST OF MODIFIED FILES:
M src/framework/mpas_dmpar.F

TESTS CONDUCTED:
Tested on Cheyenne.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants