Skip to content

Commit

Permalink
Merge pull request #418 from CFD-GO/fix/liggghts-pfm
Browse files Browse the repository at this point in the history
Adding support for LIGGGHTS-PFM
  • Loading branch information
llaniewski authored Dec 27, 2022
2 parents e11ef85 + 68101fa commit 7d42765
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -613,23 +613,32 @@ then
rm ${LAMMPS}/install/include/lammps/${i} 2>/dev/null
AC_CHECK_FILE([${LAMMPS}/src/${i}], [ln -s ../../../src/${i} ${LAMMPS}/install/include/lammps/${i}],[AC_MSG_ERROR([Cannot find ${i}])])
done
for i in partitioner.h
do
rm ${LAMMPS}/install/include/lammps/${i} 2>/dev/null
AC_CHECK_FILE([${LAMMPS}/src/${i}], [ln -s ../../../src/${i} ${LAMMPS}/install/include/lammps/${i}],[])
done

for i in error.h comm.h vector_liggghts.h neighbor.h math_extra_liggghts.h domain_I.h
do
touch ${LAMMPS}/install/include/lammps/${i}
done
if test "x${with_lammps_lib}" == "x"
then
LAMMPS_LIB="liblammps.so"
if test -L ${LAMMPS}/src/libliggghts.so
then
echo "It's LIGGGHTS we're working with"
LAMMPS_LIB="libliggghts.so"
fi
for LAMMPS_LIB_DIR in build src
do
for LAMMPS_LIB in libliggghts.so liblammps.so
do
if test -f "${LAMMPS}/${LAMMPS_LIB_DIR}/${LAMMPS_LIB}"
then
break 2
fi
done
done
else
LAMMPS_LIB="${with_lammps_lib}"
fi
AC_CHECK_FILE([${LAMMPS}/src/$LAMMPS_LIB], [ln -s ../../src/$LAMMPS_LIB ${LAMMPS}/install/lib/$LAMMPS_LIB],[AC_MSG_ERROR([Cannot find $LAMMPS_LIB])])
AC_CHECK_FILE([${LAMMPS}/$LAMMPS_LIB_DIR/$LAMMPS_LIB], [ln -s ../../$LAMMPS_LIB_DIR/$LAMMPS_LIB ${LAMMPS}/install/lib/$LAMMPS_LIB],[AC_MSG_ERROR([Cannot find $LAMMPS_LIB])])
LDFLAGS="${LDFLAGS} -L${LAMMPS}/install/lib -Wl,-rpath=${LAMMPS}/install/lib"
CPPFLAGS="${CPPFLAGS} -I${LAMMPS}/install/include"
LAMMPS_LIB_NAME=${LAMMPS_LIB#lib}
Expand Down

0 comments on commit 7d42765

Please sign in to comment.