@@ -72,9 +72,10 @@ module fms_io_utils_mod
7272 type (char_linked_list), pointer :: head = > null ()
7373endtype char_linked_list
7474
75- ! > Reads in a ASCII file from a given path and populates a maskmap that corresponds to a domain decomposition.
75+ ! > Reads in the mask_table file in the ASCII format from a given path and populates a maskmap array that used for
76+ ! ! domain decomposition.
7677! !
77- ! ! The logical array created will be the same shape as the domain layout, with each index representing a specific pe
78+ ! ! The maskmap array is a logical array with the same shape as the domain layout, with each index representing a specific pe
7879! ! within the decomposition. This array is intended to be used as input for the mpp_define_domain routines maskmap
7980! ! argument, to essentially exclude certain pe's from a domain decomposition.
8081! !
@@ -85,14 +86,20 @@ module fms_io_utils_mod
8586! ! <rank-to-mask>
8687! ! <any-additional-ranks-to-mask>
8788! !
88- ! ! Example:
89+ ! ! For example, for a domain layout of (2,2),
90+ ! ! -----------------
91+ ! ! | (1,2) | (2,2) |
92+ ! ! | ------------- |
93+ ! ! | (1,1) | (2,1) |
94+ ! ! -----------------
95+ ! !
96+ ! ! The below mask table masks out 2 pes: the top left corner (1,1) and the bottom right corner (4,4).
97+ ! ! To clarify, this means 2 pes would be required, rather than 4 if the domain decomposition was not masked.
8998! !
9099! ! 2
91- ! ! 4,4
100+ ! ! 2,2
92101! ! 1,1
93- ! ! 4,4
94- ! !
95- ! ! For this mask table, 2 rank's would be masked: the top right corner (1,1) and the bottom left corner (4,4)
102+ ! ! 2,2
96103! !
97104! ! This interface includes support for both 2D and 3D mask tables.
98105! !
@@ -102,7 +109,7 @@ module fms_io_utils_mod
102109 module procedure parse_mask_table_3d
103110end interface parse_mask_table
104111
105- ! > Gets the file name to be used when utilizing a mosaic that contains multiple tiles .
112+ ! > Constructs the file name to be used when utilizing a multi-tile mosaic .
106113! ! This is currenly used in the diag_manager and data_override in so that any output files
107114! ! will include the tile number of the writer. Uses the format "filename.tileN.nc" and requires
108115! ! the filename to already include the .nc suffix.
0 commit comments