#2382 closed Bug (fixed)
Faulty option 1 of the freshwater budget adjustment mechanism (`nn_fwb = 1`, module `sbcfwb`) when both `key_mpp_mpi` and `key_mpi2` are defined
Reported by: | smueller | Owned by: | systeam |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | SBC | Version: | v4.0 |
Severity: | minor | Keywords: | fwb lib_mpp v4.0 |
Cc: |
Description
Context
The bug described in ticket #2381 is also present in the release-4.0-HEAD version of NEMO.
Analysis
See ticket #2381.
Fix
See ticket #2381; for the release-4.0-HEAD version of NEMO the proposed patch is
-
src/OCE/LBC/lib_mpp.F90
397 397 ! send y_in into todelay(idvar)%y1d with a non-blocking communication 398 398 # if defined key_mpi2 399 399 IF( ln_timing ) CALL tic_tac( .TRUE., ld_global = .TRUE.) 400 CALL mpi_allreduce( y_in(:), todelay(idvar)%y1d(:), isz, MPI_DOUBLE_COMPLEX, mpi_sumdd, ilocalcomm, ndelayid(idvar), ierr ) 400 CALL mpi_allreduce( y_in(:), todelay(idvar)%y1d(:), isz, MPI_DOUBLE_COMPLEX, mpi_sumdd, ilocalcomm, ierr ) 401 ndelayid(idvar) = 1 401 402 IF( ln_timing ) CALL tic_tac(.FALSE., ld_global = .TRUE.) 402 403 # else 403 404 CALL mpi_iallreduce( y_in(:), todelay(idvar)%y1d(:), isz, MPI_DOUBLE_COMPLEX, mpi_sumdd, ilocalcomm, ndelayid(idvar), ierr ) … … 464 465 ! send p_in into todelay(idvar)%z1d with a non-blocking communication 465 466 # if defined key_mpi2 466 467 IF( ln_timing ) CALL tic_tac( .TRUE., ld_global = .TRUE.) 467 CALL mpi_allreduce( p_in(:), todelay(idvar)%z1d(:), isz, MPI_DOUBLE_PRECISION, mpi_max, ilocalcomm, ndelayid(idvar), ierr ) 468 CALL mpi_allreduce( p_in(:), todelay(idvar)%z1d(:), isz, MPI_DOUBLE_PRECISION, mpi_max, ilocalcomm, ierr ) 469 ndelayid(idvar) = 1 468 470 IF( ln_timing ) CALL tic_tac(.FALSE., ld_global = .TRUE.) 469 471 # else 470 472 CALL mpi_iallreduce( p_in(:), todelay(idvar)%z1d(:), isz, MPI_DOUBLE_PRECISION, mpi_max, ilocalcomm, ndelayid(idvar), ierr )
Commit History (1)
Changeset | Author | Time | ChangeLog |
---|---|---|---|
12518 | smueller | 2020-03-05T17:01:00+01:00 | Correction of the fallback option for MPI-2 compatibility in delayed global MPP operations (ticket #2382) This changeset is the merging of changeset [12512] (see ticket #2381) into the release-4.0-HEAD version of NEMO. |
Change History (3)
comment:1 Changed 3 years ago by smueller
comment:2 Changed 3 years ago by smueller
- Resolution set to fixed
- Status changed from new to closed
Using NEMO release-4.0-HEAD, a variant of the ORCA2_ICE_PISCES restartability test with defined key_mpi2, nn_fwb = 1 in both LONG and SHORT, nn_stock = 496 in LONG, nn_stock = 248 in SHORT, and disabled PISCES component fails just before and succeeds after application of [12518].
Further, source:/NEMO/releases/release-4.0-HEAD@12518 passes SETTE.
comment:3 Changed 14 months ago by nemo
- Keywords v4.0 added
In 12518: