Skip to content

Commit

Permalink
octopus: Use "allow_arguments_mismatch yes" instead of flag directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstrubbe committed Jun 20, 2020
1 parent bf6033a commit 87f3365
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions science/octopus/Portfile
Expand Up @@ -56,18 +56,22 @@ if {[mpi_variant_isset]} {
configure.args-append --enable-mpi
}

# avoid gcc10 compilation type mismatch errors in basic/io_binary_f_inc.F90
compilers.allow_arguments_mismatch yes

pre-configure {
configure.args-append --with-blas="-L${prefix}/lib ${linalglib}"

if {![gcc_variant_isset]} {
# needed for clang; clang_variant_isset would miss case of default clang compiler.
configure.cxxflags-append "-std=c++11"
}

if {[variant_isset gcc10]} {
# avoid compilation type mismatch errors in basic/io_binary_f_inc.F90
# avoid BOZ literal constant error in math/fft.F90
configure.fcflags-append "-fallow-argument-mismatch -fallow-invalid-boz"
configure.fcflags-append "-fallow-invalid-boz"
}

# not necessary unless mixing clang++ and gfortran;
# found automatically when using MPI wrappers
if {![gcc_variant_isset] && ![mpi_variant_isset]} {
Expand Down

0 comments on commit 87f3365

Please sign in to comment.