Skip to content

Commit

Permalink
Fixed expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed Jul 24, 2024
1 parent 8b35db4 commit d554cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/cp2k/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ ${EXE} ${WORKLOAD} ${ARGS}"

# setup OpenMP environment
if [ ! "${OMP_NUM_THREADS}" ]; then
NR=$(((NRANKS/NS)*NS)); if [ "0" = "${NT}" ]; then NR=1; fi
NR=$(((NRANKS/NS)*NS)); if [ "0" = "${NR}" ] || [ "0" = "${NT}" ]; then NR=1; fi
MC=$((NC/NR)); if [ "0" = "${MC}" ]; then MC=1; fi
MT=$((HT<=MAXNT?HT:MAXNT))
NTHREADS=$((MC*MT))
Expand Down

0 comments on commit d554cbc

Please sign in to comment.