Opened 7 months ago

Closed 6 months ago

#2670 closed Bug (fixed)

use of jpim1/jpjm1 in dynspg_ts

Reported by: smasson Owned by:
Priority: low Milestone:
Component: DYN Version: trunk
Severity: minor Keywords:
Cc: Branch review:
MP ready?: Task progress:

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 7 months ago by smasson

  • Description modified (diff)

comment:2 Changed 6 months ago by smasson

In 15018:

trunk: supress jpim1/jpjm1 in dynspg_ts, #2670

comment:3 Changed 6 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.