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.
#2670 (use of jpim1/jpjm1 in dynspg_ts) – NEMO

#2670 closed Bug (fixed)

use of jpim1/jpjm1 in dynspg_ts

Reported by: smasson Owned by: systeam
Priority: low Milestone:
Component: DYN Version: trunk
Severity: minor Keywords:
Cc:

Description (last modified by smasson)

Context

There is still implicit loops in dynspg_ts that are using jpim1/jpjm1.
This creates errors (in debug mode) when nn_hls > 1.
I thought these variables should no more be used in the code...

Analysis

in

zhU(1:jpim1,1:jpj  ) = e2u(1:jpim1,1:jpj  ) * ua_e(1:jpim1,1:jpj  ) * zhup2_e(1:jpim1,1:jpj  )   ! not jpi-column

we use zhup2_e(1:jpim1,1:jpj ) that was computed above in a DO_2D( 1, 0, 1, 1 ) loop.
=> zhup2_e not defined in jpj when nn_hls = 2

Recommendation

suppress jpim1 et jpjm1 from the code!

Commit History (1)

ChangesetAuthorTimeChangeLog
15018smasson2021-06-18T12:26:11+02:00

trunk: supress jpim1/jpjm1 in dynspg_ts, #2670

Change History (3)

comment:1 Changed 21 months ago by smasson

  • Description modified (diff)

comment:2 Changed 20 months ago by smasson

In 15018:

Error: Failed to load processor CommitTicketReference
No macro or processor named 'CommitTicketReference' found

comment:3 Changed 20 months ago by smasson

  • Resolution set to fixed
  • Status changed from new to closed

to be continued in #2699

Note: See TracTickets for help on using tickets.