-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update names based on new naming convention with prif
and caffeine
#45
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
94c025f
Change all procedure names based on new naming convention with
ktras a1264b6
Rename `caffeine_m` to `prif_m` and update procedure names in tests
ktras b8cafa0
Update procedure names in another test
ktras c462adf
Update names of procedures in tests
ktras 8a0ec0a
Update names
ktras 7bf9381
Update names
ktras a7ca559
Update `prif_m` name to `prif`
ktras 7722251
Update `prif_caffeinate` to `prif_init` and remove `prif_decaffeinate`
ktras 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 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,11 +1,11 @@ | ||
program hello_world | ||
use caffeine_m, only : caf_caffeinate, this_image => caf_this_image, num_images => caf_num_images, caf_stop | ||
use prif_m, only : prif_caffeinate, this_image => prif_this_image, num_images => prif_num_images, prif_stop | ||
implicit none | ||
|
||
if (caf_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit code" | ||
if (prif_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit code" | ||
|
||
print *, "Hello from image", this_image(), "of", num_images() | ||
|
||
call caf_stop(stop_code=0) ! normal termination | ||
call prif_stop(stop_code=0) ! normal termination | ||
|
||
end program |
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,10 +1,10 @@ | ||
program error_stop_character_code | ||
use caffeine_m, only : caf_caffeinate, caf_error_stop | ||
use prif_m, only : prif_caffeinate, prif_error_stop | ||
implicit none | ||
|
||
if (caf_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit_code" | ||
if (prif_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit_code" | ||
|
||
call caf_error_stop("Oh snap!") | ||
call prif_error_stop("Oh snap!") | ||
|
||
stop 0 ! ../../test/caf_error_stop_test.f90 will report a test failure if this line runs | ||
end program |
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,10 +1,10 @@ | ||
program error_stop_integer_code | ||
use caffeine_m, only : caf_caffeinate, caf_error_stop | ||
use prif_m, only : prif_caffeinate, prif_error_stop | ||
implicit none | ||
|
||
if (caf_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit_code" | ||
if (prif_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit_code" | ||
|
||
call caf_error_stop(1) | ||
call prif_error_stop(1) | ||
|
||
stop 0 ! caffeine/test/caf_error_stop_test.f90 reports a failure if this line runs | ||
end program | ||
end program |
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,10 +1,10 @@ | ||
program stop_with_no_code | ||
use caffeine_m, only : caf_caffeinate, caf_stop | ||
use prif_m, only : prif_caffeinate, prif_stop | ||
implicit none | ||
|
||
if (caf_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit_code" | ||
if (prif_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit_code" | ||
|
||
call caf_stop(1) | ||
call prif_stop(1) | ||
|
||
stop 2 ! caffeine/test/zzz_finalization_test.f90 reports a failure if this line runs | ||
end program |
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,10 +1,10 @@ | ||
program stop_with_no_code | ||
use caffeine_m, only : caf_caffeinate, caf_stop | ||
use prif_m, only : prif_caffeinate, prif_stop | ||
implicit none | ||
|
||
if (caf_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit_code" | ||
if (prif_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit_code" | ||
|
||
call caf_stop | ||
call prif_stop | ||
|
||
stop 1 ! caffeine/test/zzz_finalization_test.f90 reports a failure if this line runs | ||
end program |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be
prif_init
?