Skip to content

Commit

Permalink
Add KPP configure option to search for alternative version of libfl (#…
Browse files Browse the repository at this point in the history
…2008)

TYPE:  enhancement

KEYWORDS: chem, KPP, configure_kpp, Derecho

SOURCE: internal

DESCRIPTION OF CHANGES: 
Problem: KPP would not compile on Derecho due to name differences in libfl: only libfl.so exists, not libfl.a.

Solution:
Add flag to search for alternative name, libfl.so.

LIST OF MODIFIED FILES: 

M chem/KPP/configure_kpp

TESTS CONDUCTED: 
- Compiles with old intel compilers with libfl.a and compiles on Derecho with libfl.so
- It passes regression tests.

RELEASE NOTE: KPP configure option for alternative libfl name, libfl.so, in addition to libfl.a.
  • Loading branch information
jordanschnell committed Feb 14, 2024
1 parent 3cadf04 commit 5db9f7f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions chem/KPP/configure_kpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,17 @@ echo " configure_kpp, settings:"
if test -e "${FLEX_LIB_DIR}/libfl.a" ; then
echo location of flex library: ${FLEX_LIB_DIR}/libfl.a

elif test -e "${FLEX_LIB_DIR}/libfl.so" ; then
echo location of flex library: ${FLEX_LIB_DIR}/libfl.so

else
echo No libfl.a in ${FLEX_LIB_DIR}
echo No libfl.a or libfl.so in ${FLEX_LIB_DIR}
echo ' check if FLEX_LIB_DIR environment variable is set correctly'
echo ' (FLEX_LIB_DIR should be the complete pathname of the FLEX library libfl.a)'
echo ' (FLEX_LIB_DIR should be the complete pathname of the FLEX library libfl.a or libfl.so)'
echo ' OR: Enter full path to flex library on your system'
read FLEX_LIB_DIR
if test ! -e ${FLEX_LIB_DIR}/libfl.a ; then
echo PROBLEM: libfl.a NOT FOUND IN ${FLEX_LIB_DIR}
if test ! -e ${FLEX_LIB_DIR}/libfl.a && test ! -e ${FLEX_LIB_DIR}/libfl.so ; then
echo PROBLEM: libfl.a or libfl.so NOT FOUND IN ${FLEX_LIB_DIR}
read FLEX_LIB_DIR
fi

Expand Down

0 comments on commit 5db9f7f

Please sign in to comment.