Skip to content

Commit

Permalink
Correct the mistake of compiling KPP in build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingzhao Liu committed Aug 14, 2023
1 parent b3e3b06 commit 5bde944
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fi

###### Checking the flags ######

while getopts acgtzfshnpk: flag
while getopts acgtzfshnkp: flag
do
case "${flag}" in
a) ifBuildAll=true ; echo "build all libraries " ;;
Expand Down Expand Up @@ -87,6 +87,7 @@ do
printf -- "-s : build ZSTD \n"
printf -- "-d : build HDF5 (prerequisite: ZLIB) \n"
printf -- "-n : build NETCDF (prerequisite: HDF5) \n"
printf -- "-k : build KPP \n"
printf -- "-p [cores] : how many [cores] to be used by make -j [cores] \n"
printf -- " : default is maximum number of cores \n"
printf -- "--------------------------------------------------------------\n"
Expand Down Expand Up @@ -218,7 +219,7 @@ if [ $ifBuildAll = true ] || [ $ifBuildKPP = true ] ; then
cp $strTarget.tar.bz2 $strBuildDir/src && cd $strBuildDir/src && tar xvjf $strTarget.tar.bz2
export KPP_HOME=$strBuildDir/src/$strTarget
export KPP_FLEX_LIB_DIR=$strBuildDir/src/$strTarget
cd $KPP_HOME/src && make && cd ../kpp && ./build_KPP.sh so2 \
cd $KPP_HOME/src && make && cd ${strLibsDir}/../kpp && ./build_KPP.sh so2 \
|| exit
fi

Expand Down

0 comments on commit 5bde944

Please sign in to comment.