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.
#2755 (Wrong use of fs_2/fs_jpim1 indexes) – NEMO

Opened 3 years ago

#2755 new Bug

Wrong use of fs_2/fs_jpim1 indexes

Reported by: emalod Owned by: systeam
Priority: low Milestone:
Component: env Version: v4.0.*
Severity: minor Keywords: cpp key
Cc:

Description

Context

The key_vectopt_loop cpp key forces some spatial loops to perform computations in the halos (fs_2/fs_jpim1 indexes). This is supposed to have an effect on vectorisation. Recent tests (2021) have shown rather limited effect on NEC SX-Aurora-TSUBASA machines

Analysis

Some loops are wrongly bounded by fs_2/fs_jpim1 indexes, which lead to array overflow (e.g. dommsk : umask(ji,jj,jk) = tmask(ji,jj ,jk) * tmask(ji+1,jj ,jk) )

Fix

Check where fs_2/fs_jpim1 are used and make correction (or remove the key_vectopt_loop cpp key)

Commit History (0)

(No commits)

Change History (0)

Note: See TracTickets for help on using tickets.