YetAnotherCoupler  2.4.1
Configuration examples for different systems

Mistral bullx B700 DLC Intel Xeon E5-2680 v3 12-core (Haswell) Cluster

For YAC with Intel run

module load intel/18.0.4
module load openmpi/2.0.2p2_hpcx-intel14
module load intel/18.0.4
module load openmpi/2.0.2p2_hpcx-intel14
configure \
--with-yaxt-root=<path_to_yaxt> \
--with-netcdf-root=/sw/rhel6-x64/netcdf/netcdf_c-4.3.2-intel14 \
--with-xml2-include=/usr/include/libxml2 \
--with-xml2-lib=/usr/lib64 \
CC=/sw/rhel6-x64/mpi/openmpi-2.0.2p2_hpcx-intel14/bin/mpicc \
FC=/sw/rhel6-x64/mpi/openmpi-2.0.2p2_hpcx-intel14/bin/mpif90 \
CFLAGS="-g" \
FCFLAGS="-g" \
MPI_LAUNCH="$(which mpirun)"

For YAC with NAG run

module load nag/6.2
module load openmpi/2.0.2p2_hpcx-nag62
configure \
--with-yaxt-root=<path_to_yaxt> \
--with-netcdf-root=/sw/rhel6-x64/netcdf/netcdf_c-4.6.1-parallel-openmpi2-nag62 \
--with-xml2-include=/usr/include/libxml2 \
--with-xml2-lib=/usr/lib64 \
CC=/sw/rhel6-x64/mpi/openmpi-2.0.2p2_hpcx-nag62/bin/mpicc \
FC=/sw/rhel6-x64/mpi/openmpi-2.0.2p2_hpcx-nag62/bin/mpif90 \
CFLAGS="-g -Wall" \
FCFLAGS="-g -nan" \
MPI_LAUNCH="$(which mpirun)"

Linux PC Debian 9 (Stretch) (gcc 7.2.0, MPICH 3.2.1, netcdf 4.6.1)

A YAXT installation is mandatory for YAC2. In case YAXT is not available on your system, after downloading and unpacking YAXT run

module load gcc/7.2.0
module load mpich3/3.2.1-gcc72
autoreconf -i
/configure --prefix=<path_to_yaxt> --without-regard-for-quality --disable-shared
make -j 4
make install

For YAC run

module purge
module load gcc/7.2.0
module load mpich3/3.2.1-gcc72
autoreconf -i
./configure \
--with-netcdf-root=/sw/stretch-x64/netcdf/netcdf_c-4.6.1 \
--with-xml2-include=/usr/include/libxml2 \
--with-xml2-lib=/usr/lib \
--with-yaxt-root=<path_to_yaxt> \
--disable-lib-only \
--enable-silent-rules \
CC=/sw/stretch-x64/mpi/mpich3-3.2.1-gcc72/bin/mpicc \
FC=/sw/stretch-x64/mpi/mpich3-3.2.1-gcc72/bin/mpif90 \
CFLAGS="-g -Wall -pg" \
FCFLAGS="-g -pg" \
LDFLAGS="-g -pg -Wl,-rpath,/sw/stretch-x64/netcdf/netcdf_c-4.6.1/lib"

macOS 11.5.2 (Big Sur) (gcc 10.3.0, MPICH 3.4.1, netcdf 4.8.0)

YAXT installation with

./configure MPI_LAUNCH="/opt/local/bin/mpirun --map-by socket:OVERSUBSCRIBE" --prefix=<path_to_yaxt> --disable-shared
make -j 4
make install

For YAC run

autoreconf -i
configure \
--with-netcdf-root=/opt/local \
--with-xml2-include=/opt/local/include/libxml2 \
--with-xml2-lib=/opt/local/lib \
--with-yaxt-root=<path_to_yaxt> \
--disable-lib-only \
--without-external-mtime \
--enable-silent-rules \
CC=/opt/local/bin/mpicc \
FC=/opt/local/bin/mpif90 \
CFLAGS="-g -Wall" \
FCFLAGS="-g -Wall -fimplicit-none" \
MPI_LAUNCH="$(which mpirun)"