Skip to content

Commit

Permalink
Merge pull request #151 from wistaria/komega
Browse files Browse the repository at this point in the history
use fallow-argument-mismatch for komega
  • Loading branch information
yomichi authored Mar 22, 2024
2 parents 678cf40 + b0ef2a2 commit 860a140
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion apps/komega/config/default/preprocess.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,15 @@ set -u
FC=${FC:-mpifort}
export FC

./configure --prefix=$PREFIX --with-mpi
check_file=check_compile_option.f90
cat << EOF > $check_file
program check_compile_option
end
EOF

${FC} -fallow-argument-mismatch $check_file >/dev/null 2>/dev/null
if [ $? -eq 0 ]; then
./configure --prefix=$PREFIX --with-mpi FCFLAGS="-fallow-argument-mismatch"
else
./configure --prefix=$PREFIX --with-mpi
fi

0 comments on commit 860a140

Please sign in to comment.