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.
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.
nvhpc compiler option uses the following flags for optimization mode now:
FLAGS = -fast -O3 -MdclchkFor some reason, -O3 or -O2 flag cause index error at line
reachID(1:nRch) = reachID( ixRch_order )in mpi_process.f90.Looks like
ixRch_orderget zero values for some reason.With this flag,
FLAGS = -O1 -Mdclchkworks fine. Also,
MODE=debugworks fine.Will need to look into this more why ixRch_order gets zero values with higher optimization mode.