Run-Time Error 455: Array section bounds inconsistent with parent array
In Procedure: get_initial
Diagnostics Entered From Subroutine get_initial Line 249
Entered From Subroutine initial Line 126
Entered From MAIN PROGRAM Line 69
End of diagnostics
The offending code seems to be:
Code: Select all
#if defined EW_PERIODIC || defined NS_PERIODIC || !defined DISTRIBUTE
!
! Set periodic boundary conditions.
!
CALL exchange_r2d_tile (ng, 1, Lm(ng), 1, Mm(ng), &
& LBi, UBi, LBj, UBj, &
& OCEAN(ng) % zeta(:,:,1))
CALL exchange_u2d_tile (ng, 1, Lm(ng), 1, Mm(ng), &
& LBi, UBi, LBj, UBj, &
& OCEAN(ng) % ubar(:,:,1))
CALL exchange_v2d_tile (ng, 1, Lm(ng), 1, Mm(ng), &
& LBi, UBi, LBj, UBj, &
& OCEAN(ng) % vbar(:,:,1))
...
Should this code be activated anytime DISTRIBUTE is NOT defined, or is the cpp statement incorrect? (notice: !defined DISTRIBUTE)
If the cpp statement is wrong it is also wrong in get_grid (though it got past the checks).
Any other similar statements throughout the code are:
Code: Select all
#if defined EW_PERIODIC || defined NS_PERIODIC || defined DISTRIBUTE