-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from BerkeleyLab/update-names
Update names based on new naming convention with `prif` and `caffeine`
- Loading branch information
Showing
41 changed files
with
400 additions
and
407 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 |
---|---|---|
@@ -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, only : prif_init, 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_init() /= 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, only : prif_init, prif_error_stop | ||
implicit none | ||
|
||
if (caf_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit_code" | ||
if (prif_init() /= 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, only : prif_init, prif_error_stop | ||
implicit none | ||
|
||
if (caf_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit_code" | ||
if (prif_init() /= 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, only : prif_init, prif_stop | ||
implicit none | ||
|
||
if (caf_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit_code" | ||
if (prif_init() /= 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, only : prif_init, prif_stop | ||
implicit none | ||
|
||
if (caf_caffeinate() /= 0) error stop "caffeinate returned a non-zero exit_code" | ||
if (prif_init() /= 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 was deleted.
Oops, something went wrong.
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.