New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
#1239 (unallocated arrays in daily mean to diurnal cycle code with passive tracers) – NEMO

Opened 9 years ago

Closed 9 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: v3.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 9 years ago by clevy

  • Owner changed from NEMO team to cbricaut

comment:2 Changed 9 years ago by clevy

  • Owner changed from cbricaut to cbricaud

comment:3 Changed 9 years ago by cbricaud

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