Opened 11 years ago
Closed 8 years ago
#1346 closed Bug (wontfix)
bug in BDY for multiple boundaries
Reported by: | davestorkey | Owned by: | davestorkey |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | OCE | Version: | v3.6 |
Severity: | Keywords: | ||
Cc: |
Description
In bdy_dta_init, the initialisation of the bf structure is incorrect if multiple boundary sets (>1) are defined:
jstart = 1
DO ib_bdy = 1, nb_bdy
jend = nb_bdy_fld(ib_bdy)
CALL fld_fill( bf(jstart:jend), blf_i(jstart:jend), cn_dir_array(ib_bdy), 'bdy_dta', &
& 'open boundary conditions', 'nambdy_dta' )
jstart = jend + 1
ENDDO
The jend index is set incorrectly for ib_bdy > 1. The correct formula should be:
jend=jstart-1+nb_bdy_fld(ib_bdy)
Commit History (1)
Changeset | Author | Time | ChangeLog |
---|---|---|---|
4673 | davestorkey | 2014-06-18T11:44:54+02:00 | Fix indexing bug in bdy_dta_init. Ticket #1346. |
Change History (2)
comment:1 Changed 11 years ago by davestorkey
comment:2 Changed 8 years ago by clevy
- Resolution set to wontfix
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Fixed at rev 4673.
I think there is a similar bug in the following lines of bdy_dta (around line 317 of bdydta.F90) :
Jerome (or anyone) do you agree?