Skip to content
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: use a bigger real transfering mask_val #1586

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions mpp/include/mpp_chksum_int.fh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function MPP_CHKSUM_INT_RMASK_( var, pelist, mask_val )
MPP_TYPE_, intent(in) :: var MPP_RANK_
integer, optional :: pelist(:)
real, intent(in) :: mask_val
real(KIND=r8_kind) :: tmp_mask_val
integer(KIND(var))::imask_val
integer(KIND=i4_kind)::i4tmp(2)=0
real(KIND=r4_kind)::r4tmp(2)=0
Expand All @@ -74,9 +75,10 @@ function MPP_CHKSUM_INT_RMASK_( var, pelist, mask_val )
! Secondary Logic:
!! We've done something dangerous
else
i8tmp = TRANSFER(mask_val , i8tmp )
i4tmp = TRANSFER(mask_val , i4tmp )
r4tmp = TRANSFER(mask_val , r4tmp )
tmp_mask_val = mask_val
i8tmp = TRANSFER(tmp_mask_val , i8tmp )
i4tmp = TRANSFER(tmp_mask_val , i4tmp )
r4tmp = TRANSFER(tmp_mask_val , r4tmp )
if ( i8tmp == MPP_FILL_INT ) then
! we've packed an MPP_FILL_
imask_val = MPP_FILL_INT
Expand Down
Loading