Generalized indices: mpp global field updates
#1806
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds
mpp_global_fieldupdates for generalized indices, and also includes the new unit tests introduced in #1763. TheMPP_DO_GLOBAL_FIELD_3D_subroutine is renamed toMPP_GLOBAL_FIELD_, which now takes assumed-ranklocalandglobalarguments. Optionalxdimandydimarguments have also been added, which can be used to specify which dimensions are domain-decomposed.MPP_DO_GLOBAL_FIELD_A2A_3D_is removed, as are the various wrapper subroutines formpp_global_field(MPP_GLOBAL_FIELD_2D_,MPP_GLOBAL_FIELD_4D_, etc). This PR also adds new subroutines for packing/unpacking 2D-5D arrays tompp_domains_mod.How Has This Been Tested?
Builds on C5 with intel-classic.
mpp_global_fieldunit tests pass.Checklist:
make distcheckpasses