Compiling abinit with netcdf on Mac OS has always been troublesome for me.
With abinit-7.2.2, whether I try to use the fallback or the one from macport, I get the following error:
Code: Select all
Error: Function 'ncfile_create' at (1) has no IMPLICIT type
So it seems the header file is unuseable, despite its acceptance from the 'configure' script.
My configuration file is:
Code: Select all
enable_mpi="yes"
with_mpi_prefix="/opt/local/lib/openmpi"
enable_mpi_io="no"
with_fft_flavor="none"
with_linalg_flavor="none"
with_trio_flavor="netcdf"
with_dft_flavor="libxc"
enable_gw_dpc="yes"
enable_64bit_flags="yes"
To use the netcdf from macport, I add the line
Code: Select all
with_netcdf_incs="-I/opt/local/include"
with_netcdf_libs="-L/opt/local/lib -lnetcdf -lnetcdff -lnetcdf_c++"
and I use the ports:
Code: Select all
netcdf @4.2.1.1_1+dap+netcdf4
netcdf-fortran @4.2_5+gcc45
netcdf-cxx @4.2_1
My compilers are:
Code: Select all
port:
openmpi @1.6.3_0+gcc45
openmpif90:
GNU Fortran (MacPorts gcc45 4.5.4_6) 4.5.4
openmpicc and openmpicxx:
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
My hardware is:
Code: Select all
Model: MacBookPro6,2
Processor: Intel Core i7
Does anyone have recipe to compile with netcdf on mac?