-
Notifications
You must be signed in to change notification settings - Fork 8
Add Parallel I/O Infrastructure #706
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
553eb09
src/offline/cable_mpi.F90: Add mpi_grp_t constructor for legacy commu…
SeanBryan51 3a8f4dc
src/offline/cable_mpi.F90: Add mpi_grp_split
SeanBryan51 9418e4e
src/offline/cable_mpi.F90: Add comm_defined procedure
SeanBryan51 0acdd20
Add parallel I/O netCDF interface
SeanBryan51 4c62091
Add unit tests for parallel I/O netCDF interface
SeanBryan51 453c5ce
Add parallel I/O decomp utilities
SeanBryan51 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| ! CSIRO Open Source Software License Agreement (variation of the BSD / MIT License) | ||
| ! Copyright (c) 2015, Commonwealth Scientific and Industrial Research Organisation | ||
| ! (CSIRO) ABN 41 687 119 230. | ||
|
|
||
| module cable_array_utils_mod | ||
| !! Utility procedures for working with arrays. | ||
| implicit none | ||
| private | ||
|
|
||
| public array_offset | ||
| public array_index | ||
|
|
||
| contains | ||
|
|
||
| !> Calculate the memory offset corresponding to a given index in a multi-dimensional array. | ||
| function array_offset(index, shape) result(offset) | ||
| integer, intent(in) :: index(:) !! The multi-dimensional index for which to calculate the offset. | ||
| integer, intent(in) :: shape(:) !! The shape of the multi-dimensional array. | ||
| integer :: offset !! The calculated memory offset corresponding to the given index. | ||
| integer :: i, scale | ||
| offset = 1; scale = 1 | ||
| do i = 1, size(index) | ||
| offset = offset + (index(i) - 1) * scale | ||
| scale = scale * shape(i) | ||
| end do | ||
| end function | ||
|
|
||
| !> Calculate the index corresponding to a given memory offset in a multi-dimensional array. | ||
| subroutine array_index(offset_in, shape, index) | ||
| integer, intent(in) :: offset_in !! The memory offset for which to calculate the multi-dimensional index. | ||
| integer, intent(in) :: shape(:) !! The shape of the multi-dimensional array. | ||
| integer, intent(inout) :: index(:) !! The calculated multi-dimensional index corresponding to the given offset. | ||
| integer :: i, offset | ||
| offset = offset_in | ||
| do i = 1, size(shape) | ||
| index(i) = mod(offset - 1, shape(i)) + 1 | ||
| offset = (offset - 1) / shape(i) + 1 | ||
| end do | ||
| end subroutine | ||
|
|
||
| end module cable_array_utils_mod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.