Opened 5 months ago

Last modified 5 months ago

#2073 assigned Defect

Out of bounds of passive tracers when using PISCES or another SMS model together with CFC

Reported by:Christian Ethe Component: OPA
Version: release-3.6 Severity: minor
Keywords: Cc:
Management
Owned by:Christian Ethe Milestone:
Priority: low

Description (last modified by Nicolas MARTIN)

Context

NEMO-TOP is designed to be able to simulate SMS models and inert tracers at the same time. When trying to uses PISCES+CFC the model crashes because the tracer loop is not well defined in the main CFC routine

Analysis

in trcsms_cfc.F90, an out-of-bounds occurs when trying to read and write the cumulative fluxes in the restart

Recommendation

the loop below

         DO jn = jp_cfc0, jp_cfc1
            CALL iom_rstput( kt, nitrst, numrtw, 'qint_'//ctrcnm(jn), qint_cfc(:,:,jn) )
         END DO

should be

         jl = 0
         DO jn = jp_cfc0, jp_cfc1
            jl = jl + 1
            CALL iom_get( numrtr, jpdom_autoglo, 'qint_'//ctrcnm(jn), qint_cfc(:,:,jl) )
         END DO


Commit History (2)

ChangesetAuthorTimeChangeLog
9456cetlod2018-04-04T09:24:34+02:00

dev_merge : Bugfix to avoid out-of-bounds in CFC model, see ticket #2073

9455cetlod2018-04-04T09:21:45+02:00

Bugfix to avoid out-of-bounds in CFC model, see ticket #2073

Change History (4)

comment:1 Changed 5 months ago by Christian Ethe

In 9455:

Bugfix to avoid out-of-bounds in CFC model, see ticket #2073

Code review status: pending

comment:2 Changed 5 months ago by Christian Ethe

In 9456:

dev_merge : Bugfix to avoid out-of-bounds in CFC model, see ticket #2073

Code review status: pending

comment:3 Changed 5 months ago by Nicolas MARTIN

  • Description modified (diff)

comment:4 Changed 5 months ago by Nicolas MARTIN

  • Owner set to cetlod
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.