Opened 7 years ago

Closed 7 years ago

#1239 closed Bug (fixed)

unallocated arrays in daily mean to diurnal cycle code with passive tracers

Reported by: acc Owned by: cbricaud
Priority: low Milestone:
Component: OCE Version: release-3.6
Severity: Keywords:
Cc:

Description

There is a problem with unallocated arrays when using ln_dm2dc = .TRUE. with passive tracers (key_top). Logicals ltrcdm2dc and ltrcdm2dc_ice are set in trcini and iceini_2 respectively. Both of these occur in the calling sequence after they are needed to allocate qsr_mean (sbc_oce.F90) and qsr_ice_mean (sbc_ice.F90) respectively. Can be worked around by setting both in sbc_oce, e.g.:

USE ice_2, ONLY : ltrcdm2dc_ice
.
.
.
#if defined key_top
      ltrcdm2dc = (ln_dm2dc .AND. ln_blk_core .AND. nn_ice==2)
      ltrcdm2dc_ice = ltrcdm2dc
#endif

but there may be a more elegant solution.

Commit History (0)

(No commits)

Change History (3)

comment:1 Changed 7 years ago by clevy

  • Owner changed from NEMO team to cbricaut

comment:2 Changed 7 years ago by clevy

  • Owner changed from cbricaut to cbricaud

comment:3 Changed 7 years ago by cbricaud

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.