-
Notifications
You must be signed in to change notification settings - Fork 136
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
Fix test failures with ifx due to use of host associated arrays #1606
Open
abrooks1085
wants to merge
8
commits into
NOAA-GFDL:main
Choose a base branch
from
abrooks1085:ifx_tests_fix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4db6c52
Added save attribute to Host Associated Arrays
abrooks1085 6f449ef
Merge branch 'NOAA-GFDL:main' into ifx_tests_fix
abrooks1085 3536d39
Removed save attribute from lat and lon arrays and put these arrays i…
abrooks1085 3fd1639
removed save attribute from arrays and moved initialize_arrays subrou…
abrooks1085 ad66ba6
Removed trailing whitespace
abrooks1085 a74f50c
undo
abrooks1085 16f7ead
undo
abrooks1085 993a0be
undo
abrooks1085 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 |
---|---|---|
|
@@ -57,8 +57,8 @@ program test_diag_integral | |
real(TEST_DI_KIND_) :: weight(nxy,nxy,nxy) !> weights required to test sum_field_wght_3d | ||
real(TEST_DI_KIND_) :: immadeuph(nxy,nxy) !> array to test sum_field_2d_hemi | ||
|
||
real(r8_kind) :: lat(nxyp,nxyp), lon(nxyp,nxyp) | ||
real(r8_kind) :: area(nxy,nxy) | ||
real(r8_kind) :: lat(nxyp,nxyp), lon(nxyp,nxyp) | ||
real(r8_kind) :: area(nxy,nxy) | ||
type(time_type) :: Time_init, Time | ||
|
||
!testing and generating answers | ||
|
@@ -96,6 +96,24 @@ program test_diag_integral | |
call test_sum_diag_integral_field !< compare read in values to the expected values. | ||
|
||
contains | ||
!------------------------------------- | ||
!------------------------------------- | ||
subroutine initialize_arrays | ||
|
||
!> made up numbers | ||
|
||
implicit none | ||
|
||
lon=1.0_lkind | ||
lat=1.0_lkind | ||
area=1.0_lkind | ||
immadeup2=1.0_lkind | ||
immadeup3=1.0_lkind | ||
immadeupw=1.0_lkind | ||
immadeuph=1.0_lkind | ||
weight=1.0_lkind | ||
|
||
end subroutine initialize_arrays | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not get rid of |
||
!------------------------------------- | ||
!------------------------------------- | ||
subroutine test_diag_integral_init | ||
|
@@ -177,6 +195,7 @@ subroutine read_diag_integral_file | |
|
||
character(*), parameter :: di_file='diag_integral.out' | ||
integer :: iunit | ||
|
||
character(100) :: cline1, cline2, cline3, cline4, cline5, clin6 | ||
|
||
!> read in computed values | ||
|
@@ -203,22 +222,4 @@ subroutine check_answers(answer, outresult, whoami) | |
end subroutine check_answers | ||
!------------------------------------- | ||
!------------------------------------- | ||
subroutine initialize_arrays | ||
|
||
!> made up numbers | ||
|
||
implicit none | ||
|
||
lon=1.0_lkind | ||
lat=1.0_lkind | ||
area=1.0_lkind | ||
immadeup2=1.0_lkind | ||
immadeup3=1.0_lkind | ||
immadeupw=1.0_lkind | ||
immadeuph=1.0_lkind | ||
weight=1.0_lkind | ||
|
||
end subroutine initialize_arrays | ||
!------------------------------------- | ||
!------------------------------------- | ||
end program test_diag_integral |
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.
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.
Should this test be updated like the other one to pass in the variables to each routine?
The only real change I'm seeing in this test is moving the
intialize_arrays
subroutine up in the file, which shouldn't change anything technically, but maybe ifx thinks otherwise.