From 0356c63785ef55edf3a5efbc70a44262bc1635be Mon Sep 17 00:00:00 2001 From: Caroline Cardinale Date: Wed, 21 Jun 2017 09:31:22 -0400 Subject: [PATCH] Added doxygen comments to MOM_domains.F90 Added doxygen comments to all of the subroutines in MOM_domains.F90. All the answers are bitwise identical. --- src/framework/MOM_domains.F90 | 563 ++++++++++++++++++++++++++-------- 1 file changed, 430 insertions(+), 133 deletions(-) diff --git a/src/framework/MOM_domains.F90 b/src/framework/MOM_domains.F90 index ca1dc281a2..018ec6cf56 100644 --- a/src/framework/MOM_domains.F90 +++ b/src/framework/MOM_domains.F90 @@ -139,13 +139,26 @@ module MOM_domains contains +! #@# This subroutine needs a doxygen description subroutine pass_var_3d(array, MOM_dom, sideflag, complete, position, halo) - real, dimension(:,:,:), intent(inout) :: array - type(MOM_domain_type), intent(inout) :: MOM_dom - integer, optional, intent(in) :: sideflag - logical, optional, intent(in) :: complete - integer, optional, intent(in) :: position - integer, optional, intent(in) :: halo + real, dimension(:,:,:), intent(inout) :: array !< The array which is having its halos points + !! exchanged. + type(MOM_domain_type), intent(inout) :: MOM_dom !< The MOM_domain_type containing the mpp_domain + !! needed to determine where data should be + !! sent. + integer, optional, intent(in) :: sideflag !< An optional integer indicating which + !! directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, + !! TO_NORTH, and TO_SOUTH. For example, TO_EAST sends the data to the processor to the east, + !! sothe halos on the western side are filled. TO_ALL is the default if sideflag is omitted. + logical, optional, intent(in) :: complete !< An optional argument indicating whether the + !! halo updates should be completed before + !! progress resumes. Omitting complete is the + !! same as setting complete to .true. + integer, optional, intent(in) :: position !< An optional argument indicating the position. + !! This is usally CORNER, but is CENTER by + !! default. + integer, optional, intent(in) :: halo !< The size of the halo to update - the full + !! halo by default. ! Arguments: array - The array which is having its halos points exchanged. ! (in) MOM_dom - The MOM_domain_type containing the mpp_domain needed to ! determine where data should be sent. @@ -180,14 +193,25 @@ subroutine pass_var_3d(array, MOM_dom, sideflag, complete, position, halo) end subroutine pass_var_3d - +! #@# This subroutine needs a doxygen description subroutine pass_var_2d(array, MOM_dom, sideflag, complete, position, halo) - real, dimension(:,:), intent(inout) :: array - type(MOM_domain_type), intent(inout) :: MOM_dom - integer, optional, intent(in) :: sideflag - logical, optional, intent(in) :: complete - integer, optional, intent(in) :: position - integer, optional, intent(in) :: halo + real, dimension(:,:), intent(inout) :: array !< The array which is having its halos points + !! exchanged. + type(MOM_domain_type), intent(inout) :: MOM_dom !< The MOM_domain_type containing the mpp_domain + !! needed to determine where data should be sent. + integer, optional, intent(in) :: sideflag !< An optional integer indicating which + !! directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, + !! TO_NORTH, and TO_SOUTH. For example, TO_EAST sends the data to the processor to the east, + !! so the halos on the western side are filled. TO_ALL is the default if sideflag is omitted. + logical, optional, intent(in) :: complete !< An optional argument indicating whether the + !! halo updates should be completed before + !! progress resumes. Omitting complete is the + !! same as setting complete to .true. + integer, optional, intent(in) :: position !< An optional argument indicating the position. + !! This is usally CORNER, but is CENTER + !! by default. + integer, optional, intent(in) :: halo !< The size of the halo to update - the full halo + !! by default. ! Arguments: array - The array which is having its halos points exchanged. ! (in) MOM_dom - The MOM_domain_type containing the mpp_domain needed to ! determine where data should be sent. @@ -224,13 +248,25 @@ subroutine pass_var_2d(array, MOM_dom, sideflag, complete, position, halo) end subroutine pass_var_2d function pass_var_start_2d(array, MOM_dom, sideflag, position, complete, halo) - real, dimension(:,:), intent(inout) :: array - type(MOM_domain_type), intent(inout) :: MOM_dom - integer, optional, intent(in) :: sideflag - integer, optional, intent(in) :: position - logical, optional, intent(in) :: complete - integer, optional, intent(in) :: halo - integer :: pass_var_start_2d + real, dimension(:,:), intent(inout) :: array !< The array which is having its halos points + !! exchanged. + type(MOM_domain_type), intent(inout) :: MOM_dom !< The MOM_domain_type containing the mpp_domain + !! needed to determine where data should be + !! sent. + integer, optional, intent(in) :: sideflag !< An optional integer indicating which + !! directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, + !! TO_NORTH, and TO_SOUTH. For example, TO_EAST sends the data to the processor to the east, + !! so the halos on the western side are filled. TO_ALL is the default if sideflag is omitted. + integer, optional, intent(in) :: position !< An optional argument indicating the position. + !! This is usally CORNER, but is CENTER + !! by default. + logical, optional, intent(in) :: complete !< An optional argument indicating whether the + !! halo updates should be completed before + !! progress resumes. Omitting complete is the + !! same as setting complete to .true. + integer, optional, intent(in) :: halo !< The size of the halo to update - the full + !! halo by default. + integer :: pass_var_start_2d !