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 bit for bit error in OpenMP IEVA #1442

Merged
merged 1 commit into from
Mar 27, 2021
Merged
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
14 changes: 11 additions & 3 deletions dyn_em/module_big_step_utilities_em.F
Original file line number Diff line number Diff line change
Expand Up @@ -3636,22 +3636,30 @@ SUBROUTINE calculate_full ( rfield, rfieldb, rfieldp, &

! Local indices.

INTEGER :: i, j, k, itf, jtf, ktf
INTEGER :: i, j, k, itf, jtf, ktf, i_start, j_start

!<DESCRIPTION>
!
! calculate_full
! calculates full 3D field from pertubation and base field.
! The input fields (mu base and perturbation mu) are communicated prior
! to this call. That fills the total field into the halo region. That
! extra row/column is only used by the IEVA scheme. Having the extra
! row/column filled with valid values is not a problem for the rest of
! the model.
!
!</DESCRIPTION>

itf=MIN(ite,ide-1)
jtf=MIN(jte,jde-1)
ktf=MIN(kte,kde-1)

DO j=jts,jtf
i_start=its-1
j_start=jts-1

DO j=j_start,jtf
DO k=kts,ktf
DO i=its,itf
DO i=i_start,itf
rfield(i,k,j)=rfieldb(i,k,j)+rfieldp(i,k,j)
ENDDO
ENDDO
Expand Down