Changes between Initial Version and Version 4 of Ticket #1734
- Timestamp:
- 2017-09-28T19:49:42+02:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1734
- Property Owner changed from nemo to jamesharle
- Property Cc jamesharle added
- Property Status changed from new to assigned
-
Ticket #1734 – Description
initial v4 1 = Context = 1 = Context 2 2 3 NEMO_3.6_STABLE with straight BDY (as old OBC) and rim width > 1 produce a Seg. fault due to out of bound on dta_global2 array 3 4 4 = Analysis = 5 = Analysis 6 5 7 In this case bdy data are organized as a vector with all the data within the rim put sequentially from the outermost to innermost. Therefore it seems to me that in bdyini.F90 we must have 6 8 7 {{{ 9 {{{#!f 8 10 jpbdtas = MAX(jpbdtas, (nbdyend - nbdybeg + 1) * nn_rimwidth(ib_bdy) ) 9 11 }}} 10 12 11 instead of13 instead of 12 14 13 {{{ 15 {{{#!f 14 16 jpbdtas = MAX(jpbdtas, (nbdyend - nbdybeg + 1)) 15 17 }}} 18 16 19 Further more, the allocation of dta_global2 should be (not tested): 17 {{{ 20 21 {{{#!f 18 22 ALLOCATE( dta_global2(jpbdtas, 1, jpk) ) 19 23 }}} 20 24 21 instead of25 instead of 22 26 23 {{{ 27 {{{#!f 24 28 ALLOCATE( dta_global2(jpbdtas, nrimmax, jpk) ) 25 29 }}} 26 = Fix = 30 31 = Fix 32 27 33 The only change of jpbdtas as sugested above fix the problem of outbound.