ESCOMP / ESCOMP/mizuRoute

Issue detected by nvidia (nvhpc) compiler with -O2 or greater

Open
#627 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Fortran
Stars
59
Forks
73
Avg merge
5d 22h
Merged PRs (30d)
2

Description

nvhpc compiler option uses the following flags for optimization mode now:

`FLAGS = -fast -O3 -Mdclchk`

For some reason, -O3 or -O2 flag cause index error at line `reachID(1:nRch) = reachID( ixRch_order )` in [mpi_process.f90](https://github.com/ESCOMP/mizuRoute/blob/f500ec3907830851e2eff7b2cfea8a0acfc198f2/route/build/src/mpi_process.f90#L247).

Looks like `ixRch_order` get zero values for some reason.

With this flag,

`FLAGS = -O1 -Mdclchk `

works fine. Also, `MODE=debug` works fine.

Will need to look into this more why ixRch_order gets zero values with higher optimization mode.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.