-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Henry LE BERRE <[email protected]>
- Loading branch information
1 parent
07f3dd8
commit 6063725
Showing
58 changed files
with
5,103 additions
and
5,119 deletions.
There are no files selected for viewing
This file contains 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,21 @@ | ||
name: Pretty | ||
|
||
on: | ||
push: | ||
|
||
pull_request: | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
docs: | ||
name: Code formatting | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Check formatting | ||
run: | | ||
./mfc.sh format | ||
git diff --exit-code |
This file contains 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 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 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 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 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 |
---|---|---|
@@ -1,37 +1,37 @@ | ||
module m_delay_file_access | ||
implicit none | ||
private | ||
|
||
public :: & | ||
DelayFileAccess | ||
integer, private, parameter :: & | ||
DelayFileAccess | ||
|
||
integer, private, parameter :: & | ||
N_PROCESSES_FILE_ACCESS = 128, & | ||
FILE_ACCESS_DELAY_UNIT = 10000 | ||
contains | ||
subroutine DelayFileAccess ( ProcessRank ) | ||
integer, intent ( in ) :: & | ||
ProcessRank | ||
integer :: & | ||
iDelay, & | ||
nFileAccessDelayIterations | ||
real(kind(0d0)) :: & | ||
Number, & | ||
Dummy | ||
nFileAccessDelayIterations & | ||
= ( ProcessRank / N_PROCESSES_FILE_ACCESS ) * FILE_ACCESS_DELAY_UNIT | ||
do iDelay = 1, nFileAccessDelayIterations | ||
!-- wait my turn | ||
call random_number ( Number ) | ||
Dummy = Number * Number | ||
end do | ||
FILE_ACCESS_DELAY_UNIT = 10000 | ||
|
||
contains | ||
|
||
subroutine DelayFileAccess(ProcessRank) | ||
|
||
integer, intent(in) :: & | ||
ProcessRank | ||
|
||
integer :: & | ||
iDelay, & | ||
nFileAccessDelayIterations | ||
real(kind(0d0)) :: & | ||
Number, & | ||
Dummy | ||
|
||
nFileAccessDelayIterations & | ||
= (ProcessRank/N_PROCESSES_FILE_ACCESS)*FILE_ACCESS_DELAY_UNIT | ||
|
||
do iDelay = 1, nFileAccessDelayIterations | ||
!-- wait my turn | ||
call random_number(Number) | ||
Dummy = Number*Number | ||
end do | ||
|
||
end subroutine DelayFileAccess | ||
|
||
end module m_delay_file_access | ||
end module m_delay_file_access |
This file contains 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.