You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IF ((FLOUT(1) .OR. FLOUT(7)).and.(.not. LPDLIB .or. &
(GTYPE .ne. UNGTYPE).or..TRUE.)) THEN
hardwires setting up all the mpi_send and recv inits for flout (1) or (7) regardless of domain decomposition or grid type. However, the domain decomposition case does make use of these and instead uses do_output_exchanges.
To Reproduce
Steps to reproduce the behavior.
Expected behavior
Since the domain decomposition case does not use these mpi calls, the code should only check for whether lpdlib is true or false. However, in the current code removing the .true. results in a out-of bounds reference when using domain-decomposition at
because the hs does not point to the "extended output arrays" on NAPFLD. This is because the call to w3xdma within the send/recv initialization block is bypassed when removing the .true..
The failure occurs at the model startup time, although I'm not clear why it occurs when no output is being created.
The following change in pdlib_field_vec resolves the issue and allows the .true. to be removed from w3initmd. Initial testing is that it is B4B w/ the current code. There may be a different or more preferred way to fix and I'm open to suggestions.
diff --git a/model/src/pdlib_field_vec.F90 b/model/src/pdlib_field_vec.F90
index 95c817d9..ce7a42e3 100644
--- a/model/src/pdlib_field_vec.F90
+++ b/model/src/pdlib_field_vec.F90
@@ -1325,7 +1325,7 @@ CONTAINS
END DO
END IF
IF ( IAPROC .EQ. NAPFLD ) THEN
- ! CALL W3XDMA ( IMOD, NDSE, NDST, FLGRDALL )
+ IF (.not. WADATS(IMOD)%AINIT2) CALL W3XDMA ( IMOD, NDSE, NDST, FLGRDALL )
CALL W3XETA ( IMOD, NDSE, NDST )
IH = 0
IF ( FLGRDALL( 2, 1) ) THEN
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
This line
WW3/model/src/w3initmd.F90
Lines 2192 to 2193 in ea0de58
hardwires setting up all the mpi_send and recv inits for flout (1) or (7) regardless of domain decomposition or grid type. However, the domain decomposition case does make use of these and instead uses
do_output_exchanges
.To Reproduce
Steps to reproduce the behavior.
Expected behavior
Since the domain decomposition case does not use these mpi calls, the code should only check for whether
lpdlib
is true or false. However, in the current code removing the.true.
results in a out-of bounds reference when using domain-decomposition atWW3/model/src/pdlib_field_vec.F90
Lines 1331 to 1334 in ea0de58
because the
hs
does not point to the "extended output arrays" on NAPFLD. This is because the call tow3xdma
within the send/recv initialization block is bypassed when removing the.true.
.The failure occurs at the model startup time, although I'm not clear why it occurs when no output is being created.
The following change in
pdlib_field_vec
resolves the issue and allows the.true.
to be removed fromw3initmd
. Initial testing is that it is B4B w/ the current code. There may be a different or more preferred way to fix and I'm open to suggestions.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: